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

Motion Sensor + Illuminance Sensor = No switch off if brighness > trigger value

$
0
0

Hi, I am trying to control my lights with a motion sensor. That works fine. But I only want to switch them on if a given threshold of illuminance is reached.
That also works fine. But here is the issue:
The lights don’t switch of if the (in the morning) the measured value goes over the programmed value during the “switch on time”.
The automation works “as coded” but I don’t know how to move the scope of the illuminance value.

alias: Licht Keller Flur LED-Streifen
description: ""
triggers:
  - type: occupied
    device_id: f1602f0a146f616fe84d3837d750c1ff
    entity_id: e9e2b290ec6ff993366ca14903567d2b
    domain: binary_sensor
    trigger: device
    id: motion-detected
  - type: not_occupied
    device_id: f1602f0a146f616fe84d3837d750c1ff
    entity_id: e9e2b290ec6ff993366ca14903567d2b
    domain: binary_sensor
    trigger: device
    id: no-motion-detected
    for:
      hours: 0
      minutes: 2
      seconds: 0
conditions:
  - type: is_illuminance
    condition: device
    device_id: 242de123895a921842968af27c738320
    entity_id: 6bbf1ad7dd1a973dd3823e588b6b2652
    domain: sensor
    below: 500
actions:
  - if:
      - condition: trigger
        id: motion-detected
      - condition: time
        after: "22:00:00"
        before: "07:00:00"
    then:
      - type: turn_on
        device_id: 08f40ebf16ab7c1f92edc1b32a7cb08e
        entity_id: dba6d11c1a313cd6496a480185db031b
        domain: light
        brightness_pct: 1
  - if:
      - condition: trigger
        id: motion-detected
      - condition: time
        after: "07:00:00"
        before: "22:00:00"
    then:
      - type: turn_on
        device_id: 08f40ebf16ab7c1f92edc1b32a7cb08e
        entity_id: dba6d11c1a313cd6496a480185db031b
        domain: light
        brightness_pct: 80
  - if:
      - condition: trigger
        id:
          - no-motion-detected
    then:
      - type: turn_off
        device_id: 08f40ebf16ab7c1f92edc1b32a7cb08e
        entity_id: dba6d11c1a313cd6496a480185db031b
        domain: light
mode: single

I appreciate any help.

Thank,
Matthias

1 post - 1 participant

Read full topic


Viewing all articles
Browse latest Browse all 106036

Trending Articles



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