South Africa’s biggest forum. Discuss, discover, and connect with thousands of members.
Took an. Hour or so last night and set the schedule up on ha... Was a bit of a mission but I want it all centralized.Are you setting a schedule with your Home Assistant for on/off?
I've got mine on HA, but using the Tasmota's own scheduler for on off - just using it in HA to manually switch on/off and to view power consumption.
One thing that frustrates me is that Home Assistant requires a separate automation for turning **** off.
Should really be in the same automation that turns it on and even better if you could simply state a duration.
Guys, start using AppDaemon![]()
I just used a delay on the automation.. Goes on at 4am and then delays for 6 hours and turns offOne thing that frustrates me is that Home Assistant requires a separate automation for turning **** off.
Should really be in the same automation that turns it on and even better if you could simply state a duration.
I just used a delay on the automation.. Goes on at 4am and then delays for 6 hours and turns off
I just used a delay on the automation.. Goes on at 4am and then delays for 6 hours and turns off
Could you paste some yaml for us noobs?
automation:
- alias: 'Water Heater Schedule'
trigger:
platform: time
at: '04:00:00'
action:
- service: switch.turn_on
entity_id: switch.water_heater
- delay: '02:00:00'
- service: switch.turn_off
entity_id: switch.water_heater
Appdaemon is a proper script based object oriented automation tool for HA.
I just used a delay on the automation.. Goes on at 4am and then delays for 6 hours and turns off
Why the hell call it delay then? No wonder I’ve missed it as I assumed delay would do as it says and delay the trigger.
Duration is a far more sensible word.
Would make a world of difference to my life for when I trigger things manually now.
In the context of how the automations are hung together, delay makes sense though...
You are stringing actions together, so similar to a powershell script of sorts.
Not really as it doesn’t only that it will turn itself off after the time elapses.
Duration tells me it will be in it’s “switch stage” for the time given until it reverts to original state.
I'm running it in a docker container against a docker container version of home assistant.Plugin? Cause then it would only work on Hass.io.
Something along these lines..
I hacked it a little bit
I see it differently...
Within the "Action's" portion, you do X... then Delay and then do Y... in this case X is turn on, delay for period then Y is turn off.
Granted it could be done considerably neater and cleaner, but with how generic Automations is structured to be, it kind of makes sense.
Cool.
Now what if, there is mostion again, does that reset that 2:00:00 delay, or will the delay kick in, even if there was other motion since the first motion?
I see it differently...
Within the "Action's" portion, you do X... then Delay and then do Y... in this case X is turn on, delay for period then Y is turn off.
Granted it could be done considerably neater and cleaner, but with how generic Automations is structured to be, it kind of makes sense.