Hi,
ich hatte bis vor kurzem noch Probleme mit dem Dimmschalter und NR. Mit Hilfe von Micha @Micha läuft es jetzt wieder. Es muss aber mit Sicherheit noch aufgeräumt werden, aber vielleicht hilft dir das hier ja:
[
{
"id": "4ead76bc41de9ac2",
"type": "tab",
"label": "Dimmschalter",
"disabled": false,
"info": ""
},
{
"id": "4cab63157d181f38",
"type": "homeeDevice",
"z": "4ead76bc41de9ac2",
"virtual-homee": "",
"name": "Schalter Hue",
"nodeId": "38",
"showNodeId": true,
"profile": "26",
"icon": "",
"attributes": [
{
"instance": 1,
"minimum": 1,
"maximum": 2,
"current_value": 2,
"target_value": 2,
"last_value": 1,
"unit": "",
"step_value": 1,
"editable": 0,
"type": 40,
"state": 1,
"last_changed": 1573065520,
"changed_by": 1,
"changed_by_id": 0,
"based_on": 1,
"data": "",
"id": "481",
"node_id": "38"
},
{
"instance": 2,
"minimum": 1,
"maximum": 2,
"current_value": 2,
"target_value": 2,
"last_value": 1,
"unit": "n%2Fa",
"step_value": 1,
"editable": 0,
"type": 40,
"state": 1,
"last_changed": 1573065520,
"changed_by": 1,
"changed_by_id": 0,
"based_on": 1,
"data": "",
"id": "482",
"node_id": "38"
},
{
"instance": 3,
"minimum": 1,
"maximum": 2,
"current_value": 2,
"target_value": 2,
"last_value": 1,
"unit": "n%2Fa",
"step_value": 1,
"editable": 0,
"type": 40,
"state": 1,
"last_changed": 1573065520,
"changed_by": 1,
"changed_by_id": 0,
"based_on": 1,
"data": "",
"id": "483",
"node_id": "38"
},
{
"instance": 4,
"minimum": 1,
"maximum": 2,
"current_value": 2,
"target_value": 2,
"last_value": 1,
"unit": "n%2Fa",
"step_value": 1,
"editable": 0,
"type": 40,
"state": 1,
"last_changed": 1573065520,
"changed_by": 1,
"changed_by_id": 0,
"based_on": 1,
"data": "",
"id": "484",
"node_id": "38"
},
{
"instance": 11,
"minimum": 1,
"maximum": 2,
"current_value": 2,
"target_value": 2,
"last_value": 1,
"unit": "n%2Fa",
"step_value": 1,
"editable": 0,
"type": 40,
"state": 1,
"last_changed": 1573065520,
"changed_by": 1,
"changed_by_id": 0,
"based_on": 1,
"data": "",
"id": "485",
"node_id": "38"
},
{
"instance": 12,
"minimum": 1,
"maximum": 2,
"current_value": 2,
"target_value": 2,
"last_value": 1,
"unit": "n%2Fa",
"step_value": 1,
"editable": 0,
"type": 40,
"state": 1,
"last_changed": 1573065520,
"changed_by": 1,
"changed_by_id": 0,
"based_on": 1,
"data": "",
"id": "486",
"node_id": "38"
},
{
"instance": 13,
"minimum": 1,
"maximum": 2,
"current_value": 2,
"target_value": 2,
"last_value": 1,
"unit": "n%2Fa",
"step_value": 1,
"editable": 0,
"type": 40,
"state": 1,
"last_changed": 1573065520,
"changed_by": 1,
"changed_by_id": 0,
"based_on": 1,
"data": "",
"id": "487",
"node_id": "38"
},
{
"instance": 14,
"minimum": 1,
"maximum": 2,
"current_value": 2,
"target_value": 2,
"last_value": 1,
"unit": "n%2Fa",
"step_value": 1,
"editable": 0,
"type": 40,
"state": 1,
"last_changed": 1573065520,
"changed_by": 1,
"changed_by_id": 0,
"based_on": 1,
"data": "",
"id": "488",
"node_id": "38"
},
{
"instance": 0,
"minimum": 0,
"maximum": 100,
"current_value": 100,
"target_value": 100,
"last_value": 100,
"unit": "%25",
"step_value": 1,
"editable": 0,
"type": 8,
"state": 1,
"last_changed": 1573065517,
"changed_by": 1,
"changed_by_id": 0,
"based_on": 1,
"data": "",
"id": "489",
"node_id": "38"
},
{
"instance": 0,
"minimum": 0,
"maximum": 0,
"current_value": 0,
"target_value": 0,
"last_value": 0,
"unit": "text",
"step_value": 1,
"editable": 0,
"type": 43,
"state": 1,
"last_changed": 1573711842,
"changed_by": 1,
"changed_by_id": 0,
"based_on": 1,
"data": "Taste gedrückt -> kurz: 1-4; lang: 11-14",
"id": "490",
"node_id": "38"
},
{
"instance": 0,
"minimum": 0,
"maximum": 0,
"current_value": 0,
"target_value": 0,
"last_value": 0,
"unit": "text",
"step_value": 1,
"editable": 0,
"type": 44,
"state": 1,
"last_changed": 1573711842,
"changed_by": 1,
"changed_by_id": 0,
"based_on": 1,
"data": "",
"id": "491",
"node_id": "38"
},
{
"instance": 0,
"minimum": 0,
"maximum": 0,
"current_value": 0,
"target_value": 0,
"last_value": 0,
"unit": "text",
"step_value": 1,
"editable": 0,
"type": 45,
"state": 1,
"last_changed": 1573065500,
"changed_by": 1,
"changed_by_id": 0,
"based_on": 1,
"data": "",
"id": "492",
"node_id": "38"
}
],
"statusTemplate": "",
"x": 1090,
"y": 460,
"wires": [
[]
]
},
{
"id": "0c0dedba6af710f6",
"type": "template",
"z": "4ead76bc41de9ac2",
"name": "Button state 1",
"field": "payload",
"fieldType": "msg",
"format": "handlebars",
"syntax": "mustache",
"template": "{\"attribute\":{\"id\":481,\"value\":{{payload}}}}",
"output": "json",
"x": 813.125,
"y": 403,
"wires": [
[
"4cab63157d181f38"
]
]
},
{
"id": "526e47ad85db14ef",
"type": "template",
"z": "4ead76bc41de9ac2",
"name": "Button state 2",
"field": "payload",
"fieldType": "msg",
"format": "handlebars",
"syntax": "mustache",
"template": "{\"attribute\":{\"id\":482,\"value\":{{payload}}}}",
"output": "json",
"x": 813.125,
"y": 435,
"wires": [
[
"4cab63157d181f38"
]
]
},
{
"id": "7493753310c8168e",
"type": "template",
"z": "4ead76bc41de9ac2",
"name": "Button state 3",
"field": "payload",
"fieldType": "msg",
"format": "handlebars",
"syntax": "mustache",
"template": "{\"attribute\":{\"id\":483,\"value\":{{payload}}}}",
"output": "json",
"x": 813.125,
"y": 467,
"wires": [
[
"4cab63157d181f38"
]
]
},
{
"id": "4837b69aba214b22",
"type": "template",
"z": "4ead76bc41de9ac2",
"name": "Button state 4",
"field": "payload",
"fieldType": "msg",
"format": "handlebars",
"syntax": "mustache",
"template": "{\"attribute\":{\"id\":484,\"value\":{{payload}}}}",
"output": "json",
"x": 813.125,
"y": 499,
"wires": [
[
"4cab63157d181f38"
]
]
},
{
"id": "b4124043709c66e5",
"type": "template",
"z": "4ead76bc41de9ac2",
"name": "Battery level",
"field": "payload",
"fieldType": "msg",
"format": "handlebars",
"syntax": "mustache",
"template": "{\"attribute\":{\"id\":489,\"value\":{{payload}}}}",
"output": "json",
"x": 824.125,
"y": 314,
"wires": [
[
"4cab63157d181f38"
]
]
},
{
"id": "d3560fac1313ce13",
"type": "switch",
"z": "4ead76bc41de9ac2",
"name": "Input",
"property": "payload.button",
"propertyType": "msg",
"rules": [
{
"t": "eq",
"v": "1",
"vt": "num"
},
{
"t": "eq",
"v": "2",
"vt": "num"
},
{
"t": "eq",
"v": "3",
"vt": "num"
},
{
"t": "eq",
"v": "4",
"vt": "num"
}
],
"checkall": "true",
"repair": false,
"outputs": 4,
"x": 150,
"y": 480,
"wires": [
[
"304669b294a5e4cd"
],
[
"8a0153ef80ba34da"
],
[
"3e1d2207b3770b96"
],
[
"9dc5d3e2f3985438"
]
],
"info": "Just expand the flow.count to how ever many\npresses you want/need."
},
{
"id": "3fdced1887a19651",
"type": "function",
"z": "4ead76bc41de9ac2",
"name": "return battery level",
"func": "\nreturn {payload: msg.info.battery };",
"outputs": 1,
"noerr": 0,
"x": 803.9028930664062,
"y": 262.4443359375,
"wires": [
[
"b4124043709c66e5"
]
]
},
{
"id": "14870607d08e582c",
"type": "template",
"z": "4ead76bc41de9ac2",
"name": "Button state 11",
"field": "payload",
"fieldType": "msg",
"format": "handlebars",
"syntax": "mustache",
"template": "{\"attribute\":{\"id\":485,\"value\":{{payload}}}}",
"output": "json",
"x": 813,
"y": 531,
"wires": [
[
"4cab63157d181f38"
]
]
},
{
"id": "e6d29af6a44ebdda",
"type": "template",
"z": "4ead76bc41de9ac2",
"name": "Button state 12",
"field": "payload",
"fieldType": "msg",
"format": "handlebars",
"syntax": "mustache",
"template": "{\"attribute\":{\"id\":486,\"value\":{{payload}}}}",
"output": "json",
"x": 813,
"y": 563,
"wires": [
[
"4cab63157d181f38"
]
]
},
{
"id": "9ca945772a5e990d",
"type": "template",
"z": "4ead76bc41de9ac2",
"name": "Button state 13",
"field": "payload",
"fieldType": "msg",
"format": "handlebars",
"syntax": "mustache",
"template": "{\"attribute\":{\"id\":487,\"value\":{{payload}}}}",
"output": "json",
"x": 813,
"y": 595,
"wires": [
[
"4cab63157d181f38"
]
]
},
{
"id": "d42aae021964e134",
"type": "template",
"z": "4ead76bc41de9ac2",
"name": "Button state 14",
"field": "payload",
"fieldType": "msg",
"format": "handlebars",
"syntax": "mustache",
"template": "{\"attribute\":{\"id\":488,\"value\":{{payload}}}}",
"output": "json",
"x": 813,
"y": 627,
"wires": [
[
"4cab63157d181f38"
]
]
},
{
"id": "9ac0d59150e0f090",
"type": "function",
"z": "4ead76bc41de9ac2",
"name": "return type as firmware",
"func": "var firmware = msg.info.type;\n\nreturn {\n payload: {\"attribute\": {\"id\": 491, \"value\": 0, \"data\": firmware}}\n}\n\n\n\n",
"outputs": 1,
"noerr": 0,
"x": 794.0000610351562,
"y": 229,
"wires": [
[
"4cab63157d181f38"
]
]
},
{
"id": "aa61106a83ce2e56",
"type": "function",
"z": "4ead76bc41de9ac2",
"name": "return sw-version",
"func": "var software = msg.info.softwareVersion;\n\nreturn {\n payload: {\"attribute\": {\"id\": 492, \"value\": 0, \"data\": software}}\n}\n\n\n\n",
"outputs": 1,
"noerr": 0,
"initialize": "",
"finalize": "",
"libs": [],
"x": 804,
"y": 196,
"wires": [
[
"4cab63157d181f38"
]
]
},
{
"id": "5a636d899abd611f",
"type": "delay",
"z": "4ead76bc41de9ac2",
"name": "",
"pauseType": "delay",
"timeout": "433",
"timeoutUnits": "milliseconds",
"rate": "1",
"nbRateUnits": "",
"rateUnits": "second",
"randomFirst": "1",
"randomLast": "5",
"randomUnits": "seconds",
"drop": false,
"allowrate": false,
"outputs": 1,
"x": 540,
"y": 340,
"wires": [
[
"0c0dedba6af710f6",
"526e47ad85db14ef",
"7493753310c8168e",
"4837b69aba214b22"
]
]
},
{
"id": "1dbe8713b6d6c9eb",
"type": "change",
"z": "4ead76bc41de9ac2",
"name": "Send: 2 reset",
"rules": [
{
"t": "set",
"p": "payload",
"pt": "msg",
"to": "2",
"tot": "num"
}
],
"action": "",
"property": "",
"from": "",
"to": "",
"reg": false,
"x": 310,
"y": 340,
"wires": [
[
"5a636d899abd611f"
]
]
},
{
"id": "a5fe73fbf07f80a5",
"type": "hue-buttons",
"z": "4ead76bc41de9ac2",
"name": "Hue dimmer switch 1",
"bridge": "7167c2ec9ce9059c",
"sensorid": "998f0304-44f5-4cef-96ec-55f083e2b2db",
"skipevents": false,
"initevents": false,
"x": 180,
"y": 160,
"wires": [
[
"aa61106a83ce2e56",
"9ac0d59150e0f090",
"3fdced1887a19651",
"d3560fac1313ce13"
]
]
},
{
"id": "304669b294a5e4cd",
"type": "change",
"z": "4ead76bc41de9ac2",
"name": "",
"rules": [
{
"t": "change",
"p": "payload.action",
"pt": "msg",
"from": "initial_press",
"fromt": "str",
"to": "1",
"tot": "num"
},
{
"t": "change",
"p": "payload.action",
"pt": "msg",
"from": "short_release",
"fromt": "str",
"to": "2",
"tot": "num"
},
{
"t": "change",
"p": "payload.action",
"pt": "msg",
"from": "long_release",
"fromt": "str",
"to": "2",
"tot": "num"
},
{
"t": "move",
"p": "payload.action",
"pt": "msg",
"to": "payload",
"tot": "msg"
}
],
"action": "",
"property": "",
"from": "",
"to": "",
"reg": false,
"x": 330,
"y": 420,
"wires": [
[
"1dbe8713b6d6c9eb",
"76ef14ea3aa12fd1"
]
]
},
{
"id": "76ef14ea3aa12fd1",
"type": "switch",
"z": "4ead76bc41de9ac2",
"name": "",
"property": "payload",
"propertyType": "msg",
"rules": [
{
"t": "eq",
"v": "1",
"vt": "num"
}
],
"checkall": "true",
"repair": false,
"outputs": 1,
"x": 530,
"y": 420,
"wires": [
[
"0c0dedba6af710f6"
]
]
},
{
"id": "8a0153ef80ba34da",
"type": "change",
"z": "4ead76bc41de9ac2",
"name": "",
"rules": [
{
"t": "change",
"p": "payload.action",
"pt": "msg",
"from": "initial_press",
"fromt": "str",
"to": "1",
"tot": "num"
},
{
"t": "change",
"p": "payload.action",
"pt": "msg",
"from": "short_release",
"fromt": "str",
"to": "2",
"tot": "num"
},
{
"t": "change",
"p": "payload.action",
"pt": "msg",
"from": "long_release",
"fromt": "str",
"to": "2",
"tot": "num"
},
{
"t": "move",
"p": "payload.action",
"pt": "msg",
"to": "payload",
"tot": "msg"
}
],
"action": "",
"property": "",
"from": "",
"to": "",
"reg": false,
"x": 390,
"y": 520,
"wires": [
[
"1dbe8713b6d6c9eb",
"45c068b3d24d8621"
]
]
},
{
"id": "3e1d2207b3770b96",
"type": "change",
"z": "4ead76bc41de9ac2",
"name": "",
"rules": [
{
"t": "change",
"p": "payload.action",
"pt": "msg",
"from": "initial_press",
"fromt": "str",
"to": "1",
"tot": "num"
},
{
"t": "change",
"p": "payload.action",
"pt": "msg",
"from": "short_release",
"fromt": "str",
"to": "2",
"tot": "num"
},
{
"t": "change",
"p": "payload.action",
"pt": "msg",
"from": "long_release",
"fromt": "str",
"to": "2",
"tot": "num"
},
{
"t": "move",
"p": "payload.action",
"pt": "msg",
"to": "payload",
"tot": "msg"
}
],
"action": "",
"property": "",
"from": "",
"to": "",
"reg": false,
"x": 390,
"y": 580,
"wires": [
[
"1dbe8713b6d6c9eb",
"43997aebb9bf85ec"
]
]
},
{
"id": "9dc5d3e2f3985438",
"type": "change",
"z": "4ead76bc41de9ac2",
"name": "",
"rules": [
{
"t": "change",
"p": "payload.action",
"pt": "msg",
"from": "initial_press",
"fromt": "str",
"to": "1",
"tot": "num"
},
{
"t": "change",
"p": "payload.action",
"pt": "msg",
"from": "short_release",
"fromt": "str",
"to": "2",
"tot": "num"
},
{
"t": "change",
"p": "payload.action",
"pt": "msg",
"from": "long_release",
"fromt": "str",
"to": "2",
"tot": "num"
},
{
"t": "move",
"p": "payload.action",
"pt": "msg",
"to": "payload",
"tot": "msg"
}
],
"action": "",
"property": "",
"from": "",
"to": "",
"reg": false,
"x": 370,
"y": 640,
"wires": [
[
"1dbe8713b6d6c9eb",
"e338b037e98c857a"
]
]
},
{
"id": "45c068b3d24d8621",
"type": "switch",
"z": "4ead76bc41de9ac2",
"name": "",
"property": "payload",
"propertyType": "msg",
"rules": [
{
"t": "eq",
"v": "1",
"vt": "num"
}
],
"checkall": "true",
"repair": false,
"outputs": 1,
"x": 590,
"y": 480,
"wires": [
[
"526e47ad85db14ef"
]
]
},
{
"id": "43997aebb9bf85ec",
"type": "switch",
"z": "4ead76bc41de9ac2",
"name": "",
"property": "payload",
"propertyType": "msg",
"rules": [
{
"t": "eq",
"v": "1",
"vt": "num"
}
],
"checkall": "true",
"repair": false,
"outputs": 1,
"x": 590,
"y": 520,
"wires": [
[
"7493753310c8168e"
]
]
},
{
"id": "e338b037e98c857a",
"type": "switch",
"z": "4ead76bc41de9ac2",
"name": "",
"property": "payload",
"propertyType": "msg",
"rules": [
{
"t": "eq",
"v": "1",
"vt": "num"
}
],
"checkall": "true",
"repair": false,
"outputs": 1,
"x": 590,
"y": 580,
"wires": [
[
"4837b69aba214b22"
]
]
},
{
"id": "7167c2ec9ce9059c",
"type": "hue-bridge",
"name": "Wohnung_HUE",
"bridge": "192.168.178.44",
"key": "VqpvuIffVE7T-DPkMj5dIRnFSD6ZowHML-URWd-w",
"worker": "10",
"autoupdates": true,
"disableupdates": false
}
]