- Home
- Deutsch
- Skripten / Logik
- Node-Red
- Philips Hue Switch -- Shelly Actor, Tuya,Sonoff,Hue
Philips Hue Switch -- Shelly Actor, Tuya,Sonoff,Hue
-
Ich habe diese Node im Netz gefunden und bräuchte Hilfe dabei das zu realisieren was ich vor habe.
Ich habe in meine U-Putz Dosen jeweils pro Raum einen 4 Kanal Shelly Actor verbaut, und in jedem Raum einen Hue Switch.
Ich würde gerne die Shelly geräte mit den Hue Schaltern betätigen.
und damit angeschlossene Deckenlampen und verbaute Stripes die über Sonoff, Tuya etc. mit geschaltet werden sollen.
Ist es möglich dieses zu realisiern.
Hue wird ja mit den Buttons im Datenpunkt buttonevent mit 1000, 2000,3000, 4000 geschaltet Für doe 4 Buttons vllt kann man diese nutzen um die Hue Geräte ein aus zu schalten.
es müsste dann halt bei jedem betätigen zB. Button#1 1000 jeweils ein oder ausschalten und parallel andere geräte per true/false angesprochen werden.
Ich würde gerne alle vier Buttons des Hue Switches benutzen.
zB. Kanal 1 Shelly Actor ON/Off Hue, Tuya etc. Lampen XY schalten
Kanal 2 Shelly Actor Licht heller Button An/Aus Hue, Tuya etc. Lampen XY schalten
Kanal 3 Shelly Actor Dimmen Button An/Aus Hue, Tuya etc. Lampen XY schalten
Kanal 4 Shelly Actor Hue Button Hue, Tuya etc. Lampen XY ausschalten[ { "id": "d67e92315184720a", "type": "tab", "label": "Flow 4", "disabled": false, "info": "", "env": [] }, { "id": "cb51b872.be9528", "type": "homeeDevice", "z": "d67e92315184720a", "virtual-homee": "", "name": "Schalter Küche", "nodeId": "38", "showNodeId": true, "profile": "26", "icon": "", "attributes": "[{\"id\":481,\"node_id\":38,\"instance\":1,\"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\":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\":483,\"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\":484,\"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\":485,\"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\":486,\"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\":487,\"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\":488,\"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\":489,\"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\":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\":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\":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\":44,\"state\":1,\"last_changed\":1573711842,\"changed_by\":1,\"changed_by_id\":0,\"based_on\":1,\"data\":\"\"},{\"id\":492,\"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\":\"\"}]", "x": 1450, "y": 460, "wires": [ [] ] }, { "id": "49d82f67.abbca", "type": "template", "z": "d67e92315184720a", "name": "Button state 1", "field": "payload", "fieldType": "msg", "format": "handlebars", "syntax": "mustache", "template": "{\"attribute\":{\"id\":481,\"value\":{{payload}}}}", "output": "json", "x": 1120, "y": 360, "wires": [ [ "cb51b872.be9528" ] ] }, { "id": "28d8caf4.23b18e", "type": "template", "z": "d67e92315184720a", "name": "Button state 2", "field": "payload", "fieldType": "msg", "format": "handlebars", "syntax": "mustache", "template": "{\"attribute\":{\"id\":482,\"value\":{{payload}}}}", "output": "json", "x": 1120, "y": 392, "wires": [ [ "cb51b872.be9528" ] ] }, { "id": "ab66260d.cfcca8", "type": "template", "z": "d67e92315184720a", "name": "Button state 3", "field": "payload", "fieldType": "msg", "format": "handlebars", "syntax": "mustache", "template": "{\"attribute\":{\"id\":483,\"value\":{{payload}}}}", "output": "json", "x": 1120, "y": 424, "wires": [ [ "cb51b872.be9528" ] ] }, { "id": "bf7669c.7688718", "type": "template", "z": "d67e92315184720a", "name": "Button state 4", "field": "payload", "fieldType": "msg", "format": "handlebars", "syntax": "mustache", "template": "{\"attribute\":{\"id\":484,\"value\":{{payload}}}}", "output": "json", "x": 1120, "y": 456, "wires": [ [ "cb51b872.be9528" ] ] }, { "id": "7aadd9d6.d0f5b8", "type": "template", "z": "d67e92315184720a", "name": "Battery level", "field": "payload", "fieldType": "msg", "format": "handlebars", "syntax": "mustache", "template": "{\"attribute\":{\"id\":489,\"value\":{{payload}}}}", "output": "json", "x": 1170, "y": 180, "wires": [ [ "cb51b872.be9528" ] ] }, { "id": "ad7bcd87.8f9198", "type": "switch", "z": "d67e92315184720a", "name": "Input", "property": "payload", "propertyType": "msg", "rules": [ { "t": "eq", "v": "1002 ", "vt": "num" }, { "t": "eq", "v": "2002", "vt": "num" }, { "t": "eq", "v": "3002", "vt": "num" }, { "t": "eq", "v": "4002", "vt": "num" }, { "t": "eq", "v": "1001", "vt": "num" }, { "t": "eq", "v": "2001", "vt": "num" }, { "t": "eq", "v": "3001", "vt": "num" }, { "t": "eq", "v": "4001", "vt": "num" }, { "t": "eq", "v": "1003", "vt": "num" }, { "t": "eq", "v": "2003", "vt": "num" }, { "t": "eq", "v": "3003", "vt": "num" }, { "t": "eq", "v": "4003", "vt": "num" } ], "checkall": "true", "repair": false, "outputs": 12, "x": 390, "y": 460, "wires": [ [ "d1be07c4.081eb", "e7e61c1.d050d6" ], [ "9e1bc716.7a5278", "e7e61c1.d050d6" ], [ "afb9222d.b56418", "e7e61c1.d050d6" ], [ "a5522494.96cc3", "e7e61c1.d050d6" ], [ "c46c942b.ca3f08" ], [ "8e4a9290.49555" ], [ "78fe378e.7c9e68" ], [ "6fa80c6a.fc6074" ], [ "6852c7cb.a356c" ], [ "f2da57b7.2eb0f8" ], [ "6c8b2fe7.2b2a68" ], [ "51ead2a2.96a1ac" ] ], "info": "Just expand the flow.count to how ever many\npresses you want/need." }, { "id": "d1be07c4.081eb", "type": "change", "z": "d67e92315184720a", "name": "Send: 1 (1002 short released)", "rules": [ { "t": "set", "p": "payload", "pt": "msg", "to": "1", "tot": "num" } ], "action": "", "property": "", "from": "", "to": "", "reg": false, "x": 691.4376220703125, "y": 292.35205078125, "wires": [ [ "49d82f67.abbca" ] ] }, { "id": "e5c53e4d.84065", "type": "function", "z": "d67e92315184720a", "name": "return button", "func": "\nreturn {payload: msg.payload.button };", "outputs": 1, "noerr": 0, "initialize": "", "finalize": "", "x": 210, "y": 460, "wires": [ [ "ad7bcd87.8f9198" ] ] }, { "id": "2d42557e.b910e2", "type": "hue-switch", "z": "d67e92315184720a", "name": "Schalter Küche", "bridge": "11bfbfbc.82419", "sensorid": "39", "x": 120, "y": 140, "wires": [ [ "e5c53e4d.84065", "c86db76.a3f9048", "1d1613b9.e24b8c", "39f7f50e.285362" ] ] }, { "id": "9e1bc716.7a5278", "type": "change", "z": "d67e92315184720a", "name": "Send: 1 (2002 short released)", "rules": [ { "t": "set", "p": "payload", "pt": "msg", "to": "1", "tot": "num" } ], "action": "", "property": "", "from": "", "to": "", "reg": false, "x": 691.4583740234375, "y": 325.4441213607788, "wires": [ [ "28d8caf4.23b18e" ] ] }, { "id": "afb9222d.b56418", "type": "change", "z": "d67e92315184720a", "name": "Send: 1 (3002 short released)", "rules": [ { "t": "set", "p": "payload", "pt": "msg", "to": "1", "tot": "num" } ], "action": "", "property": "", "from": "", "to": "", "reg": false, "x": 692.4583511352539, "y": 357.99958896636963, "wires": [ [ "ab66260d.cfcca8" ] ] }, { "id": "a5522494.96cc3", "type": "change", "z": "d67e92315184720a", "name": "Send: 1 (4002 short released)", "rules": [ { "t": "set", "p": "payload", "pt": "msg", "to": "1", "tot": "num" } ], "action": "", "property": "", "from": "", "to": "", "reg": false, "x": 692.4584426879883, "y": 389.66586351394653, "wires": [ [ "bf7669c.7688718" ] ] }, { "id": "c86db76.a3f9048", "type": "function", "z": "d67e92315184720a", "name": "return battery level", "func": "\nreturn {payload: msg.info.battery };", "outputs": 1, "noerr": 0, "initialize": "", "finalize": "", "x": 950, "y": 180, "wires": [ [ "7aadd9d6.d0f5b8" ] ] }, { "id": "c46c942b.ca3f08", "type": "change", "z": "d67e92315184720a", "name": "Send: 1 (1001 holded)", "rules": [ { "t": "set", "p": "payload", "pt": "msg", "to": "1", "tot": "num" } ], "action": "", "property": "", "from": "", "to": "", "reg": false, "x": 662.000114440918, "y": 422.00015211105347, "wires": [ [ "7db6940c.fef06c" ] ] }, { "id": "8e4a9290.49555", "type": "change", "z": "d67e92315184720a", "name": "Send: 1 (2001 holded)", "rules": [ { "t": "set", "p": "payload", "pt": "msg", "to": "1", "tot": "num" } ], "action": "", "property": "", "from": "", "to": "", "reg": false, "x": 662.020866394043, "y": 454.0922226905823, "wires": [ [ "f75cab0d.ede828" ] ] }, { "id": "78fe378e.7c9e68", "type": "change", "z": "d67e92315184720a", "name": "Send: 1 (3001 holded)", "rules": [ { "t": "set", "p": "payload", "pt": "msg", "to": "1", "tot": "num" } ], "action": "", "property": "", "from": "", "to": "", "reg": false, "x": 662.0208435058594, "y": 485.6476902961731, "wires": [ [ "76792acf.7cfe9c" ] ] }, { "id": "6fa80c6a.fc6074", "type": "change", "z": "d67e92315184720a", "name": "Send: 1 (4001 holded)", "rules": [ { "t": "set", "p": "payload", "pt": "msg", "to": "1", "tot": "num" } ], "action": "", "property": "", "from": "", "to": "", "reg": false, "x": 662.0209350585938, "y": 517.31396484375, "wires": [ [ "ffabc6d0.706e8" ] ] }, { "id": "7db6940c.fef06c", "type": "template", "z": "d67e92315184720a", "name": "Button state 11", "field": "payload", "fieldType": "msg", "format": "handlebars", "syntax": "mustache", "template": "{\"attribute\":{\"id\":485,\"value\":{{payload}}}}", "output": "json", "x": 1119.875, "y": 488, "wires": [ [ "cb51b872.be9528" ] ] }, { "id": "f75cab0d.ede828", "type": "template", "z": "d67e92315184720a", "name": "Button state 12", "field": "payload", "fieldType": "msg", "format": "handlebars", "syntax": "mustache", "template": "{\"attribute\":{\"id\":486,\"value\":{{payload}}}}", "output": "json", "x": 1119.875, "y": 520, "wires": [ [ "cb51b872.be9528" ] ] }, { "id": "76792acf.7cfe9c", "type": "template", "z": "d67e92315184720a", "name": "Button state 13", "field": "payload", "fieldType": "msg", "format": "handlebars", "syntax": "mustache", "template": "{\"attribute\":{\"id\":487,\"value\":{{payload}}}}", "output": "json", "x": 1119.875, "y": 552, "wires": [ [ "cb51b872.be9528" ] ] }, { "id": "ffabc6d0.706e8", "type": "template", "z": "d67e92315184720a", "name": "Button state 14", "field": "payload", "fieldType": "msg", "format": "handlebars", "syntax": "mustache", "template": "{\"attribute\":{\"id\":488,\"value\":{{payload}}}}", "output": "json", "x": 1119.875, "y": 584, "wires": [ [ "cb51b872.be9528" ] ] }, { "id": "1d1613b9.e24b8c", "type": "function", "z": "d67e92315184720a", "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, "initialize": "", "finalize": "", "x": 940.09716796875, "y": 146.5556640625, "wires": [ [ "cb51b872.be9528" ] ] }, { "id": "39f7f50e.285362", "type": "function", "z": "d67e92315184720a", "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": "", "x": 950.0971069335938, "y": 113.5556640625, "wires": [ [ "cb51b872.be9528" ] ] }, { "id": "59fc53ae.8258a4", "type": "delay", "z": "d67e92315184720a", "name": "", "pauseType": "delay", "timeout": "40", "timeoutUnits": "milliseconds", "rate": "1", "nbRateUnits": "", "rateUnits": "second", "randomFirst": "1", "randomLast": "5", "randomUnits": "seconds", "drop": false, "outputs": 1, "x": 870, "y": 260, "wires": [ [ "49d82f67.abbca", "28d8caf4.23b18e", "ab66260d.cfcca8", "bf7669c.7688718" ] ] }, { "id": "6852c7cb.a356c", "type": "change", "z": "d67e92315184720a", "name": "Send: 2 (1001 long released)", "rules": [ { "t": "set", "p": "payload", "pt": "msg", "to": "2", "tot": "num" } ], "action": "", "property": "", "from": "", "to": "", "reg": false, "x": 680.9999809265137, "y": 549.0000190734863, "wires": [ [ "7db6940c.fef06c" ] ] }, { "id": "f2da57b7.2eb0f8", "type": "change", "z": "d67e92315184720a", "name": "Send: 2 (2001 long released)", "rules": [ { "t": "set", "p": "payload", "pt": "msg", "to": "2", "tot": "num" } ], "action": "", "property": "", "from": "", "to": "", "reg": false, "x": 681.0207328796387, "y": 581.0920896530151, "wires": [ [ "f75cab0d.ede828" ] ] }, { "id": "6c8b2fe7.2b2a68", "type": "change", "z": "d67e92315184720a", "name": "Send: 2 (3001 long released)", "rules": [ { "t": "set", "p": "payload", "pt": "msg", "to": "2", "tot": "num" } ], "action": "", "property": "", "from": "", "to": "", "reg": false, "x": 681.0207099914551, "y": 612.647557258606, "wires": [ [ "76792acf.7cfe9c" ] ] }, { "id": "51ead2a2.96a1ac", "type": "change", "z": "d67e92315184720a", "name": "Send: 2 (4001 long released)", "rules": [ { "t": "set", "p": "payload", "pt": "msg", "to": "2", "tot": "num" } ], "action": "", "property": "", "from": "", "to": "", "reg": false, "x": 681.0208015441895, "y": 644.3138318061829, "wires": [ [ "ffabc6d0.706e8" ] ] }, { "id": "e7e61c1.d050d6", "type": "change", "z": "d67e92315184720a", "name": "Send: 2 reset", "rules": [ { "t": "set", "p": "payload", "pt": "msg", "to": "2", "tot": "num" } ], "action": "", "property": "", "from": "", "to": "", "reg": false, "x": 632, "y": 260, "wires": [ [ "59fc53ae.8258a4" ] ] } ]
Dies ist nur zusammen gesponnen aber irgenwie so hatte ich mir das vorgestellt.
[ { "id": "417ed508cf8538a4", "type": "subflow", "name": "Shelly I4", "info": "", "category": "", "in": [ { "x": 60, "y": 220, "wires": [] } ], "out": [ { "x": 760, "y": 80, "wires": [] }, { "x": 760, "y": 180, "wires": [] }, { "x": 760, "y": 280, "wires": [] }, { "x": 760, "y": 380, "wires": [] } ], "env": [], "meta": {}, "color": "#DDAA99" }, { "id": "079f201cb40b104a", "type": "change", "z": "b5f945a1d6ff113b", "name": "1000", "rules": [ { "t": "set", "p": "payload", "pt": "msg", "to": "1000", "tot": "str" }, { "t": "set", "p": "payload", "pt": "msg", "to": "true", "tot": "str" }, { "t": "set", "p": "payload", "pt": "msg", "to": "false", "tot": "str" } ], "action": "", "property": "", "from": "", "to": "", "reg": false, "x": 1130, "y": 380, "wires": [ [ "32cfab3486d82d10", "bb624a075804fe84" ] ] }, { "id": "ab1879fecd4d2d51", "type": "switch", "z": "b5f945a1d6ff113b", "name": "", "property": "payload", "propertyType": "msg", "rules": [ { "t": "eq", "v": "1000", "vt": "str" }, { "t": "eq", "v": "2000", "vt": "str" }, { "t": "eq", "v": "3000", "vt": "str" }, { "t": "eq", "v": "4000", "vt": "str" }, { "t": "eq", "v": "true", "vt": "str" }, { "t": "eq", "v": "false", "vt": "str" } ], "checkall": "true", "repair": false, "outputs": 6, "x": 670, "y": 460, "wires": [ [ "8641c1d79d8affcd" ], [ "8641c1d79d8affcd" ], [ "8641c1d79d8affcd" ], [ "8641c1d79d8affcd" ], [ "8641c1d79d8affcd" ], [ "8641c1d79d8affcd" ] ] }, { "id": "32cfab3486d82d10", "type": "hue-light", "z": "b5f945a1d6ff113b", "name": "Schlafzimmer Decke", "bridge": "c29f8e39b6518640", "lightid": "8c21bd6c-8fc1-424c-b268-067cdd76d486", "colornamer": true, "skipevents": false, "initevents": false, "x": 1400, "y": 280, "wires": [ [] ] }, { "id": "c28b9026fabb12c7", "type": "hue-buttons", "z": "b5f945a1d6ff113b", "name": "Küche Schalter", "bridge": "c29f8e39b6518640", "sensorid": "ca5899b6-d39f-4852-a38a-a1414e63ce73", "skipevents": false, "initevents": false, "x": 420, "y": 460, "wires": [ [ "ab1879fecd4d2d51" ] ] }, { "id": "31e84262530a9b84", "type": "change", "z": "b5f945a1d6ff113b", "name": "2000", "rules": [ { "t": "set", "p": "payload", "pt": "msg", "to": "2000", "tot": "str" } ], "action": "", "property": "", "from": "", "to": "", "reg": false, "x": 1130, "y": 440, "wires": [ [ "d3904cf0803be4dc", "bb3b6b34fed29691", "ea1f7412108785d4" ] ] }, { "id": "bb624a075804fe84", "type": "ioBroker out", "z": "b5f945a1d6ff113b", "name": "SZ Schirmlampe", "topic": "tuya.0.bf78f027e5e33c3d76xrfe.1", "ack": "false", "autoCreate": "false", "stateName": "", "role": "", "payloadType": "", "readonly": "", "stateUnit": "", "stateMin": "", "stateMax": "", "x": 1390, "y": 240, "wires": [] }, { "id": "bb3b6b34fed29691", "type": "hue-light", "z": "b5f945a1d6ff113b", "name": "Küche Unterschr.Links", "bridge": "c29f8e39b6518640", "lightid": "9954a221-26e8-40ab-9732-ad33d14aeb5f", "colornamer": true, "skipevents": false, "initevents": false, "x": 1410, "y": 380, "wires": [ [] ] }, { "id": "d3904cf0803be4dc", "type": "ioBroker out", "z": "b5f945a1d6ff113b", "name": "Küche Unterschr. rechts", "topic": "tuya.0.bfcdbb4059ddda6838ujep.1", "ack": "false", "autoCreate": "false", "stateName": "", "role": "", "payloadType": "", "readonly": "", "stateUnit": "", "stateMin": "", "stateMax": "", "x": 1410, "y": 340, "wires": [] }, { "id": "8641c1d79d8affcd", "type": "subflow:417ed508cf8538a4", "z": "b5f945a1d6ff113b", "name": "Küche", "x": 870, "y": 460, "wires": [ [ "079f201cb40b104a" ], [ "31e84262530a9b84" ], [ "764058477f091f9c" ], [ "166aba3f5636dcc2" ] ] }, { "id": "764058477f091f9c", "type": "change", "z": "b5f945a1d6ff113b", "name": "3000", "rules": [ { "t": "set", "p": "payload", "pt": "msg", "to": "3000", "tot": "str" } ], "action": "", "property": "", "from": "", "to": "", "reg": false, "x": 1130, "y": 500, "wires": [ [ "ee1da4ff76ef1695", "dcb17c5fb025a0f5" ] ] }, { "id": "dcb17c5fb025a0f5", "type": "hue-light", "z": "b5f945a1d6ff113b", "name": "Wohnzimmer 1", "bridge": "c29f8e39b6518640", "lightid": "8e4238e6-eb02-4110-b2df-b598f509696d", "colornamer": true, "skipevents": false, "initevents": false, "x": 1380, "y": 540, "wires": [ [] ] }, { "id": "ee1da4ff76ef1695", "type": "ioBroker out", "z": "b5f945a1d6ff113b", "name": "Bad Decke", "topic": "tuya.0.bf78f027e5e33c3d76xrfe.1", "ack": "false", "autoCreate": "false", "stateName": "", "role": "", "payloadType": "", "readonly": "", "stateUnit": "", "stateMin": "", "stateMax": "", "x": 1370, "y": 500, "wires": [] }, { "id": "166aba3f5636dcc2", "type": "change", "z": "b5f945a1d6ff113b", "name": "4000", "rules": [ { "t": "set", "p": "payload", "pt": "msg", "to": "4000", "tot": "str" } ], "action": "", "property": "", "from": "", "to": "", "reg": false, "x": 1130, "y": 560, "wires": [ [ "0c3049e47782e3ed", "07eab75a05908739" ] ] }, { "id": "07eab75a05908739", "type": "hue-light", "z": "b5f945a1d6ff113b", "name": "Wohnzimmer 1", "bridge": "c29f8e39b6518640", "lightid": "8e4238e6-eb02-4110-b2df-b598f509696d", "colornamer": true, "skipevents": false, "initevents": false, "x": 1380, "y": 640, "wires": [ [] ] }, { "id": "0c3049e47782e3ed", "type": "ioBroker out", "z": "b5f945a1d6ff113b", "name": "Bad Decke", "topic": "tuya.0.bf78f027e5e33c3d76xrfe.1", "ack": "false", "autoCreate": "false", "stateName": "", "role": "", "payloadType": "", "readonly": "", "stateUnit": "", "stateMin": "", "stateMax": "", "x": 1370, "y": 600, "wires": [] }, { "id": "ea1f7412108785d4", "type": "ioBroker out", "z": "b5f945a1d6ff113b", "name": "Bad Decke", "topic": "tuya.0.bf78f027e5e33c3d76xrfe.1", "ack": "false", "autoCreate": "false", "stateName": "", "role": "", "payloadType": "", "readonly": "", "stateUnit": "", "stateMin": "", "stateMax": "", "x": 1370, "y": 420, "wires": [] }, { "id": "c29f8e39b6518640", "type": "hue-bridge", "name": "Hue GordonX", "bridge": "192.168.0.8", "key": "tSeWvqc76Ismz-XXTASAjJK2a4LrR8Xql2VB2FO1", "worker": "10", "autoupdates": true, "disableupdates": false } ]
-
Hast Du eine HUE Bridge?
-
Ja habe eine Hue Bridge
Tuya Zigbee Bridge
mehrere Hue Dimmer Switches
mehrere Tuya Lampen
mehrere Sonoff Lampen (ESP8266 Tasmota)
mehrere Shelly i4 Gen3 ActorenDas Problem ist halt die Hue Lampen mit zB. wert 1000 einschalten ausschalten bzw. die Hue Lampen werden mit dem Datenpunkt on auf true/false geschaltet nur der Hue Button gibt halt 1000,2000 etc aus und die müssen für true false verarbeitet werden und der shelly muss halt irgendwo dazwischen und parallel andere Geräte gleichzeitig mit true/false zu steuern doch wie man das zusammenbaut weiß ich leider nicht
-
-
@haselchen
hä Hue habe ich in Node-Red und auch Bridge connected
die verbindung steht.
Shelly sind auch verbunden und connected
Ich benutze Hue Magic
damit kann man eigentlich alles machen bezüglich was HUE geräte angeht -
Okay
Dachte Du brauchst die DP zum Weiterverarbeiten.
Über NodeRed hole ich mir die DP und mit Blockly gehts dann weiter.Wenns nur NodeRed sein soll, dann mit @mickym
-
@haselchen ja mal sehen wer meinem Thread sieht.
wollte damit in Node-Red bleiben -
Also es müsste so laufen:
1002 ist der kurze Druck auf Taste 1 das soll dann umgewandelt werden in true und an den Shelly Switch 1 als True gesendet werden
1000 ist langer Druck auf Taste 1 das soll dann
Umgewandelt werden in false und an den Shelly Switch 1 als false gesendet werden dann kann man an den Ausgang Shelly Switch 1 die hue, Tuya und Sonoff Lampen dran hängen aber wie man das macht weiß ich nicht
Beim Hue Switch 2 ist dann
Button 2 kurz 2002 und lang 2000
Beim Hue Switch 3 ist dann
Button 3 kurz 3002 und lang 3000
Beim Hue Switch 4 ist dann
Button 4 kurz 4002 und lang 4000
Toller Wäre zwar wenn man Button 1 am hue Switch drückt ist True und noch mal drücken ist dann false aber ob das geht weiß ich nicht sprich das dann alles auf
1002,2002,3002 und 4002 reagiert im Wechsel
Mit true falseHintergrund ist, das ich in einer Unterputz Dose bis zu drei Decken Lampen Schaltungen habe und diese per Shelly schalten möchte und per hue Dimmer Switch dann letztendlich betätigen möchte dazu brauche ich aber mehrere Schalter und ich wollte nun nicht bei zB einem dreifach Schalter dann 3 hue Schalter hin kleben.
Sondern nur einen hue Switch -
Es muss doch eine Möglichkeit geben
Das man eine hue Button auslesen und umwandeln kann
Das dann zb einmal Klick ist True nächster Klick false
Damit man mit einem Hue Dimmer Switch dann vier Schalter hat. -
@haselchen wie würdest du das denn in Blockly realisieren
Das dei Schaltung auf 1002 vom buttonevent reagiert und daraus im wechsel true und false macht also jeder Tastendruck ist dann true - false - true
Bei den anderen Buttons ist es ja ählich nur dann halt 2002, 3002 und 4002
Ich muss nicht dimmen und langer tastendruck kann auch zu fehl schaltungen kommmen -
Den Block "umschalten" im Blockly benutzen
-
@haselchen
Habe es jetzt so realisiert und kann es in meine vorhandenen Licht Schaltungen integrieren.
Die Schaltung ist zwar noch mit Test Schaltern, habe es aber auch schon mit realen Geräten und dem HUE Dimmer Switch getestet und es läuft prima.
Das erste was der Hue Switch ausgibt bei short release ist 1000,2000,3000,4000 daurauf reagiert die Schaltung je Button.
[ { "id": "f90ac36919e30901", "type": "ioBroker in", "z": "19a5e8f8e434006f", "name": "Bad Schalter", "attrname": "payload", "topic": "hue.0.Bad_Schalter.buttonevent", "payloadType": "value", "onlyack": "", "func": "all", "gap": "", "fireOnStart": "false", "outFormat": "MQTT", "x": 70, "y": 880, "wires": [ [ "cb413047a53056ab", "1f9b831a1cc1c223", "a20ddd4dc2ce7ccb", "79ce567bac10cfb6" ] ] }, { "id": "cb413047a53056ab", "type": "switch", "z": "19a5e8f8e434006f", "name": "", "property": "payload", "propertyType": "msg", "rules": [ { "t": "eq", "v": "2000", "vt": "str" } ], "checkall": "true", "repair": false, "outputs": 1, "x": 280, "y": 840, "wires": [ [ "7bc2b7578ffbabe3" ] ] }, { "id": "7bc2b7578ffbabe3", "type": "ioBroker get", "z": "19a5e8f8e434006f", "name": "Switch 2", "topic": "0_userdata.0.GordonX-Home.Bad.Virtueller_Schalter_2", "attrname": "payload", "payloadType": "value", "errOnInvalidState": "nothing", "x": 450, "y": 840, "wires": [ [ "f9916b7b609a4872" ] ] }, { "id": "f9916b7b609a4872", "type": "change", "z": "19a5e8f8e434006f", "name": "toggle", "rules": [ { "t": "set", "p": "payload", "pt": "msg", "to": "$not(payload)\t", "tot": "jsonata" } ], "action": "", "property": "", "from": "", "to": "", "reg": false, "x": 590, "y": 840, "wires": [ [ "19db4b5cf607df63" ] ] }, { "id": "19db4b5cf607df63", "type": "ioBroker out", "z": "19a5e8f8e434006f", "name": "Virtuel Switch 2", "topic": "0_userdata.0.GordonX-Home.Bad.Virtueller_Schalter_2", "ack": "false", "autoCreate": "false", "stateName": "", "role": "", "payloadType": "", "readonly": "", "stateUnit": "", "stateMin": "", "stateMax": "", "x": 800, "y": 840, "wires": [] }, { "id": "a20ddd4dc2ce7ccb", "type": "switch", "z": "19a5e8f8e434006f", "name": "", "property": "payload", "propertyType": "msg", "rules": [ { "t": "eq", "v": "3000", "vt": "str" } ], "checkall": "true", "repair": false, "outputs": 1, "x": 280, "y": 900, "wires": [ [ "ba3d7ecc609d611a" ] ] }, { "id": "ba3d7ecc609d611a", "type": "ioBroker get", "z": "19a5e8f8e434006f", "name": "Switch 3", "topic": "0_userdata.0.GordonX-Home.Bad.Virtueller_Schalter_3", "attrname": "payload", "payloadType": "value", "errOnInvalidState": "nothing", "x": 450, "y": 900, "wires": [ [ "b785f33bd5389843" ] ] }, { "id": "b785f33bd5389843", "type": "change", "z": "19a5e8f8e434006f", "name": "toggle", "rules": [ { "t": "set", "p": "payload", "pt": "msg", "to": "$not(payload)\t", "tot": "jsonata" } ], "action": "", "property": "", "from": "", "to": "", "reg": false, "x": 590, "y": 900, "wires": [ [ "ee55387f0a29bec4" ] ] }, { "id": "ee55387f0a29bec4", "type": "ioBroker out", "z": "19a5e8f8e434006f", "name": "Virtuel Switch 3", "topic": "0_userdata.0.GordonX-Home.Bad.Virtueller_Schalter_3", "ack": "false", "autoCreate": "false", "stateName": "", "role": "", "payloadType": "", "readonly": "", "stateUnit": "", "stateMin": "", "stateMax": "", "x": 800, "y": 900, "wires": [] }, { "id": "1f9b831a1cc1c223", "type": "switch", "z": "19a5e8f8e434006f", "name": "", "property": "payload", "propertyType": "msg", "rules": [ { "t": "eq", "v": "4000", "vt": "str" } ], "checkall": "true", "repair": false, "outputs": 1, "x": 280, "y": 960, "wires": [ [ "ae91ecd3729d1f8b" ] ] }, { "id": "ae91ecd3729d1f8b", "type": "ioBroker get", "z": "19a5e8f8e434006f", "name": "Switch 4", "topic": "0_userdata.0.GordonX-Home.Bad.Virtueller_Schalter_4", "attrname": "payload", "payloadType": "value", "errOnInvalidState": "nothing", "x": 450, "y": 960, "wires": [ [ "556103d4e4e7fa4a" ] ] }, { "id": "556103d4e4e7fa4a", "type": "change", "z": "19a5e8f8e434006f", "name": "toggle", "rules": [ { "t": "set", "p": "payload", "pt": "msg", "to": "$not(payload)\t", "tot": "jsonata" } ], "action": "", "property": "", "from": "", "to": "", "reg": false, "x": 590, "y": 960, "wires": [ [ "3b2803663d8b4023" ] ] }, { "id": "3b2803663d8b4023", "type": "ioBroker out", "z": "19a5e8f8e434006f", "name": "Virtuel Switch 4", "topic": "0_userdata.0.GordonX-Home.Bad.Virtueller_Schalter_4", "ack": "false", "autoCreate": "false", "stateName": "", "role": "", "payloadType": "", "readonly": "", "stateUnit": "", "stateMin": "", "stateMax": "", "x": 800, "y": 960, "wires": [] }, { "id": "79ce567bac10cfb6", "type": "switch", "z": "19a5e8f8e434006f", "name": "", "property": "payload", "propertyType": "msg", "rules": [ { "t": "eq", "v": "1000", "vt": "str" } ], "checkall": "true", "repair": false, "outputs": 1, "x": 290, "y": 760, "wires": [ [ "c577d279cf9947a6" ] ] }, { "id": "c577d279cf9947a6", "type": "ioBroker get", "z": "19a5e8f8e434006f", "name": "Switch 1", "topic": "0_userdata.0.GordonX-Home.Bad.Virtueller_Schalter_1", "attrname": "payload", "payloadType": "value", "errOnInvalidState": "nothing", "x": 460, "y": 760, "wires": [ [ "38514d6d7f2e9871" ] ] }, { "id": "38514d6d7f2e9871", "type": "change", "z": "19a5e8f8e434006f", "name": "toggle", "rules": [ { "t": "set", "p": "payload", "pt": "msg", "to": "$not(payload)\t", "tot": "jsonata" } ], "action": "", "property": "", "from": "", "to": "", "reg": false, "x": 600, "y": 760, "wires": [ [ "f5092a35d07b4474", "36b938943d09ebb8" ] ] }, { "id": "f5092a35d07b4474", "type": "ioBroker out", "z": "19a5e8f8e434006f", "name": "Virtuel Switch 2", "topic": "0_userdata.0.GordonX-Home.Bad.Virtueller_Schalter_1", "ack": "false", "autoCreate": "false", "stateName": "", "role": "", "payloadType": "", "readonly": "", "stateUnit": "", "stateMin": "", "stateMax": "", "x": 800, "y": 780, "wires": [] }, { "id": "36b938943d09ebb8", "type": "ioBroker out", "z": "19a5e8f8e434006f", "name": "Bad Lichtschalter", "topic": "tuya.0.bf78f027e5e33c3d76xrfe.1", "ack": "false", "autoCreate": "false", "stateName": "", "role": "", "payloadType": "", "readonly": "", "stateUnit": "", "stateMin": "", "stateMax": "", "x": 810, "y": 720, "wires": [] } ]
-
@aphofis Die 4 switche kannst du in eine Node überführen und dafür Regeln mit entsprechenden Ausgängen machen:
[ { "id": "f90ac36919e30901", "type": "ioBroker in", "z": "7e6af0015415146d", "name": "Bad Schalter", "attrname": "payload", "topic": "hue.0.Bad_Schalter.buttonevent", "payloadType": "value", "onlyack": "", "func": "all", "gap": "", "fireOnStart": "false", "outFormat": "MQTT", "x": 430, "y": 7000, "wires": [ [ "79ce567bac10cfb6" ] ] }, { "id": "7bc2b7578ffbabe3", "type": "ioBroker get", "z": "7e6af0015415146d", "name": "Switch 2", "topic": "0_userdata.0.GordonX-Home.Bad.Virtueller_Schalter_2", "attrname": "payload", "payloadType": "value", "errOnInvalidState": "nothing", "x": 810, "y": 6960, "wires": [ [ "f9916b7b609a4872" ] ] }, { "id": "f9916b7b609a4872", "type": "change", "z": "7e6af0015415146d", "name": "toggle", "rules": [ { "t": "set", "p": "payload", "pt": "msg", "to": "$not(payload)\t", "tot": "jsonata" } ], "action": "", "property": "", "from": "", "to": "", "reg": false, "x": 950, "y": 6960, "wires": [ [ "19db4b5cf607df63" ] ] }, { "id": "19db4b5cf607df63", "type": "ioBroker out", "z": "7e6af0015415146d", "name": "Virtuel Switch 2", "topic": "0_userdata.0.GordonX-Home.Bad.Virtueller_Schalter_2", "ack": "false", "autoCreate": "false", "stateName": "", "role": "", "payloadType": "", "readonly": "", "stateUnit": "", "stateMin": "", "stateMax": "", "x": 1160, "y": 6960, "wires": [] }, { "id": "ba3d7ecc609d611a", "type": "ioBroker get", "z": "7e6af0015415146d", "name": "Switch 3", "topic": "0_userdata.0.GordonX-Home.Bad.Virtueller_Schalter_3", "attrname": "payload", "payloadType": "value", "errOnInvalidState": "nothing", "x": 810, "y": 7020, "wires": [ [ "b785f33bd5389843" ] ] }, { "id": "b785f33bd5389843", "type": "change", "z": "7e6af0015415146d", "name": "toggle", "rules": [ { "t": "set", "p": "payload", "pt": "msg", "to": "$not(payload)\t", "tot": "jsonata" } ], "action": "", "property": "", "from": "", "to": "", "reg": false, "x": 950, "y": 7020, "wires": [ [ "ee55387f0a29bec4" ] ] }, { "id": "ee55387f0a29bec4", "type": "ioBroker out", "z": "7e6af0015415146d", "name": "Virtuel Switch 3", "topic": "0_userdata.0.GordonX-Home.Bad.Virtueller_Schalter_3", "ack": "false", "autoCreate": "false", "stateName": "", "role": "", "payloadType": "", "readonly": "", "stateUnit": "", "stateMin": "", "stateMax": "", "x": 1160, "y": 7020, "wires": [] }, { "id": "ae91ecd3729d1f8b", "type": "ioBroker get", "z": "7e6af0015415146d", "name": "Switch 4", "topic": "0_userdata.0.GordonX-Home.Bad.Virtueller_Schalter_4", "attrname": "payload", "payloadType": "value", "errOnInvalidState": "nothing", "x": 810, "y": 7080, "wires": [ [ "556103d4e4e7fa4a" ] ] }, { "id": "556103d4e4e7fa4a", "type": "change", "z": "7e6af0015415146d", "name": "toggle", "rules": [ { "t": "set", "p": "payload", "pt": "msg", "to": "$not(payload)\t", "tot": "jsonata" } ], "action": "", "property": "", "from": "", "to": "", "reg": false, "x": 950, "y": 7080, "wires": [ [ "3b2803663d8b4023" ] ] }, { "id": "3b2803663d8b4023", "type": "ioBroker out", "z": "7e6af0015415146d", "name": "Virtuel Switch 4", "topic": "0_userdata.0.GordonX-Home.Bad.Virtueller_Schalter_4", "ack": "false", "autoCreate": "false", "stateName": "", "role": "", "payloadType": "", "readonly": "", "stateUnit": "", "stateMin": "", "stateMax": "", "x": 1160, "y": 7080, "wires": [] }, { "id": "c577d279cf9947a6", "type": "ioBroker get", "z": "7e6af0015415146d", "name": "Switch 1", "topic": "0_userdata.0.GordonX-Home.Bad.Virtueller_Schalter_1", "attrname": "payload", "payloadType": "value", "errOnInvalidState": "nothing", "x": 820, "y": 6880, "wires": [ [ "38514d6d7f2e9871" ] ] }, { "id": "38514d6d7f2e9871", "type": "change", "z": "7e6af0015415146d", "name": "toggle", "rules": [ { "t": "set", "p": "payload", "pt": "msg", "to": "$not(payload)\t", "tot": "jsonata" } ], "action": "", "property": "", "from": "", "to": "", "reg": false, "x": 960, "y": 6880, "wires": [ [ "f5092a35d07b4474", "36b938943d09ebb8" ] ] }, { "id": "f5092a35d07b4474", "type": "ioBroker out", "z": "7e6af0015415146d", "name": "Virtuel Switch 2", "topic": "0_userdata.0.GordonX-Home.Bad.Virtueller_Schalter_1", "ack": "false", "autoCreate": "false", "stateName": "", "role": "", "payloadType": "", "readonly": "", "stateUnit": "", "stateMin": "", "stateMax": "", "x": 1160, "y": 6900, "wires": [] }, { "id": "36b938943d09ebb8", "type": "ioBroker out", "z": "7e6af0015415146d", "name": "Bad Lichtschalter", "topic": "tuya.0.bf78f027e5e33c3d76xrfe.1", "ack": "false", "autoCreate": "false", "stateName": "", "role": "", "payloadType": "", "readonly": "", "stateUnit": "", "stateMin": "", "stateMax": "", "x": 1170, "y": 6840, "wires": [] }, { "id": "79ce567bac10cfb6", "type": "switch", "z": "7e6af0015415146d", "name": "", "property": "payload", "propertyType": "msg", "rules": [ { "t": "eq", "v": "1000", "vt": "str" }, { "t": "eq", "v": "2000", "vt": "str" }, { "t": "eq", "v": "3000", "vt": "str" }, { "t": "eq", "v": "4000", "vt": "str" } ], "checkall": "true", "repair": false, "outputs": 4, "x": 590, "y": 7000, "wires": [ [ "c577d279cf9947a6" ], [ "7bc2b7578ffbabe3" ], [ "ba3d7ecc609d611a" ], [ "ae91ecd3729d1f8b" ] ] } ]
-
@mickym i've done
vielen dank