I have a Phillips Hue motion sensor and Phillips Hue lights. The motion sensor detects temperature how much light there is available (in units of “lx”)
I created a automation that turns the lights on is the “lx” value of the motion sensor goes below 10. Here is what I have:
When: When master bedroom sensor Illuminance is above 0 and below 10
And If: (blank)
Then do: Call service ‘Light: Turn On’ Lights (Living Room)
I have checked when the Illumiance drops below 10 but the lights do not turn on (there is nothing even entered in the log book). If I go into Automation, click on the three vertical dots on this automation and click “Run” the lights do in fact turn on, so there is nothing wrong with the “Then do” action, at least.
I am not sure what else to do to troubleshoot this? I do intend t add a couple of Conditions (“And If”), but wanted to get the basic automation itself working first.
Ah, didn’t know about that. Just took a look and I think I see the issue. I will wait to see if it triggers tomorrow.
(Looks like a couple of conditions that I added previously but thought I disabled them; looks like that wa snot the case, and one of them was returning “false”. I have deleted the conditions to make absolutely sure they can’t interfere)
my problem is, that the (lx) only changes the value in a distance of 1-5 minutes.
I dont know how I can trigger the enity illuminance to change the value more often…
Could be this maybe also a problem of your automation?
btw this is my automation, if you want to use it
alias: Deckenlampe Flur Tag
description: ""
trigger:
- platform: state
entity_id:
- binary_sensor.bewegungsmelder_flur_occupancy
from: "off"
to: "on"
id: Bewegung erkannt
- platform: state
entity_id:
- binary_sensor.bewegungsmelder_flur_occupancy
from: "on"
to: "off"
id: keine Bewegung mehr erkannt
for:
hours: 0
minutes: 0
seconds: 30
condition: []
action:
- choose:
- conditions:
- condition: and
conditions:
- condition: trigger
id:
- Bewegung erkannt
- condition: time
after: "05:30:00"
before: "22:30:00"
sequence:
- service: light.turn_on
target:
entity_id: light.deckenlampe_flur
data:
brightness_pct: 100
- conditions:
- condition: and
conditions:
- condition: trigger
id:
- Bewegung erkannt
- condition: time
after: "22:30:00"
before: "05:30:00"
sequence:
- service: light.turn_on
target:
entity_id: light.deckenlampe_flur
data:
brightness_pct: 15
- conditions:
- condition: and
conditions:
- condition: state
entity_id: light.deckenlampe_flur
state: "on"
- condition: trigger
id:
- keine Bewegung mehr erkannt
sequence:
- service: light.turn_off
metadata: {}
data: {}
target:
entity_id:
- light.deckenlampe_flur
mode: restart