1 messages · Page 1 of 1 (latest)
after the start sleeping button is pressed, make two services calls
turn on the timer switch
then call the add_sleep with the data field something like
add_sleep
{ "entity_id": "switch.timer", "timer": true}
then when the end sleep button is pressed