NEWS
Alexa schaltet mehrere Zustände
-
ich hab ein kleines problem
wenn ich die ganzen signale einzeln steuer funktioniert es aber wenn alle wie im bild verbunden sind fürt Alexa alle aus
z.b. "Gästezimmerlicht Aus" -> kurz licht aus ; Helligkeit auf letztens stand von alexa (also wieder an ) ; Farbe auf den letzten Alexa standhat da jemand eine Lösungsidee
dazu hab ich noch ein problem das iphole und alexa/nodered port 80 nutzen
wenn ich den port weiterleiten lasse auf einen anderen port geht pihole nicht mehr[ { "id": "b61408e32832b7f8", "type": "amazon-echo-device", "z": "cee17ed446936d03", "name": "Gästezimmerlicht", "topic": "", "x": 170, "y": 1680, "wires": [ [ "a62207b493acba49", "149d1193318b1bb1", "e738773a11bc9e15" ] ] }, { "id": "25d3b0df5ee0cc8d", "type": "function", "z": "cee17ed446936d03", "name": "false", "func": "msg.payload = false;\nreturn msg;", "outputs": 1, "timeout": 0, "noerr": 0, "initialize": "", "finalize": "", "libs": [], "x": 890, "y": 1660, "wires": [ [ "798794a0c82cb94e" ] ] }, { "id": "44b62ae42553cac4", "type": "function", "z": "cee17ed446936d03", "name": "true", "func": "msg.payload = true;\nreturn msg;", "outputs": 1, "timeout": 0, "noerr": 0, "initialize": "", "finalize": "", "libs": [], "x": 890, "y": 1620, "wires": [ [ "798794a0c82cb94e" ] ] }, { "id": "a62207b493acba49", "type": "switch", "z": "cee17ed446936d03", "name": "an/aus", "property": "payload", "propertyType": "msg", "rules": [ { "t": "eq", "v": "on", "vt": "str" }, { "t": "eq", "v": "off", "vt": "str" } ], "checkall": "true", "repair": false, "outputs": 2, "x": 770, "y": 1640, "wires": [ [ "44b62ae42553cac4" ], [ "25d3b0df5ee0cc8d" ] ] }, { "id": "798794a0c82cb94e", "type": "ioBroker out", "z": "cee17ed446936d03", "name": "", "topic": "zigbee.0.group_3.state", "ack": "false", "autoCreate": "false", "stateName": "", "role": "", "payloadType": "", "readonly": "", "stateUnit": "", "stateMin": "", "stateMax": "", "x": 1150, "y": 1620, "wires": [] }, { "id": "cc85d7d991cd265a", "type": "ioBroker out", "z": "cee17ed446936d03", "name": "", "topic": "zigbee.0.group_3.brightness", "ack": "false", "autoCreate": "false", "stateName": "", "role": "", "payloadType": "", "readonly": "", "stateUnit": "", "stateMin": "", "stateMax": "", "x": 1160, "y": 1680, "wires": [] }, { "id": "20b0987d8f31132b", "type": "ioBroker out", "z": "cee17ed446936d03", "name": "", "topic": "zigbee.0.group_3.color", "ack": "false", "autoCreate": "false", "stateName": "", "role": "", "payloadType": "", "readonly": "", "stateUnit": "", "stateMin": "", "stateMax": "", "x": 1150, "y": 1800, "wires": [] }, { "id": "73f88f26979f40d8", "type": "ioBroker out", "z": "cee17ed446936d03", "name": "", "topic": "zigbee.0.group_3.colortemp", "ack": "false", "autoCreate": "false", "stateName": "", "role": "", "payloadType": "", "readonly": "", "stateUnit": "", "stateMin": "", "stateMax": "", "x": 1160, "y": 1860, "wires": [] }, { "id": "149d1193318b1bb1", "type": "change", "z": "cee17ed446936d03", "name": "", "rules": [ { "t": "set", "p": "payload", "pt": "msg", "to": "msg.bri", "tot": "msg" } ], "action": "", "property": "", "from": "", "to": "", "reg": false, "x": 730, "y": 1720, "wires": [ [ "ca9b96e53838c8bf" ] ] }, { "id": "ca9b96e53838c8bf", "type": "range", "z": "cee17ed446936d03", "minin": "0", "maxin": "254", "minout": "0", "maxout": "100", "action": "scale", "round": true, "property": "payload", "name": "", "x": 940, "y": 1720, "wires": [ [ "cc85d7d991cd265a" ] ] }, { "id": "2fb6a5ebb76b4c88", "type": "color-convert", "z": "cee17ed446936d03", "input": "rgb", "output": "hex", "outputType": "string", "scaleInput": false, "x": 910, "y": 1800, "wires": [ [ "20b0987d8f31132b" ] ] }, { "id": "4eeea0a1035a91c3", "type": "change", "z": "cee17ed446936d03", "name": "msg.rgb", "rules": [ { "t": "set", "p": "payload", "pt": "msg", "to": "rgb", "tot": "msg" } ], "action": "", "property": "", "from": "", "to": "", "reg": false, "x": 620, "y": 1800, "wires": [ [ "2fb6a5ebb76b4c88" ] ] }, { "id": "495c9fec4e34c7f0", "type": "change", "z": "cee17ed446936d03", "name": "msg.ct", "rules": [ { "t": "set", "p": "payload", "pt": "msg", "to": "ct", "tot": "msg" } ], "action": "", "property": "", "from": "", "to": "", "reg": false, "x": 510, "y": 1860, "wires": [ [ "b6afacb620835e71" ] ] }, { "id": "b6afacb620835e71", "type": "switch", "z": "cee17ed446936d03", "name": "if colormode warm/cold/white", "property": "ct", "propertyType": "msg", "rules": [ { "t": "eq", "v": "350", "vt": "str" }, { "t": "eq", "v": "284", "vt": "str" }, { "t": "eq", "v": "199", "vt": "str" } ], "checkall": "true", "repair": false, "outputs": 3, "x": 720, "y": 1900, "wires": [ [ "a5870c18123b9a14" ], [ "7faa3878c5560985" ], [ "9a96f166c2a5f9dc" ] ] }, { "id": "7faa3878c5560985", "type": "change", "z": "cee17ed446936d03", "name": "6000", "rules": [ { "t": "set", "p": "payload", "pt": "msg", "to": "5000", "tot": "str" } ], "action": "", "property": "", "from": "", "to": "", "reg": false, "x": 930, "y": 1900, "wires": [ [ "73f88f26979f40d8" ] ] }, { "id": "e738773a11bc9e15", "type": "switch", "z": "cee17ed446936d03", "name": "if hs/ct", "property": "colormode", "propertyType": "msg", "rules": [ { "t": "eq", "v": "hs", "vt": "str" }, { "t": "eq", "v": "ct", "vt": "str" } ], "checkall": "true", "repair": false, "outputs": 2, "x": 370, "y": 1800, "wires": [ [ "4eeea0a1035a91c3" ], [ "495c9fec4e34c7f0" ] ] }, { "id": "a5870c18123b9a14", "type": "change", "z": "cee17ed446936d03", "name": "2000", "rules": [ { "t": "set", "p": "payload", "pt": "msg", "to": "2000", "tot": "str" } ], "action": "", "property": "", "from": "", "to": "", "reg": false, "x": 930, "y": 1860, "wires": [ [ "73f88f26979f40d8" ] ] }, { "id": "9a96f166c2a5f9dc", "type": "change", "z": "cee17ed446936d03", "name": "6000", "rules": [ { "t": "set", "p": "payload", "pt": "msg", "to": "6500", "tot": "str" } ], "action": "", "property": "", "from": "", "to": "", "reg": false, "x": 930, "y": 1940, "wires": [ [ "73f88f26979f40d8" ] ] } ]
-
@leovandavart Hi, du könntest mal versuchen, die Helligkeit und Farbe hinter den Switch zu packen. Dann wird nur die Helligkeit und Farbe beim Einschalten gesetzt. Beim Ausschalten wird dann nur der State auf false gesetzt und die Helligkeit und Farbe nicht durchgereicht. Ungefähr so:
Ich kanns leider nicht testen, da ich diese Nodes nicht verwende. Ich weiß nicht was passiert wenn du über Alexa nur nen Helligkeitsbefehl absetzt, kann sein das die Lampe dann mit dieser Konfiguration ausbleibt. Da müsstest du mal ne Debug Node hinter die Echo Device Node packen und zeigen was bei verschiedenen Befehlen (z.B. schalte ein, schalte aus, stelle auf 50%, usw.) da raus kommt.
-
@frankyboy73 scheind so zu funktionieren
problem is nur noch die port sache ...aktuell muss ich nach jedem update von pihole den port händisch auf 81 ändern
aus
{"on":false,"bri":90,"percentage":35,"hue":0,"sat":254,"xy":[0.6484272236872118,0.33085610147277794],"ct":199,"rgb":[254,0,0],"colormode":"ct","meta":{"insert":{"by":"alexa","details":{"ip":"::ffff:192.168.178.25","date":"2024-03-09T10:32:38.623Z"}},"input":{"on":false},"changes":{"on":true}},"payload":"off","deviceid":"ac2060c1626c1c39","topic":"","_msgid":"30f89823d84f4661"}
An
{"on":true,"bri":133,"percentage":52,"hue":0,"sat":254,"xy":[0.6484272236872118,0.33085610147277794],"ct":199,"rgb":[254,0,0],"colormode":"ct","meta":{"insert":{"by":"alexa","details":{"ip":"::ffff:192.168.178.25","date":"2024-03-09T10:31:54.231Z"}},"input":{"on":true},"changes":{"on":false}},"payload":"on","deviceid":"ac2060c1626c1c39","topic":"","_msgid":"9e35d6bf802c732f"}