Converted the 12 button blueprint to Node Red flow.
To use it :
- Import the flow
- Change the device id in the Scene Switch node.
- Connect the end points to whatever you want it to do.
[
{
"id": "a332bce38a2178ce",
"type": "tab",
"label": "Flow 2",
"disabled": false,
"info": "",
"env": []
},
{
"id": "4ff9b9ef99d85d91",
"type": "server-events",
"z": "a332bce38a2178ce",
"name": "zha_event_scanner",
"server": "76b07c6c.a5b7a4",
"version": 1,
"event_type": "zha_event",
"exposeToHomeAssistant": false,
"haConfig": [
{
"property": "name",
"value": ""
},
{
"property": "icon",
"value": ""
}
],
"waitForRunning": true,
"outputProperties": [
{
"property": "payload",
"propertyType": "msg",
"value": "",
"valueType": "eventData"
},
{
"property": "topic",
"propertyType": "msg",
"value": "$outputData(\"eventData\").event_type",
"valueType": "jsonata"
},
{
"property": "event_type",
"propertyType": "msg",
"value": "$outputData(\"eventData\").event_type",
"valueType": "jsonata"
}
],
"x": 110,
"y": 40,
"wires": [
[
"5d3abba8ca20c166"
]
]
},
{
"id": "5d3abba8ca20c166",
"type": "switch",
"z": "a332bce38a2178ce",
"name": "Scene Switch",
"property": "payload.event.device_ieee",
"propertyType": "msg",
"rules": [
{
"t": "eq",
"v": "60:a4:23:ff:fe:6b:75:4d",
"vt": "str"
}
],
"checkall": "true",
"repair": false,
"outputs": 1,
"x": 300,
"y": 40,
"wires": [
[
"c9f64ad0d0fbbf20"
]
]
},
{
"id": "c9f64ad0d0fbbf20",
"type": "switch",
"z": "a332bce38a2178ce",
"name": "Press Type",
"property": "payload.event.command",
"propertyType": "msg",
"rules": [
{
"t": "eq",
"v": "remote_button_short_press",
"vt": "str"
},
{
"t": "eq",
"v": "remote_button_double_press",
"vt": "str"
},
{
"t": "eq",
"v": "remote_button_long_press",
"vt": "str"
}
],
"checkall": "true",
"repair": false,
"outputs": 3,
"x": 470,
"y": 40,
"wires": [
[
"fd76a00401a2958b"
],
[
"efcb89c4f5193d48"
],
[
"bb278fa79e4e0026"
]
]
},
{
"id": "fd76a00401a2958b",
"type": "switch",
"z": "a332bce38a2178ce",
"name": "Short Press",
"property": "payload.event.endpoint_id",
"propertyType": "msg",
"rules": [
{
"t": "eq",
"v": "1",
"vt": "str"
},
{
"t": "eq",
"v": "2",
"vt": "str"
},
{
"t": "eq",
"v": "3",
"vt": "str"
},
{
"t": "eq",
"v": "4",
"vt": "str"
}
],
"checkall": "true",
"repair": false,
"outputs": 4,
"x": 690,
"y": 40,
"wires": [
[],
[],
[],
[]
]
},
{
"id": "efcb89c4f5193d48",
"type": "switch",
"z": "a332bce38a2178ce",
"name": "Double Press",
"property": "payload.event.endpoint_id",
"propertyType": "msg",
"rules": [
{
"t": "eq",
"v": "1",
"vt": "str"
},
{
"t": "eq",
"v": "2",
"vt": "str"
},
{
"t": "eq",
"v": "3",
"vt": "str"
},
{
"t": "eq",
"v": "4",
"vt": "str"
}
],
"checkall": "true",
"repair": false,
"outputs": 4,
"x": 700,
"y": 120,
"wires": [
[],
[],
[],
[]
]
},
{
"id": "bb278fa79e4e0026",
"type": "switch",
"z": "a332bce38a2178ce",
"name": "Long Press",
"property": "payload.event.endpoint_id",
"propertyType": "msg",
"rules": [
{
"t": "eq",
"v": "1",
"vt": "str"
},
{
"t": "eq",
"v": "2",
"vt": "str"
},
{
"t": "eq",
"v": "3",
"vt": "str"
},
{
"t": "eq",
"v": "4",
"vt": "str"
}
],
"checkall": "true",
"repair": false,
"outputs": 4,
"x": 690,
"y": 200,
"wires": [
[],
[],
[],
[]
]
},
{
"id": "76b07c6c.a5b7a4",
"type": "server",
"name": "Home Assistant",
"version": 2,
"addon": false,
"rejectUnauthorizedCerts": true,
"ha_boolean": "y|yes|true|on|home|open",
"connectionDelay": true,
"cacheJson": true,
"heartbeat": false,
"heartbeatInterval": "30"
}
]