This is basically a request for an additional automation paradigm that can be applied for many scenarios.
Example:
I want the lights in my office to be on when:
- somebody is in my office (motion/mmwave sensor)
- current time is between sunset and sunrise (time/sun sensor) OR when it’s raining (weather station sensor)
Current way of configuring:
- Automation 1: if motion sensor becomes true, check if current time between sunset and sunrise or if it’s raining → switch on lights
- Automation 2: if motion sensor becomes false → switch off lights
- Automation 3: when current time between sunset and sunrise, check if motion is on → switch on light
- Automation 4: when current time not anymore between sunset and sunrise, check if it’s not raining → switch off light
- Automation 5: when it’s raining, check if motion is on → switch on light
- Automation 6: when it’s not raining anymore, check if the time is not between sunset and sunrise and if motion is off → swich off light
Imagine having more conditions, the number of permutations will grow exponentially.
Desired way of configuring:
Automation 1:
- Configure the triggers:
- motion sensor is on
- current time between sunset and sunrise OR it’s raining
- Configure desired state:
- lights are on
- Configure default/counter state:
- lights are off
You can kind of do achieve this currently by using triggers that react to all state changes and then write a template condition that combines all state requirements, but it’s complicated and tedious while I believe this the paradigm I’m proposing is close to how people think: I want the light to be one when…