sebr / bhyve-home-assistant

Orbit BHyve custom component for Home Assistant
MIT License
252 stars 42 forks source link

sensor.pool_water_valve_zone_history status: complete #148

Open heffneil opened 2 years ago

heffneil commented 2 years ago

sensor.pool_water_valve_zone_history is showing status: complete even when it is running.

Expected behaviour

Seems like the status should show :running or active when the program itself is running?

BHyve devices Smart Hose Tap with Wi-Fi Hub

sebr commented 2 years ago

Likely a duplicate of #142. If you do not believe this is the case please reopen and provide more detailed information (logs with debug enabled, device diagnostics, other steps to reproduce)

thanks!

heffneil commented 2 years ago

I am looking at the status of the program which is running for 2 hours and during that entire time, it shows completed. Perhaps, since it part of history it will only show completed. How would one know when the program is running realtime? WIthin switch?

sebr commented 2 years ago

Zone History shows when individual times which the program was run - not currently active status.

The event data does show which program started, but it is not currently available on the switch attributes. I'll see about adding this. See the example here, which shows program: a (as opposed to manual)

{

 "event":"watering_in_progress_notification",
  "program":"a",
  "current_station":1,
  "run_time":21.0,
  "started_watering_station_at":"2022-07-21T05:15:40.000Z",
  "rain_sensor_hold":false,
  "device_id":"xXxxXxxxXXxXXxxXxxXXxxXXx",
  "timestamp":"2022-07-21T05:15:40.000Z"
}
heffneil commented 2 years ago

Does the switch state of the valve change when the program is running? I am looking to trigger the completion of the program and notify of the quantity of water used. I changed my trigger on pool water valve zone [switch.pool_water_valve_zone] but that status didn't change today despite the program running and water being released. Thanks!