I have this switch I’m using to turn on several lights, but I also use the boolean to prevent my motion sensors to trigger the light and then turn it off.
My only problem is, if I want to set a scene, then I want the light to be kept on as if I was pushing my boolean switch. But when I set the scene the button starts to turn on all light and the scene doesn’t reflect was I have set.
My question is, is there some sort of update instead of set (sorry coming from openHAB), so I’m not that skilled in Hassio yet
You will need to convert it to a script then. Add the automation disable as the first service call. Use service calls to set your lights how you want them, then re-enable the automation.
Yes exactly… I found that as well just a wink after you replied in the documentation.
… but still issues. No it doesn’t want to accept the
hobbyroom_bio:
Invalid config for [script]: [hobbyroom_bio] is an invalid option for [script]. Check: script->script->script->hobbyroom_bio. (See /config/configuration.yaml, line 18). Please check the docs at Scripts - Home Assistant
I simply can’t see the issue when going through the documentation
since you switch off lights in the 4th, 5th and 8th service without further data (like delay or transition) you should leave out the data: and simply state:
always easy and probably better to debug, if you order/group all services per setting. Unless of course you specifically want the order in your script above, you could order like this: first the Off switches, have a small delay, then the On switches, delay, turn on automation.
format the delay like this:
- delay:
seconds: 2
there have been issue reports using the delay: '00:00:02' format
Actually he needs to put the automation that the input_boolean triggers in those spots. We want to disable the automation from switching the input boolean, not switch the input_boolean.
I have a Xiaomi Sensor in the Hobbyroom that triggers the light to turn on and after 5 minutes if no activity the light will turn off (2 automations).
The problem is, if I sit in my chair and watches a movie, I don’t move that much, which will trigger the light to turn off. So I have created a boolean that turns on the light and provides a boolean I can use in my conditions so if the Motion Sensor does not see any movement even though it got triggered earlier, then the light wont turn off.
So I was thinking, since I have created those Scenes in my scenes.yaml file, that if I press a scene without turning the light on by pushing the boolean switch, then the light should stay on by updating my boolean.
Does that make sense?
So let’s say I keep the scene in my scenes file. Then I could create this script that updates my automation to “off” then calls the scene.hobbyroom_bio and then finally turns on the automation again - wihtout running the actual automation script. Becuase if I trigger the automation of my boolean, then it will turn on all the light again.