Blue series Home Assistant multi-tap automation question z2m

How are HA and zigbee2mqtt users setting up their multi-tap controls?

There was a great node-red flow for the Red series switch but I haven’t seen that reproduced for the Blue’s yet.

I have seen some screenshots with automation in HA that have multiple action options but I think those were ZHA users. I can only seem to automate one action at a time using z2m.

Do I need a unique HA automation for every tap I want to scene for each switch in the deployment? That could add up to hundreds of different automations very quickly instead of one for each switch.

Home Assistant 2023.5.2 Supervisor 2023.04.1
Zigbee2MQTT 1.30.4 mosquitto 2.0.11
VZM31-SN 2.14

I’ve been doing it with this blueprint I created: homeassistant-config/inovelli-vzm31-sn-blue-series-switch.yaml at master · rohankapoorcom/homeassistant-config · GitHub

Here’s an example of how’s it’s used: homeassistant-config/kitchen.yaml at master · rohankapoorcom/homeassistant-config · GitHub

1 Like

I use Node Red for all my automations so I set up the multiple light switches in my home using the node red device like below. It isn’t finished because I need to figure out how I am going to use the dimmer with my smart bulbs but it is very easy to work with the dozen or so switches.

One warning, name your switches in the entities as you create them because this is not automated…

[{“id”:“1aae900dbba5c364”,“type”:“ha-device”,“z”:“71179d9c99991b19”,“name”:“Up 2 Click”,“server”:“6fa20176.43a71”,“version”:0,“debugenabled”:false,“exposeToHomeAssistant”:false,“haConfig”:[{“property”:“name”,“value”:“”},{“property”:“icon”,“value”:“”}],“inputs”:0,“deviceType”:“trigger”,“device”:“d3d2e587e9d9cb95d00418fcf182a838”,“event”:{“device_id”:“d3d2e587e9d9cb95d00418fcf182a838”,“domain”:“zha”,“platform”:“device”,“type”:“remote_button_double_press”,“subtype”:“Up”,“metadata”:{}},“capabilities”:[],“outputProperties”:[{“property”:“payload”,“propertyType”:“msg”,“value”:“”,“valueType”:“eventData”},{“property”:“topic”,“propertyType”:“msg”,“value”:“”,“valueType”:“triggerId”}],“x”:480,“y”:140,“wires”:[[“3afff89f9234d8d8”]]},{“id”:“3afff89f9234d8d8”,“type”:“api-call-service”,“z”:“71179d9c99991b19”,“name”:“ON”,“server”:“6fa20176.43a71”,“version”:5,“debugenabled”:false,“domain”:“light”,“service”:“turn_on”,“areaId”:[],“deviceId”:[],“entityId”:[“light.kitchen_lights”],“data”:“”,“dataType”:“jsonata”,“mergeContext”:“”,“mustacheAltTags”:false,“outputProperties”:[],“queue”:“none”,“x”:670,“y”:140,“wires”:[[]]},{“id”:“73ca2aea90350142”,“type”:“ha-device”,“z”:“71179d9c99991b19”,“name”:“Dwn 2 Click”,“server”:“6fa20176.43a71”,“version”:0,“debugenabled”:false,“exposeToHomeAssistant”:false,“haConfig”:[{“property”:“name”,“value”:“”},{“property”:“icon”,“value”:“”}],“inputs”:0,“deviceType”:“trigger”,“device”:“d3d2e587e9d9cb95d00418fcf182a838”,“event”:{“device_id”:“d3d2e587e9d9cb95d00418fcf182a838”,“domain”:“zha”,“platform”:“device”,“type”:“remote_button_double_press”,“subtype”:“Down”,“metadata”:{}},“capabilities”:[],“outputProperties”:[{“property”:“payload”,“propertyType”:“msg”,“value”:“”,“valueType”:“eventData”},{“property”:“topic”,“propertyType”:“msg”,“value”:“”,“valueType”:“triggerId”}],“x”:490,“y”:200,“wires”:[[“7057e8405297f7df”]]},{“id”:“7057e8405297f7df”,“type”:“api-call-service”,“z”:“71179d9c99991b19”,“name”:“OFF”,“server”:“6fa20176.43a71”,“version”:5,“debugenabled”:false,“domain”:“light”,“service”:“turn_off”,“areaId”:[],“deviceId”:[],“entityId”:[“light.kitchen_lights”],“data”:“”,“dataType”:“jsonata”,“mergeContext”:“”,“mustacheAltTags”:false,“outputProperties”:[],“queue”:“none”,“x”:670,“y”:200,“wires”:[[]]},{“id”:“9bc107bdeb4ee4fa”,“type”:“comment”,“z”:“71179d9c99991b19”,“name”:“Kitchen Lights”,“info”:“”,“x”:490,“y”:100,“wires”:[]},{“id”:“a78831e97a227dcf”,“type”:“ha-device”,“z”:“71179d9c99991b19”,“name”:“Up 3 Click”,“server”:“6fa20176.43a71”,“version”:0,“debugenabled”:false,“exposeToHomeAssistant”:false,“haConfig”:[{“property”:“name”,“value”:“”},{“property”:“icon”,“value”:“”}],“inputs”:0,“deviceType”:“trigger”,“device”:“d3d2e587e9d9cb95d00418fcf182a838”,“event”:{“device_id”:“d3d2e587e9d9cb95d00418fcf182a838”,“domain”:“zha”,“platform”:“device”,“type”:“remote_button_triple_press”,“subtype”:“Up”,“metadata”:{}},“capabilities”:[],“outputProperties”:[{“property”:“payload”,“propertyType”:“msg”,“value”:“”,“valueType”:“eventData”},{“property”:“topic”,“propertyType”:“msg”,“value”:“”,“valueType”:“triggerId”}],“x”:840,“y”:140,“wires”:[[“cc10f2e36c30d96e”]]},{“id”:“cc10f2e36c30d96e”,“type”:“api-call-service”,“z”:“71179d9c99991b19”,“name”:“ON”,“server”:“6fa20176.43a71”,“version”:5,“debugenabled”:false,“domain”:“light”,“service”:“turn_on”,“areaId”:[],“deviceId”:[],“entityId”:[“light.dining_room_lights”],“data”:“”,“dataType”:“jsonata”,“mergeContext”:“”,“mustacheAltTags”:false,“outputProperties”:[],“queue”:“none”,“x”:1030,“y”:140,“wires”:[[]]},{“id”:“777e1cb44f4e4023”,“type”:“ha-device”,“z”:“71179d9c99991b19”,“name”:“Dwn 3 Click”,“server”:“6fa20176.43a71”,“version”:0,“debugenabled”:false,“exposeToHomeAssistant”:false,“haConfig”:[{“property”:“name”,“value”:“”},{“property”:“icon”,“value”:“”}],“inputs”:0,“deviceType”:“trigger”,“device”:“d3d2e587e9d9cb95d00418fcf182a838”,“event”:{“device_id”:“d3d2e587e9d9cb95d00418fcf182a838”,“domain”:“zha”,“platform”:“device”,“type”:“remote_button_triple_press”,“subtype”:“Down”,“metadata”:{}},“capabilities”:[],“outputProperties”:[{“property”:“payload”,“propertyType”:“msg”,“value”:“”,“valueType”:“eventData”},{“property”:“topic”,“propertyType”:“msg”,“value”:“”,“valueType”:“triggerId”}],“x”:850,“y”:200,“wires”:[[“3413c5ace2aead01”]]},{“id”:“3413c5ace2aead01”,“type”:“api-call-service”,“z”:“71179d9c99991b19”,“name”:“OFF”,“server”:“6fa20176.43a71”,“version”:5,“debugenabled”:false,“domain”:“light”,“service”:“turn_off”,“areaId”:[],“deviceId”:[],“entityId”:[“light.dining_room_lights”],“data”:“”,“dataType”:“jsonata”,“mergeContext”:“”,“mustacheAltTags”:false,“outputProperties”:[],“queue”:“none”,“x”:1030,“y”:200,“wires”:[[]]},{“id”:“2b49b29227de3937”,“type”:“comment”,“z”:“71179d9c99991b19”,“name”:“Dining Room Lights”,“info”:“”,“x”:870,“y”:100,“wires”:[]},{“id”:“1ff127f38c7b3b4e”,“type”:“ha-device”,“z”:“71179d9c99991b19”,“name”:“Up Press”,“server”:“6fa20176.43a71”,“version”:0,“debugenabled”:false,“exposeToHomeAssistant”:false,“haConfig”:[{“property”:“name”,“value”:“”},{“property”:“icon”,“value”:“”}],“inputs”:0,“deviceType”:“trigger”,“device”:“d3d2e587e9d9cb95d00418fcf182a838”,“event”:{“device_id”:“d3d2e587e9d9cb95d00418fcf182a838”,“domain”:“zha”,“platform”:“device”,“type”:“press”,“subtype”:“Up”,“metadata”:{}},“capabilities”:[],“outputProperties”:[{“property”:“payload”,“propertyType”:“msg”,“value”:“”,“valueType”:“eventData”},{“property”:“topic”,“propertyType”:“msg”,“value”:“”,“valueType”:“triggerId”}],“x”:120,“y”:140,“wires”:[[“b9d372a493d280ba”]]},{“id”:“b9d372a493d280ba”,“type”:“api-call-service”,“z”:“71179d9c99991b19”,“name”:“ON”,“server”:“6fa20176.43a71”,“version”:5,“debugenabled”:false,“domain”:“light”,“service”:“turn_on”,“areaId”:[],“deviceId”:[],“entityId”:[“light.living_room_lights”],“data”:“”,“dataType”:“jsonata”,“mergeContext”:“”,“mustacheAltTags”:false,“outputProperties”:[],“queue”:“none”,“x”:310,“y”:140,“wires”:[[]]},{“id”:“3b2455f919503a51”,“type”:“ha-device”,“z”:“71179d9c99991b19”,“name”:“Dwn Press”,“server”:“6fa20176.43a71”,“version”:0,“debugenabled”:false,“exposeToHomeAssistant”:false,“haConfig”:[{“property”:“name”,“value”:“”},{“property”:“icon”,“value”:“”}],“inputs”:0,“deviceType”:“trigger”,“device”:“d3d2e587e9d9cb95d00418fcf182a838”,“event”:{“device_id”:“d3d2e587e9d9cb95d00418fcf182a838”,“domain”:“zha”,“platform”:“device”,“type”:“press”,“subtype”:“Down”,“metadata”:{}},“capabilities”:[],“outputProperties”:[{“property”:“payload”,“propertyType”:“msg”,“value”:“”,“valueType”:“eventData”},{“property”:“topic”,“propertyType”:“msg”,“value”:“”,“valueType”:“triggerId”}],“x”:120,“y”:200,“wires”:[[“60cfea77405c1a16”]]},{“id”:“60cfea77405c1a16”,“type”:“api-call-service”,“z”:“71179d9c99991b19”,“name”:“OFF”,“server”:“6fa20176.43a71”,“version”:5,“debugenabled”:false,“domain”:“light”,“service”:“turn_off”,“areaId”:[],“deviceId”:[],“entityId”:[“light.living_room_lights”],“data”:“”,“dataType”:“jsonata”,“mergeContext”:“”,“mustacheAltTags”:false,“outputProperties”:[],“queue”:“none”,“x”:310,“y”:200,“wires”:[[]]},{“id”:“6ad04b8a33bfd8a5”,“type”:“comment”,“z”:“71179d9c99991b19”,“name”:“Living Room Lights”,“info”:“”,“x”:150,“y”:100,“wires”:[]},{“id”:“f795c1748dc115aa”,“type”:“ha-device”,“z”:“71179d9c99991b19”,“name”:“Config 2 Click”,“server”:“6fa20176.43a71”,“version”:0,“debugenabled”:false,“exposeToHomeAssistant”:false,“haConfig”:[{“property”:“name”,“value”:“”},{“property”:“icon”,“value”:“”}],“inputs”:0,“deviceType”:“trigger”,“device”:“d3d2e587e9d9cb95d00418fcf182a838”,“event”:{“device_id”:“d3d2e587e9d9cb95d00418fcf182a838”,“domain”:“zha”,“platform”:“device”,“type”:“remote_button_double_press”,“subtype”:“Config”,“metadata”:{}},“capabilities”:[],“outputProperties”:[{“property”:“payload”,“propertyType”:“msg”,“value”:“”,“valueType”:“eventData”},{“property”:“topic”,“propertyType”:“msg”,“value”:“”,“valueType”:“triggerId”}],“x”:490,“y”:320,“wires”:[[“65e37c57703309e5”]]},{“id”:“65e37c57703309e5”,“type”:“api-call-service”,“z”:“71179d9c99991b19”,“name”:“ON”,“server”:“6fa20176.43a71”,“version”:5,“debugenabled”:false,“domain”:“light”,“service”:“turn_on”,“areaId”:[],“deviceId”:[],“entityId”:[“light.living_area_lights”],“data”:“”,“dataType”:“jsonata”,“mergeContext”:“”,“mustacheAltTags”:false,“outputProperties”:[],“queue”:“none”,“x”:670,“y”:320,“wires”:[[]]},{“id”:“dc780ba337893d82”,“type”:“comment”,“z”:“71179d9c99991b19”,“name”:“Living Area Lights”,“info”:“”,“x”:510,“y”:280,“wires”:[]},{“id”:“e432ba7b600e26e8”,“type”:“ha-device”,“z”:“71179d9c99991b19”,“name”:“Up Hold”,“server”:“6fa20176.43a71”,“version”:0,“debugenabled”:false,“exposeToHomeAssistant”:false,“haConfig”:[{“property”:“name”,“value”:“”},{“property”:“icon”,“value”:“”}],“inputs”:0,“deviceType”:“trigger”,“device”:“d3d2e587e9d9cb95d00418fcf182a838”,“event”:{“device_id”:“d3d2e587e9d9cb95d00418fcf182a838”,“domain”:“zha”,“platform”:“device”,“type”:“hold”,“subtype”:“Up”,“metadata”:{}},“capabilities”:[],“outputProperties”:[{“property”:“payload”,“propertyType”:“msg”,“value”:“”,“valueType”:“eventData”},{“property”:“topic”,“propertyType”:“msg”,“value”:“”,“valueType”:“triggerId”}],“x”:120,“y”:260,“wires”:[[]]},{“id”:“f227f0fb0c9c8165”,“type”:“api-call-service”,“z”:“71179d9c99991b19”,“name”:“Brighter”,“server”:“6fa20176.43a71”,“version”:5,“debugenabled”:false,“domain”:“light”,“service”:“turn_on”,“areaId”:[],“deviceId”:[],“entityId”:[“light.dining_room_lights”],“data”:“”,“dataType”:“jsonata”,“mergeContext”:“”,“mustacheAltTags”:false,“outputProperties”:[],“queue”:“none”,“x”:320,“y”:260,“wires”:[[]]},{“id”:“79faf72b55e00e2d”,“type”:“ha-device”,“z”:“71179d9c99991b19”,“name”:“Dwn Hold”,“server”:“6fa20176.43a71”,“version”:0,“debugenabled”:false,“exposeToHomeAssistant”:false,“haConfig”:[{“property”:“name”,“value”:“”},{“property”:“icon”,“value”:“”}],“inputs”:0,“deviceType”:“trigger”,“device”:“d3d2e587e9d9cb95d00418fcf182a838”,“event”:{“device_id”:“d3d2e587e9d9cb95d00418fcf182a838”,“domain”:“zha”,“platform”:“device”,“type”:“hold”,“subtype”:“Down”,“metadata”:{}},“capabilities”:[],“outputProperties”:[{“property”:“payload”,“propertyType”:“msg”,“value”:“”,“valueType”:“eventData”},{“property”:“topic”,“propertyType”:“msg”,“value”:“”,“valueType”:“triggerId”}],“x”:120,“y”:320,“wires”:[[]]},{“id”:“737e1a8074867300”,“type”:“api-call-service”,“z”:“71179d9c99991b19”,“name”:“Dimmer”,“server”:“6fa20176.43a71”,“version”:5,“debugenabled”:false,“domain”:“light”,“service”:“turn_on”,“areaId”:[],“deviceId”:[],“entityId”:[“light.dining_room_lights”],“data”:“”,“dataType”:“jsonata”,“mergeContext”:“”,“mustacheAltTags”:false,“outputProperties”:[],“queue”:“none”,“x”:320,“y”:320,“wires”:[[]]},{“id”:“fa94265a8936ede0”,“type”:“comment”,“z”:“71179d9c99991b19”,“name”:“Living Room Light Switch”,“info”:“”,“x”:170,“y”:60,“wires”:[]},{“id”:“3c768c57a656a16b”,“type”:“comment”,“z”:“71179d9c99991b19”,“name”:“Emergency”,“info”:“”,“x”:850,“y”:280,“wires”:[]},{“id”:“ad8e9d4455e2fb1d”,“type”:“link out”,“z”:“71179d9c99991b19”,“name”:“link out Emergency”,“mode”:“link”,“links”:[“5f02757ac7533f74”],“x”:995,“y”:320,“wires”:[]},{“id”:“e8f5adb6b8dc2670”,“type”:“ha-device”,“z”:“71179d9c99991b19”,“name”:“Config 5 Click”,“server”:“6fa20176.43a71”,“version”:0,“debugenabled”:false,“exposeToHomeAssistant”:false,“haConfig”:[{“property”:“name”,“value”:“”},{“property”:“icon”,“value”:“”}],“inputs”:0,“deviceType”:“trigger”,“device”:“d3d2e587e9d9cb95d00418fcf182a838”,“event”:{“device_id”:“d3d2e587e9d9cb95d00418fcf182a838”,“domain”:“zha”,“platform”:“device”,“type”:“remote_button_quintuple_press”,“subtype”:“Config”,“metadata”:{}},“capabilities”:[],“outputProperties”:[{“property”:“payload”,“propertyType”:“msg”,“value”:“”,“valueType”:“eventData”},{“property”:“topic”,“propertyType”:“msg”,“value”:“”,“valueType”:“triggerId”}],“x”:850,“y”:320,“wires”:[[“ad8e9d4455e2fb1d”]]},{“id”:“6fa20176.43a71”,“type”:“server”,“name”:“Home Assistant”,“version”:5,“addon”:true,“rejectUnauthorizedCerts”:true,“ha_boolean”:“y|yes|true|on|home|open”,“connectionDelay”:true,“cacheJson”:true,“heartbeat”:false,“heartbeatInterval”:“30”,“areaSelector”:“friendlyName”,“deviceSelector”:“friendlyName”,“entitySelector”:“friendlyName”,“statusSeparator”:"at: ",“statusYear”:“hidden”,“statusMonth”:“short”,“statusDay”:“numeric”,“statusHourCycle”:“h23”,“statusTimeFormat”:“h:m”,“enableGlobalContextStore”:true}]

1 Like

Thanks @rohan . I finally got around to trying this. I thought it was another blueprint I had previously tried unsuccessfully but this one worked without a hitch. Kudos to you.
The only enhancement I would suggest is the hold (up/down) action. I use those in my environment.

@bryan I just added support for those. i don’t use them as scene controls so I had forgotten to include them. Glad it’s working well for you!

2 Likes