sebr / bhyve-home-assistant

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

Feature Request: Service to run program #145

Closed disforw closed 1 year ago

disforw commented 2 years ago

Have you looked in to a service that will execute a defined program? If not I'll create a PR for it.

sebr commented 2 years ago

I have not looked into this (I assume it's possible but not ever seen a way to do it). Would be great if you could investigate :)

disforw commented 2 years ago

Here are my findings when monitoring the WS. Should I just create a service that starts watering a program? Because we already have a switch to enable/disable a program, dont want to make it confusing.

Start Water by Zone

{"event":"change_mode","mode":"manual","program":null,"stations":[{"station":3,"run_time":10.0}],"device_id":"xXxxXxxxXXxXXxxXxxXXxxXXx","timestamp":"2022-07-21T05:15:02.000Z"}
{"event":"watering_in_progress_notification","program":"manual","current_station":3,"run_time":10.0,"started_watering_station_at":"2022-07-21T05:15:02.000Z","rain_sensor_hold":false,"device_id":"xXxxXxxxXXxXXxxXxxXXxxXXx","timestamp":"2022-07-21T05:15:02.000Z"}

Start Water Program

{"event":"change_mode","mode":"manual","program":"a","stations":[],"device_id":"xXxxXxxxXXxXXxxXxxXXxxXXx","timestamp":"2022-07-21T05:15:40.000Z"}
{"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"}
skarragallagher commented 2 years ago

i would love to see this implemented

disforw commented 1 year ago

Created PR #164 to implement