Skip to content

Instantly share code, notes, and snippets.

@rootiest
Created July 21, 2021 22:35
Show Gist options
  • Save rootiest/b9642c6f18ed75bb2ad16950853ee3d0 to your computer and use it in GitHub Desktop.
Save rootiest/b9642c6f18ed75bb2ad16950853ee3d0 to your computer and use it in GitHub Desktop.
Zigbee Remote Controller Node Red Flow
[
{
"id": "37d14000.39407",
"type": "tab",
"label": "Zigbee Remotes",
"disabled": false,
"info": ""
},
{
"id": "5464db46.065df4",
"type": "server-events",
"z": "37d14000.39407",
"name": "",
"server": "958153f5.352da",
"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"
}
],
"x": 110,
"y": 60,
"wires": [
[
"22c44ffd.a0bd1"
]
]
},
{
"id": "22c44ffd.a0bd1",
"type": "switch",
"z": "37d14000.39407",
"name": "Remote Selector",
"property": "payload.event.device_ieee",
"propertyType": "msg",
"rules": [
{
"t": "eq",
"v": "cc:cc:cc:ff:fe:aa:6d:8b",
"vt": "str"
},
{
"t": "eq",
"v": "08:6b:d7:ff:fe:fc:9f:a1",
"vt": "str"
},
{
"t": "eq",
"v": "08:6b:d7:ff:fe:fc:9f:3a",
"vt": "str"
}
],
"checkall": "true",
"repair": false,
"outputs": 3,
"x": 130,
"y": 140,
"wires": [
[
"b8fea6b1.c1a068"
],
[
"dfabf4a0.204878"
],
[
"b852bf9e.2bce3"
]
]
},
{
"id": "b852bf9e.2bce3",
"type": "switch",
"z": "37d14000.39407",
"name": "Kitchen Remote",
"property": "payload.event.command",
"propertyType": "msg",
"rules": [
{
"t": "eq",
"v": "on",
"vt": "str"
},
{
"t": "eq",
"v": "off",
"vt": "str"
},
{
"t": "eq",
"v": "move",
"vt": "str"
},
{
"t": "eq",
"v": "stop",
"vt": "str"
}
],
"checkall": "true",
"repair": false,
"outputs": 4,
"x": 360,
"y": 460,
"wires": [
[
"48a1e3a7.69d86c"
],
[
"48a1e3a7.69d86c"
],
[
"63bcb3e.ae00a4c"
],
[]
]
},
{
"id": "dfabf4a0.204878",
"type": "switch",
"z": "37d14000.39407",
"name": "Living Room Remote",
"property": "payload.event.command",
"propertyType": "msg",
"rules": [
{
"t": "eq",
"v": "on",
"vt": "str"
},
{
"t": "eq",
"v": "off",
"vt": "str"
},
{
"t": "eq",
"v": "move",
"vt": "str"
},
{
"t": "eq",
"v": "stop",
"vt": "str"
}
],
"checkall": "true",
"repair": false,
"outputs": 4,
"x": 400,
"y": 320,
"wires": [
[
"cdc7e1ca.4c092"
],
[
"cdc7e1ca.4c092"
],
[
"4e4075b8.28564c"
],
[]
]
},
{
"id": "b8fea6b1.c1a068",
"type": "switch",
"z": "37d14000.39407",
"name": "Multi Remote",
"property": "payload.event.command",
"propertyType": "msg",
"rules": [
{
"t": "eq",
"v": "on",
"vt": "str"
},
{
"t": "eq",
"v": "off",
"vt": "str"
},
{
"t": "eq",
"v": "move_to_level",
"vt": "str"
},
{
"t": "eq",
"v": "move_to_color_temp",
"vt": "str"
},
{
"t": "eq",
"v": "move_to_color",
"vt": "str"
}
],
"checkall": "true",
"repair": false,
"outputs": 5,
"x": 330,
"y": 100,
"wires": [
[
"55597d.1dd9f684"
],
[
"55597d.1dd9f684"
],
[
"90f0feae.4aa5f"
],
[
"dc1b041b.d0f598"
],
[
"55c337f1.8b0858"
]
]
},
{
"id": "fe7a3512.352118",
"type": "api-call-service",
"z": "37d14000.39407",
"name": "Toggle Living Room Lights",
"server": "958153f5.352da",
"version": 3,
"debugenabled": false,
"service_domain": "light",
"service": "toggle",
"entityId": "light.living_room_lights",
"data": "",
"dataType": "jsonata",
"mergecontext": "",
"mustacheAltTags": false,
"outputProperties": [],
"queue": "none",
"x": 840,
"y": 40,
"wires": [
[]
]
},
{
"id": "b8abcef1.879c9",
"type": "api-call-service",
"z": "37d14000.39407",
"name": "Toggle Living Room Floor Lamp",
"server": "958153f5.352da",
"version": 3,
"debugenabled": false,
"service_domain": "light",
"service": "toggle",
"entityId": "light.floor_lamp",
"data": "",
"dataType": "jsonata",
"mergecontext": "",
"mustacheAltTags": false,
"outputProperties": [],
"queue": "none",
"x": 890,
"y": 260,
"wires": [
[]
]
},
{
"id": "4cd40764.4fea78",
"type": "api-call-service",
"z": "37d14000.39407",
"name": "Toggle Kitchen Lights",
"server": "958153f5.352da",
"version": 3,
"debugenabled": false,
"service_domain": "light",
"service": "toggle",
"entityId": "light.kitchen_zigbee_lights",
"data": "",
"dataType": "jsonata",
"mergecontext": "",
"mustacheAltTags": false,
"outputProperties": [],
"queue": "none",
"x": 820,
"y": 420,
"wires": [
[]
]
},
{
"id": "90f0feae.4aa5f",
"type": "api-call-service",
"z": "37d14000.39407",
"name": "Change Living Room Brightness",
"server": "958153f5.352da",
"version": 3,
"debugenabled": false,
"service_domain": "light",
"service": "turn_on",
"entityId": "light.living_room_lights",
"data": "{\t \"brightness\": payload.event.args[0]\t}",
"dataType": "jsonata",
"mergecontext": "",
"mustacheAltTags": false,
"outputProperties": [],
"queue": "none",
"x": 570,
"y": 100,
"wires": [
[]
]
},
{
"id": "a148b56c.f40df8",
"type": "api-call-service",
"z": "37d14000.39407",
"name": "Toggle Reading Lamp",
"server": "958153f5.352da",
"version": 3,
"debugenabled": false,
"service_domain": "light",
"service": "toggle",
"entityId": "light.tyeb24576ef404b56d50pho9",
"data": "",
"dataType": "jsonata",
"mergecontext": "",
"mustacheAltTags": false,
"outputProperties": [],
"queue": "none",
"x": 880,
"y": 340,
"wires": [
[]
]
},
{
"id": "20536528.b477ba",
"type": "api-call-service",
"z": "37d14000.39407",
"name": "Toggle Bathroom Lamp",
"server": "958153f5.352da",
"version": 3,
"debugenabled": false,
"service_domain": "light",
"service": "toggle",
"entityId": "light.bathroom_lights",
"data": "",
"dataType": "jsonata",
"mergecontext": "",
"mustacheAltTags": false,
"outputProperties": [],
"queue": "none",
"x": 850,
"y": 480,
"wires": [
[]
]
},
{
"id": "dc1b041b.d0f598",
"type": "api-call-service",
"z": "37d14000.39407",
"name": "Change Living Room Color Temp",
"server": "958153f5.352da",
"version": 3,
"debugenabled": false,
"service_domain": "light",
"service": "turn_on",
"entityId": "light.living_room_lights",
"data": "{\t \"color_temp\": payload.event.args[0]\t}",
"dataType": "jsonata",
"mergecontext": "",
"mustacheAltTags": false,
"outputProperties": [],
"queue": "none",
"x": 620,
"y": 160,
"wires": [
[]
]
},
{
"id": "55c337f1.8b0858",
"type": "api-call-service",
"z": "37d14000.39407",
"name": "Change Living Room Color",
"server": "958153f5.352da",
"version": 3,
"debugenabled": false,
"service_domain": "light",
"service": "turn_on",
"entityId": "light.living_room_lights",
"data": "{\t \"rgb_color\": payload\t}",
"dataType": "jsonata",
"mergecontext": "",
"mustacheAltTags": false,
"outputProperties": [],
"queue": "none",
"x": 600,
"y": 220,
"wires": [
[]
]
},
{
"id": "55597d.1dd9f684",
"type": "ha-entity",
"z": "37d14000.39407",
"name": "Multi-Remote Control",
"server": "958153f5.352da",
"version": 1,
"debugenabled": false,
"outputs": 2,
"entityType": "switch",
"config": [
{
"property": "name",
"value": "multi_room_node"
},
{
"property": "device_class",
"value": ""
},
{
"property": "icon",
"value": ""
},
{
"property": "unit_of_measurement",
"value": ""
}
],
"state": "payload",
"stateType": "msg",
"attributes": [],
"resend": true,
"outputLocation": "",
"outputLocationType": "none",
"inputOverride": "allow",
"outputOnStateChange": false,
"outputPayload": "$entity().state ? \"on\": \"off\"",
"outputPayloadType": "jsonata",
"x": 580,
"y": 40,
"wires": [
[
"fe7a3512.352118"
],
[]
]
},
{
"id": "cdc7e1ca.4c092",
"type": "ha-entity",
"z": "37d14000.39407",
"name": "Floor Lamp Control",
"server": "958153f5.352da",
"version": 1,
"debugenabled": false,
"outputs": 2,
"entityType": "switch",
"config": [
{
"property": "name",
"value": "floor_lamp_node"
},
{
"property": "device_class",
"value": ""
},
{
"property": "icon",
"value": ""
},
{
"property": "unit_of_measurement",
"value": ""
}
],
"state": "payload",
"stateType": "msg",
"attributes": [],
"resend": true,
"outputLocation": "",
"outputLocationType": "none",
"inputOverride": "allow",
"outputOnStateChange": false,
"outputPayload": "$entity().state ? \"on\": \"off\"",
"outputPayloadType": "jsonata",
"x": 630,
"y": 280,
"wires": [
[
"b8abcef1.879c9"
],
[]
]
},
{
"id": "4e4075b8.28564c",
"type": "ha-entity",
"z": "37d14000.39407",
"name": "Reading Lamp Control",
"server": "958153f5.352da",
"version": 1,
"debugenabled": false,
"outputs": 2,
"entityType": "switch",
"config": [
{
"property": "name",
"value": "reading_lamp_node"
},
{
"property": "device_class",
"value": ""
},
{
"property": "icon",
"value": ""
},
{
"property": "unit_of_measurement",
"value": ""
}
],
"state": "payload",
"stateType": "msg",
"attributes": [],
"resend": true,
"outputLocation": "",
"outputLocationType": "none",
"inputOverride": "allow",
"outputOnStateChange": false,
"outputPayload": "$entity().state ? \"on\": \"off\"",
"outputPayloadType": "jsonata",
"x": 640,
"y": 340,
"wires": [
[
"a148b56c.f40df8"
],
[]
]
},
{
"id": "48a1e3a7.69d86c",
"type": "ha-entity",
"z": "37d14000.39407",
"name": "Kitchen Ceiling Control",
"server": "958153f5.352da",
"version": 1,
"debugenabled": false,
"outputs": 2,
"entityType": "switch",
"config": [
{
"property": "name",
"value": "kitchen_ceiling_node"
},
{
"property": "device_class",
"value": ""
},
{
"property": "icon",
"value": ""
},
{
"property": "unit_of_measurement",
"value": ""
}
],
"state": "payload",
"stateType": "msg",
"attributes": [],
"resend": true,
"outputLocation": "",
"outputLocationType": "none",
"inputOverride": "allow",
"outputOnStateChange": false,
"outputPayload": "$entity().state ? \"on\": \"off\"",
"outputPayloadType": "jsonata",
"x": 580,
"y": 440,
"wires": [
[
"4cd40764.4fea78"
],
[]
]
},
{
"id": "63bcb3e.ae00a4c",
"type": "ha-entity",
"z": "37d14000.39407",
"name": "Bathroom Lights Control",
"server": "958153f5.352da",
"version": 1,
"debugenabled": false,
"outputs": 2,
"entityType": "switch",
"config": [
{
"property": "name",
"value": "bathroom_lights_node"
},
{
"property": "device_class",
"value": ""
},
{
"property": "icon",
"value": ""
},
{
"property": "unit_of_measurement",
"value": ""
}
],
"state": "payload",
"stateType": "msg",
"attributes": [],
"resend": true,
"outputLocation": "",
"outputLocationType": "none",
"inputOverride": "allow",
"outputOnStateChange": false,
"outputPayload": "$entity().state ? \"on\": \"off\"",
"outputPayloadType": "jsonata",
"x": 590,
"y": 480,
"wires": [
[
"20536528.b477ba"
],
[]
]
},
{
"id": "958153f5.352da",
"type": "server",
"name": "Home Assistant",
"version": 1,
"legacy": false,
"addon": true,
"rejectUnauthorizedCerts": true,
"ha_boolean": "y|yes|true|on|home|open",
"connectionDelay": true,
"cacheJson": true
}
]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment