#timed automation helper

1 messages ยท Page 1 of 1 (latest)

royal plover
#

is there a homeassistant card for managing a schedule for something? e.g. turn on a switch at this time and this time and turn it off at another time. you can make an automation for it but i want to be able to quickly/easily modify it down the line without having to go through an automation (also makes it easier for my parents to change e.g. when the heater starts and stops in the winter in the dashboard without having to bug me

supple compass
#

Have you looked at schedule helper?

#

It's not in a card but you can edit it easily.

#

It's only editable by admins though, so maybe not for your usecase.

royal plover
#

i'll take a look ๐Ÿ‘€

#

does it support recurring events?

supple compass
#

So a schedule is weekly

#

you pick the hours of the week that you want it to be on or off.

royal plover
#

ah its a weekly thing

supple compass
#

You can also create a local calendar which has more arbitrary scheduling possibilities, that works a bit differently but can achieve a similar end result.

royal plover
#

hmm let me play around with it

#

i found exactly what i think i want in the hacs, schedule was the keyword i was looking for ๐Ÿ˜„

supple compass
#

These components I mentioned are not custom components, but I guess there are probably custom things in hacs as well that have some overlapping functionality.

royal plover
#

yeah but i wasnt sure what term to use to look for things

royal plover
#

the above card works great ๐Ÿ™‚

hot aurora
#

While this doesn't apply to your original question about scheduling, here's something to consider for "handling settings" for automations. I use helper entities.
I don't like enabling/disabling an automation entity and, instead, use an input_boolean. The automation checks the entity before continuing with the rest of the actions. (Some of my automations have multiple triggers to handle different options. Disabling the automation entity would disable everything.)
I use input_number entities to set duration for timer entities handling auto on/off lighting. When the automation is triggered, the duration is applied to the timer entity which is then started. A trigger for when the timer elapses handles turning off the lights. While continued or new motion resets the timer.
It's a little bit of a hassle to set up (dealing with templates in the automations but nothing crazy). Lemme know if you're interested in learning more about how these automations are set up.

#

These are custom:button-cards configured to handle turning on/off the input_boolean, an embedded entities card with a custom:slider-entity-row, and an embedded Markdown card to handle to text for the duration.

royal plover