Hello, I have an IKEA motion sensor and a EcoDim dimmer https://www.zigbee2mqtt.io/devices/Eco-Dim.07_Eco-Dim.10.html with a few dumb lights in my bathroom.
My motion sensor successfully turns on lights, but there is somewthing wrong with the logic to shut them off.
What works: turn on lights scenes depending time of the day (ecodim 20% during night time, 30% evening, 70% day time).
What does not work: shut off ecodim light, when there hasnt been any detected motion for X amount of minutes, and the light is on.
How it behaves now: if I leave bathroom with lights on, it never triggers the shut off light, and light is on forever.
If I press ecodim button to shutoff light, and then quickly try to leave bathrom, then motion is detected and it turns on again. so I have to press ecodim once again to shut off light.
my automations:
this fails to work as I want,
alias: motion sensor bathroom lamp OFF
description: ""
triggers:
- type: not_occupied
device_id: 1da98976057540d6ba36d16019f35597
entity_id: c256944dda5772ebb7869fad5dbde97a
domain: binary_sensor
trigger: device
conditions:
- type: is_not_occupied
condition: device
device_id: 1da98976057540d6ba36d16019f35597
entity_id: c256944dda5772ebb7869fad5dbde97a
domain: binary_sensor
for:
hours: 0
minutes: 15
seconds: 0
- condition: device
type: is_on
device_id: b9a83edf993d4ac0bc57a3935878229d
entity_id: 6ccb7b59e94de70434a75418b109a372
domain: light
actions:
- type: turn_off
device_id: b9a83edf993d4ac0bc57a3935878229d
entity_id: light.ecodim_light
domain: light
mode: single
Integrate your EcoDim Eco-Dim.07/Eco-Dim.10 via Zigbee2MQTT with whatever smart home infrastructure you are using without the vendor's bridge or gateway.