Sadly nothing simple.
I’ve got a couple of ways of trying to detect the power outage:
- If the max last seen on a given circuit is over a minute.
- If the total power draw on a set of sockets is zero whilst some are showing as on.
Currently those trigger an alert, then I manually check which are showing as on (as they show as on after a power cut even though they’re actually off) then double toggle them.
I eventually plan to automate the last part but as just wanting to ensure the logic for the trips works well enough first …
For dimming the LED brightness programmatically as part of a Perform action ‘Zigbee Home Automation: Issue Zigbee cluster command’ automation you can use this code:
data:
ieee: <add your IEEE id here>
endpoint_id: 1
cluster_id: 8
cluster_type: in
command: 0
command_type: server
params:
level: 50 #brightness between 0 and 250
transition_time: 1
action: zha.issue_zigbee_cluster_command
1 Like
Did anyone ever work out how to turn off the RED LED when the socket is off? I noticed the manual states it can actually be done (when using the hub and app) so the functionality exists. I just dont see it implemented into Z2M for this device (just LED dimming control)
Anyone worked it out?
You can use an automation to set the dimmer to 0 when the socket is off, but both LEDs work together.
EDIT: just had a look inside the socket and there are 3 RGB leds per side. I scratched the track to the RED led and now it works like - Off, no light, On, blue. Much better as red when off is confusing
Yeah i can see how an automation would work. It must be electronically controllable via firmware though if the manual states it’s possible surely? Good work around though!
Yes I agree. Looking at the PCB, there are programming pins for the JN5169 ZigBee chip but no idea how to change the firmware.
Maybe theres a clue in the exposed zigbee cluster information? I dont have mine installed as of yet, but was doing a test with it last night simply on my desk so i have no working experience of them…