Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Device showing weird history or none #241

Closed
heffneil opened this issue Apr 27, 2024 · 4 comments · Fixed by #242
Closed

Device showing weird history or none #241

heffneil opened this issue Apr 27, 2024 · 4 comments · Fixed by #242
Assignees

Comments

@heffneil
Copy link

heffneil commented Apr 27, 2024

Describe the bug
For some reason, I am not getting the watering history of my zone.

Expected behaviour
I would like to know the number of gallons my tap timer dispenses. I did have this working with the current code.

BHyve devices

I have 1 - Smart Hose Tap Timer - it is for filling my pool daily. This is why the quantity of water is important

Device Diagnostics

I am using the following code:

config_entry-bhyve-8dc114621bd253dd065e536c686bda5a.json

  - sensor:
      - name: "Pool Fill Gallons Display"
        unit_of_measurement: 'gallons'  # Optional, for display purposes
        state: "{{ state_attr('sensor.pool_filler_zone_history', 'consumption_') }}"

The problem is pool_filler_zone_history isn't valid.

@heffneil
Copy link
Author

Here is the output of the device in HA
Screenshot 2024-04-27 at 12 36 37 PM

@heffneil heffneil reopened this Apr 27, 2024
@heffneil
Copy link
Author

heffneil commented Apr 27, 2024

budget: 100
program: a
program_name: Fill Pool
run_time: 45
status: complete
consumption_gallons: null
consumption_litres: null
start_time: "2024-04-27T13:15:05.000Z"
device_class: timestamp
icon: mdi:history
friendly_name: Unknown zone history

I don't know why its named like this. I have removed the device and re-added it and it shows the same value. The consumption isn't recorded either.

@sebr
Copy link
Owner

sebr commented Apr 28, 2024

The zone doesn't have a name, so it defaults to Unknown zone. The other entities fall back to the device name, but the zone history entity does not.

@heffneil
Copy link
Author

I have named the zone as per your directions (I hadn't realized it wasn't named). Odd since it is a single zone but that's a orbit quirk.

The next question is why does it show the history as "unknown"?
Screenshot 2024-04-28 at 9 39 03 AM

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
2 participants