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
#timed automation helper
1 messages ยท Page 1 of 1 (latest)
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.
So a schedule is weekly
you pick the hours of the week that you want it to be on or off.
ah its a weekly thing
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.
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 ๐
GitHub
HA Lovelace card for control of scheduler entities - nielsfaber/scheduler-card
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.
yeah but i wasnt sure what term to use to look for things
the above card works great ๐
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.
this is pretty interesting but im not sure if this sort of thing is going to fit my usecase. my use case is more configuring how my solar battery discharges for optimizing our power bill, and balancing it with when our water heater is powered (e.g. picking a daily schedule of X pm until Y pm sorta thing)