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

Problem with my motion sensor rule, perhaps someone has a idea?!

$
0
0

Hello members,

I have a problem with my motion detector rule, and it often works perfectly, but sometimes the light just stays on and doesn’t go off again.

then i have to switch the light off manually.

The rule should work as follows, if movement is triggered, the light should turn on, then he should leave the light on for 30 seconds, I use HUE motion detectors and, as far as I know, it takes 30 seconds to switch from “occupied” to “unoccupied”.
then he should check whether there is no more movement and switch off the light.

maybe i made a mistake somewhere.

My HUE Motion Sensor :

The EntityID always switches with the Hue motion detector
“binary_sensor. Bewegungsmelder_1er_stock_32496408_occupancy”

alias: Bewegungsmelder -- Erster Stock
description: (Sonnenuntergang )
trigger:
  - type: occupied
    platform: device
    device_id: 51dd0ed5f05dd0e1983080a04a2fa27b
    entity_id: binary_sensor.bewegungsmelder_1er_stock_32496408_occupancy
    domain: binary_sensor
condition:
  - condition: or
    conditions:
      - condition: sun
        after: sunset
      - condition: sun
        before: sunrise
action:
  - service: light.turn_on
    data:
      brightness_pct: 20
    target:
      entity_id: light.osram_classic_a60_w_clear_lightify_5372040a_level_on_off
  - delay:
      hours: 0
      minutes: 0
      seconds: 30
      milliseconds: 0
  - type: is_not_occupied
    condition: device
    device_id: 51dd0ed5f05dd0e1983080a04a2fa27b
    entity_id: binary_sensor.bewegungsmelder_1er_stock_32496408_occupancy
    domain: binary_sensor
  - service: light.toggle
    data:
      brightness_pct: 0
    target:
      entity_id: light.osram_classic_a60_w_clear_lightify_5372040a_level_on_off
mode: single

THANK YOU FOR YOUR TIME

3 posts - 2 participants

Read full topic


Viewing all articles
Browse latest Browse all 106286

Trending Articles



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