I’m not sure I am following you. I probably went about this wrong, and got where I am from a different ‘angle’. I originally installed this relay to control the 3 porch and 6 flood lights outside. (all just standard BR30 lights). This year I ‘upgraded’ them all to RGB LifX smart bulbs making the smart relay a bit obsolete. it doesn’t make sense to power the wifi bulbs off because it takes them time to reconnect to wifi.
Since the relay is in the wall, I didn’t want to dig it out, but I didn’t want my wife switching the ligths off/on, so I googled around and discovered I could ‘divorce’ the dumb switch toggling from the relay, so toggling the switch does not toggle the relay. That way I can have the 9 lights always have power. BUT still use the dumb switches to control the light groups (porch/flood) by flipping them on/off.
In the other screen shots, above I was trying to show how i did that configuration, and how I was capturing that mqtt message trigger by just listening to the events ‘flipping’ the dumb switch sent.
I have not messed with any scenes, as I was just trying to stop the switches from being able to power off the bulbs, but still allow them to operate the light groups (making the wife happy
).
As I said, my automation works perfectly fine as is, I just discovered last week, updating zwave JS can apparently cause changes to the payload which will break my automation. Easy fix, but if I can make it update proof (or at least resistant) I’d change it.
Below is a working automation of the flood lights (which is endpoint 2 of the dual nano)
alias: Turn on Flood Lights with magic
description: ""
triggers:
- trigger: mqtt
topic: zwave/_EVENTS/ZWAVE_GATEWAY-Mosquitto/node/node_value_updated
payload: >-
{"data":[{"id":9,"inited":true,"name":"Dual Nano
Switch","location":"Outside","status":4,"isControllerNode":false,"interviewStage":5,"deviceClass":{"basic":"Routing
End Node","generic":"Binary Switch","specific":"Binary Power
Switch"},"zwavePlusVersion":1,"ready":true,"zwavePlusRoleType":5,"isListening":true,"isFrequentListening":false,"canSleep":false,"isRouting":true,"supportedDataRates":[40000,100000],"maxDataRate":100000,"supportsSecurity":false,"isSecure":false,"supportsBeaming":true,"protocolVersion":3,"firmwareVersion":"2.2","manufacturerId":134,"manufacturer":"AEON
Labs","productId":132,"productDescription":"Dual Nano Switch with Energy
Metering","productType":259,"productLabel":"ZW132","deviceDatabaseUrl":"https://devices.zwave-js.io/?jumpTo=0x0086:0x0103:0x0084:2.2","keepAwake":false,"protocol":0},{"commandClassName":"Basic","commandClass":32,"endpoint":2,"property":"event","value":255,"propertyName":"event","newValue":255,"stateless":true}]}
conditions: []
actions:
- action: light.turn_on
metadata: {}
data: {}
target:
entity_id: light.flood_lights_2
mode: single