Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

stay_on: {state_entity} or blocking turning off the light on the state of the entity #301

Open
Aldaran opened this issue Aug 7, 2023 · 0 comments

Comments

@Aldaran
Copy link

Aldaran commented Aug 7, 2023

Hello. Everything is working. But what is missing is the ability to block the light from turning off if some condition does not match the value 'on', for example, input_boolean.autoswitch_off_light. That is, so that the light turns on in normal mode, but does not turn off if {input_boolean.autoswitch_off_light} is on, as when working with stay_mode. Perhaps it is worth refining this function so that it is possible not only to specify 'stay_mode: on', but to check the state of some entity, similar to:

stay_mode: input_boolean.autoswitch_off_light

Then the light will be turned on, but you will need to turn it off either manually or by changing the stay_mode state.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant