So, I have an input_boolean (Visitors Mode - toggle) that allows me to cancel two automations, based on Motion, after 11.30PM, that turn on/off a lamp that I have in the living room, in case there’s someone over.
Then I created another two new automations, because my kid keeps forgetting there’s the “Visitors Mode” sigh , that toggles on the input_boolean, after 11.30PM, in case that the TV is on at that time. The same with toggling off the input_boolean when the TV is off, after that time.
The problem is that the last “auto toggling off”, will also turn off the input_boolean when I have someone over, if the TV is turned off.
Is there a way to condition it to “Not”, if the boolean was “triggered by service input_boolean.turn_off” / or Person; making a difference from “triggered by automation”?
In ‘Motion ON’, the first State Trigger, that monitors binary_sensor.motion_sensor for an on state, is disabled (enabled: false).
In ‘Motion OFF’, the first State Trigger, that monitors binary_sensor.motion_sensor for an off state, is enabled.
So the first automation can’t detect when the motion sensor turns on but the second automation can detect when it turns off . Why? Is this the actual working version or were you experimenting with enabling/disabling individual triggers?
In ‘Motion ON’ the time range in the condition is from 00:00 to sunrise.
In ‘Motion OFf’ the time range in the condition is from 00:00 to 08:00.
Most motion-controlled lighting automations I have seen are symmetrical. In this case, the time periods for turning the light on and off aren’t identical and their respective State Condition doesn’t reference the same input_boolean. Why?
Yes, I’ve been experimenting with some problems related to one of the motion sensors. The binary_sensor_presence_46 is the newly added. Having the binary_sensor.motion_sensor, as trigger, disabled, on Motion On, was when I was testing both sensors.
The fact that both automations aren’t “symmetrical”, is related with the sunrise (06.58am) not always going accurate now-a-days with the light outside as the living room windows are located in South and West positions; it’s also going through some tests.
About the lack of reference of the input_boolean (Visitor Mode), there was no need for it to be within the Motion On; it’s (lamp) usually on, at the time, already. Only the input_boolean (Cinema Mode), so that it won’t turn that light on when that boolean is on.
Even though they do need some “cleaning”; everything is working.