Hi Guys,
First post!! admittantly I’ve been a serial lurker for many months and I’m finally starting to build all my automations using node red.
Having a bit of a problem in regards of extracting scene_id information from a zwave module. I can see that the informaton in the debug console is correct and being passed through but I am struggling to utilise a switch to extract the data to turn on specific lights in this case.
Would it be possible for someone who is more knewageable than me to take a look at what I have and tell me where I am going wrong?
As you can see i’ve tried a few different ways but still no luck…
[{“id”:“85438fdc.c613d”,“type”:“server-state-changed”,“z”:“e094afaa.a25a3”,“name”:“Hall switch”,“server”:“d8c4eef3.8bf8d”,“version”:1,“exposeToHomeAssistant”:false,“haConfig”:[{“property”:“name”,“value”:""},{“property”:“icon”,“value”:""}],“entityidfilter”:“zwave.hall_light”,“entityidfiltertype”:“exact”,“outputinitially”:false,“state_type”:“str”,“haltifstate”:"",“halt_if_type”:“str”,“halt_if_compare”:“is”,“outputs”:1,“output_only_on_state_change”:true,“x”:110,“y”:760,“wires”:[[“3518d232.7b86ee”]]},{“id”:“3518d232.7b86ee”,“type”:“switch”,“z”:“e094afaa.a25a3”,“name”:“Scene activated”,“property”:“payload.event.scene_id”,“propertyType”:“msg”,“rules”:[{“t”:“cont”,“v”:“scene_id: 14”,“vt”:“str”},{“t”:“cont”,“v”:“payload.event.scene_id: 14”,“vt”:“msg”},{“t”:“cont”,“v”:“zwave.scene_activated”,“vt”:“str”},{“t”:“cont”,“v”:“14”,“vt”:“str”}],“checkall”:“true”,“repair”:false,“outputs”:4,“x”:360,“y”:760,“wires”:[[“e95a8891.81fda8”,“5abe88bd.657b38”],[“e95a8891.81fda8”,“5abe88bd.657b38”],[“e95a8891.81fda8”,“5abe88bd.657b38”],[“e95a8891.81fda8”,“5abe88bd.657b38”]]},{“id”:“e95a8891.81fda8”,“type”:“debug”,“z”:“e094afaa.a25a3”,“name”:"",“active”:true,“tosidebar”:true,“console”:false,“tostatus”:false,“complete”:“hallswitch”,“targetType”:“msg”,“x”:720,“y”:800,“wires”:[]},{“id”:“5abe88bd.657b38”,“type”:“api-call-service”,“z”:“e094afaa.a25a3”,“name”:“main light ON”,“server”:“d8c4eef3.8bf8d”,“version”:1,“debugenabled”:false,“service_domain”:“homeassistant”,“service”:“turn_on”,“entityId”:“light.living_light”,“data”:"",“dataType”:“json”,“mergecontext”:"",“output_location”:“payload”,“output_location_type”:“msg”,“mustacheAltTags”:false,“x”:840,“y”:760,“wires”:[[]]},{“id”:“d8c4eef3.8bf8d”,“type”:“server”,“z”:"",“name”:“Home Assistant”,“legacy”:false,“hassio”:true,“rejectUnauthorizedCerts”:true,“ha_boolean”:“y|yes|true|on|home|open”,“connectionDelay”:true,“cacheJson”:true}]
Thanks!