Quantcast
Channel: Configuration - Home Assistant Community
Viewing all articles
Browse latest Browse all 95533

Turn lights off only if none of three motion sensors is triggered

$
0
0

@dantist wrote:

I’ve set up a rule to turn the lights on and off based on three motion sensors. It works fine for turning it on:

  trigger:
    platform: state
    entity_id: binary_sensor.homematic_motion_sensor_motion, binary_sensor.homematic_switch_1_motion, binary_sensor.homematic_switch_2_motion
    to: 'on'

but not correctly for turning it off:

  trigger:
    platform: state
    entity_id: binary_sensor.homematic_motion_sensor_motion, binary_sensor.homematic_switch_1_motion, binary_sensor.homematic_switch_2_motion
    to: 'off'
    for:
      minutes: 2

Even if I move within the range of one sensor, the lights turn off after two minutes. I guess I created a rule where ALL sensors have to be triggered to prevent the light from turning off. How do I change this so it doesn’t matter which sensors are triggered within the given time frame?

Posts: 9

Participants: 3

Read full topic


Viewing all articles
Browse latest Browse all 95533

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>