Add option to toggle entity for specific time #21677
Replies: 5 comments 10 replies
-
Would love this and use it frequently if it were implemented. |
Beta Was this translation helpful? Give feedback.
-
I am looking for exactly the same feature. I can do a script for it but it would be wonderful if some card can do it for all my light entities just out of the box |
Beta Was this translation helpful? Give feedback.
-
It seems to me like this is a UI for creating very simple, temporary automations that delete themselves when they are done. Perhaps framing it like that would help? |
Beta Was this translation helpful? Give feedback.
-
Just one addition. I think there are two possible use cases for such temporary automations:
Real world examples: Edit: I think going with "toggle" is a bad idea, as it may end up undoing a manual change in between. Better to explicitly specify |
Beta Was this translation helpful? Give feedback.
-
While I can't really imagine this coming to the main HA UI, If you wanted to implement this for yourself you could make a script with an entity selector and a time selector as fields, and that could turn on the entity, wait for the delay, and turn it off again. Then you could just launch this script from your UI where it will prompt you to fill in the fields. So not much more steps than would take here. |
Beta Was this translation helpful? Give feedback.
-
Idea: Sometimes the user might want to turn something on and have it automatically turn off after a set amount of time. For that to work the user has to write a seperate script or automation for this specific entity.
Solution: Every entity of type switch should populate a couple of buttons in the HA frontend whereas the user can toggle the actual state of the switch and have it revert after the selected time. Home Assistant could provide a set of regular time intervals (ex. 30 mins, 60 mins, 120 mins) but leave the option to insert a free value.
Open to discussion:
Beta Was this translation helpful? Give feedback.
All reactions