bhyve-home-assistant icon indicating copy to clipboard operation
bhyve-home-assistant copied to clipboard

Feature Request: Service to run program

Open disforw opened this issue 1 year ago • 3 comments

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

disforw avatar Jul 16 '22 21:07 disforw

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 :)

sebr avatar Jul 20 '22 00:07 sebr

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"}

disforw avatar Jul 21 '22 05:07 disforw

i would love to see this implemented

skarragallagher avatar Sep 05 '22 05:09 skarragallagher

Created PR #164 to implement

disforw avatar Jan 07 '23 17:01 disforw