Hi Guys,
I have some dumb RGBCCT 5 in 1 led lights in my kitchen. These are either running a slow rainbow effect or completely OFF. They are run using the ESPThings controller ET-AL01 with ESP32 D1.
The trigger device is an Aqara motion sensor.
I had an automation that worked to a degree. If the kitchen leds were running the “slow rainbow” colour change effect, and someone walked into the kitchen the motion sensor would detect this take a snapshot of the leds and turn the leds to full white 6500K for the duration that someone was presence/motion was detected.
When no motion was detected, it would use the snapshot to return to the leds state prior to the motion detection.
This was all done a couple of years ago and obviously things have possible changed since then within HA that I’ve missed.
What I’m finding now is that, if there are NO leds on in the kitchen, NO rainbow effect, If I walk into the kitchen the motion sensor detects and turns the leds ON to full white, but after no motion is detected instead of the leds going back to NO leds being on as prior to the detection, they are switching from the full white to a pinky/red after.
It used to work as;
Current state of leds, if motion is detected, create snapshot/scene, Full White 6500k until No motion, use snapshot/scene to restore leds state.
But now the way it’s operating is:Current state of leds, if motion is detected, create snapshot/scene, Full White 6500k until No motion, leds then goto pinky red?
Here’s what I have;
alias: kitchen leds catch
description: ""
triggers:
- type: motion
device_id: 55e691e9b1cb092f850de53663eb780c
entity_id: ef1867600fa68c4a2acc25f499e294fb
domain: binary_sensor
trigger: device
conditions: []
actions:
- data:
scene_id: leds_before_motion
snapshot_entities:
- light.kitchen_colour_leds_1
action: scene.create
- data:
kelvin: 6500
brightness: 255
effect: None
target:
entity_id:
- light.kitchen_colour_leds_1
action: light.turn_on
mode: restart
alias: kitchen leds reload
description: ""
triggers:
- type: no_motion
device_id: 55e691e9b1cb092f850de53663eb780c
entity_id: ef1867600fa68c4a2acc25f499e294fb
domain: binary_sensor
trigger: device
conditions: []
actions:
- action: scene.turn_on
data: {}
target:
entity_id: scene.leds_before_motion
mode: restart
Does anyone have any thoughts?