arthurdent75 / SimpleScheduler

An Home Assistant AddOn to schedule entities on/off on weekly base
183 stars 36 forks source link

Trigger Automations #153

Closed moorgrove closed 6 months ago

moorgrove commented 6 months ago

I can choose an automation in the device list but instead of turning the automation on and off I would like to trigger the automation. I have an automation that turn on different lights every morning depending on different parameters like who is home, if a specific room should be excluded, if the sun already is up, etc. It would be nice to use the GUI in Simple Scheduler to easily change the time the automation triggers if we need the adjust the time.

arthurdent75 commented 6 months ago

The idea of automation is to run actions on triggers per se. Otherwise what you need is a script. If you want to run actions, even with conditions, you should create a script. So, you can collect all the actions inside a script, then you can call the script both from the automation and the scheduler addon.

Furthermore, in the 2.5 that I've just released, you can add a condition template inside the scheduler.