NEWS
Alexa Anbindung ohne Cloud und Skill
-
Habe nun Amazon Echo Device versucht.
Da wird auch nichts gefunden.
Muss ich auch noch Amazon Echo Hub nutzen? -
@aldoa1 du musst einmal den Echo Hub anlegen und für die einzelnen Geräte dann jeweils das Device.
-
Ich habe auch Probleme mit der Umstellung meiner Flows in Node RED.
Ich habe es mit dem contrib-alexa-home (siehe angehangenen Flow) versucht und es wird nur der Homematic-Schalter (Ventilator) gefunden. Den kann ich auch schalten per Alexa. Die restlichen allerdings nicht. Ich weiß nicht, ob es mit der function zu tun hat, oder nicht.
Da ich Shelly, Sonoff, Homematic, Scenen und dgl. verwende, habe ich mal exemplarisch für jede Gerätvariante mal die Nodes in den Flow gehangen. Evtl. könnt ihr mir weiterhelfenMit contriba-alexa-home:
[ { "id": "210e0eb4.52efe2", "type": "ioBroker out", "z": "e4a2c4f8.21807", "name": "Ventilator.STATE", "topic": "hm-rpc.0.OEQ1157334.1.STATE", "ack": "false", "autoCreate": "false", "x": 690, "y": 400, "wires": [] }, { "id": "b304bc36.98ff78", "type": "alexa-home", "z": "e4a2c4f8.21807", "devicename": "Ventilator", "devicetype": "Extended color light", "x": 140, "y": 400, "wires": [ [ "f98f6048.052f6" ] ] }, { "id": "f98f6048.052f6", "type": "function", "z": "e4a2c4f8.21807", "name": "on off", "func": "let state = msg.payload.on;\nlet out = \"\";\n\nif(state == false){\noutput = \"0\";\n}else{\nstate = true;\noutput = \"1\"\n}\nreturn { \"payload\":output };", "outputs": 1, "noerr": 0, "x": 410, "y": 400, "wires": [ [ "210e0eb4.52efe2" ] ] }, { "id": "de35f316.db96", "type": "alexa-home", "z": "e4a2c4f8.21807", "devicename": "Spiegellampe", "devicetype": "Extended color light", "x": 160, "y": 460, "wires": [ [ "c2b1de37.f55128" ] ] }, { "id": "c2b1de37.f55128", "type": "function", "z": "e4a2c4f8.21807", "name": "on off", "func": "let state = msg.payload.on;\nlet out = \"\";\n\nif(state == false){\noutput = \"0\";\n}else{\nstate = true;\noutput = \"1\"\n}\nreturn { \"payload\":output };", "outputs": 1, "noerr": 0, "x": 410, "y": 460, "wires": [ [ "50504ca5.e9d60c" ] ] }, { "id": "50504ca5.e9d60c", "type": "ioBroker out", "z": "e4a2c4f8.21807", "name": "DVES_956FEC POWER", "topic": "sonoff.0.DVES_956FEC.POWER", "ack": "false", "autoCreate": "false", "x": 710, "y": 460, "wires": [] }, { "id": "6e7ff3c3.0f1764", "type": "alexa-home", "z": "e4a2c4f8.21807", "devicename": "Wohnzimmerlicht", "devicetype": "Extended color light", "x": 170, "y": 360, "wires": [ [ "c57cd38.0bd1bb" ] ] }, { "id": "c57cd38.0bd1bb", "type": "function", "z": "e4a2c4f8.21807", "name": " Licht Wohnzimmer dimmen", "func": " var newMsg = { payload: msg.bri } ;\nreturn newMsg;local \n", "outputs": 1, "noerr": 0, "x": 439, "y": 359, "wires": [ [ "bc7837ae.64c18" ] ] }, { "id": "bc7837ae.64c18", "type": "ioBroker out", "z": "e4a2c4f8.21807", "name": "HM-LC-Dim1TPBU-FM NEQ0388582:1.LEVEL", "topic": "hm-rpc.0.NEQ0388582.1.LEVEL", "ack": "false", "autoCreate": "false", "x": 777, "y": 359, "wires": [] }, { "id": "4b53d9a3.6f577", "type": "alexa-home", "z": "e4a2c4f8.21807", "devicename": "Stimmungslicht", "devicetype": "Extended color light", "x": 160, "y": 520, "wires": [ [ "46989263.b696d4" ] ] }, { "id": "46989263.b696d4", "type": "function", "z": "e4a2c4f8.21807", "name": "on off", "func": "let state = msg.payload.on;\nlet out = \"\";\n\nif(state == false){\noutput = \"0\";\n}else{\nstate = true;\noutput = \"1\"\n}\nreturn { \"payload\":output };", "outputs": 1, "noerr": 0, "x": 410, "y": 520, "wires": [ [ "a99510d3.a0d02" ] ] }, { "id": "a99510d3.a0d02", "type": "ioBroker out", "z": "e4a2c4f8.21807", "name": "0.Stimmungslicht", "topic": "scene.0.Stimmungslicht", "ack": "false", "autoCreate": "false", "x": 690, "y": 520, "wires": [] }, { "id": "d51e1fbe.402d8", "type": "ioBroker out", "z": "e4a2c4f8.21807", "name": "Switch", "topic": "shelly.0.SHSW-1#12C23B#1.Relay0.Switch", "ack": "false", "autoCreate": "false", "x": 650, "y": 580, "wires": [] }, { "id": "93a15c41.b065", "type": "function", "z": "e4a2c4f8.21807", "name": "on off", "func": "let state = msg.payload.on;\nlet out = \"\";\n\nif(state == false){\noutput = \"0\";\n}else{\nstate = true;\noutput = \"1\"\n}\nreturn { \"payload\":output };", "outputs": 1, "noerr": 0, "x": 410, "y": 580, "wires": [ [ "d51e1fbe.402d8" ] ] }, { "id": "dc18c132.4510f", "type": "alexa-home", "z": "e4a2c4f8.21807", "devicename": "Esszimmerlicht", "devicetype": "Extended color light", "x": 160, "y": 580, "wires": [ [ "93a15c41.b065" ] ] }, { "id": "ac74ba16.6b8ea8", "type": "alexa-home-controller", "z": "e4a2c4f8.21807", "controllername": "Alexa Controller", "port": "80", "maxItems": "25", "x": 170, "y": 300, "wires": [] } ]
Mit amazon-echo:
[ { "id": "5203170a.439a8", "type": "amazon-echo-hub", "z": "e4a2c4f8.21807", "port": "80", "processinput": 0, "x": 130, "y": 320, "wires": [ [] ] }, { "id": "e0d90e35.e722c8", "type": "ioBroker out", "z": "e4a2c4f8.21807", "name": "Ventilator.STATE", "topic": "hm-rpc.0.OEQ1157334.1.STATE", "ack": "false", "autoCreate": "false", "x": 670, "y": 420, "wires": [] }, { "id": "63100d7d.609394", "type": "function", "z": "e4a2c4f8.21807", "name": "on off", "func": "let state = msg.payload.on;\nlet out = \"\";\n\nif(state == false){\noutput = \"0\";\n}else{\nstate = true;\noutput = \"1\"\n}\nreturn { \"payload\":output };", "outputs": 1, "noerr": 0, "x": 390, "y": 420, "wires": [ [ "e0d90e35.e722c8" ] ] }, { "id": "e9b1e4fe.27e238", "type": "function", "z": "e4a2c4f8.21807", "name": "on off", "func": "let state = msg.payload.on;\nlet out = \"\";\n\nif(state == false){\noutput = \"0\";\n}else{\nstate = true;\noutput = \"1\"\n}\nreturn { \"payload\":output };", "outputs": 1, "noerr": 0, "x": 390, "y": 480, "wires": [ [ "8642c58c.76a8e8" ] ] }, { "id": "8642c58c.76a8e8", "type": "ioBroker out", "z": "e4a2c4f8.21807", "name": "DVES_956FEC POWER", "topic": "sonoff.0.DVES_956FEC.POWER", "ack": "false", "autoCreate": "false", "x": 690, "y": 480, "wires": [] }, { "id": "5742f5cf.dd5ab4", "type": "function", "z": "e4a2c4f8.21807", "name": " Licht Wohnzimmer dimmen", "func": " var newMsg = { payload: msg.bri } ;\nreturn newMsg;local \n", "outputs": 1, "noerr": 0, "x": 419, "y": 379, "wires": [ [ "f1526f1e.a7a908" ] ] }, { "id": "f1526f1e.a7a908", "type": "ioBroker out", "z": "e4a2c4f8.21807", "name": "HM-LC-Dim1TPBU-FM NEQ0388582:1.LEVEL", "topic": "hm-rpc.0.NEQ0388582.1.LEVEL", "ack": "false", "autoCreate": "false", "x": 757, "y": 379, "wires": [] }, { "id": "321d6963.153946", "type": "function", "z": "e4a2c4f8.21807", "name": "on off", "func": "let state = msg.payload.on;\nlet out = \"\";\n\nif(state == false){\noutput = \"0\";\n}else{\nstate = true;\noutput = \"1\"\n}\nreturn { \"payload\":output };", "outputs": 1, "noerr": 0, "x": 390, "y": 540, "wires": [ [ "f7a8cecf.bf2b9" ] ] }, { "id": "f7a8cecf.bf2b9", "type": "ioBroker out", "z": "e4a2c4f8.21807", "name": "0.Stimmungslicht", "topic": "scene.0.Stimmungslicht", "ack": "false", "autoCreate": "false", "x": 670, "y": 540, "wires": [] }, { "id": "184d01cf.e25db6", "type": "ioBroker out", "z": "e4a2c4f8.21807", "name": "Switch", "topic": "shelly.0.SHSW-1#12C23B#1.Relay0.Switch", "ack": "false", "autoCreate": "false", "x": 630, "y": 600, "wires": [] }, { "id": "a8fb44a0.bacea", "type": "function", "z": "e4a2c4f8.21807", "name": "on off", "func": "let state = msg.payload.on;\nlet out = \"\";\n\nif(state == false){\noutput = \"0\";\n}else{\nstate = true;\noutput = \"1\"\n}\nreturn { \"payload\":output };", "outputs": 1, "noerr": 0, "x": 390, "y": 600, "wires": [ [ "184d01cf.e25db6" ] ] }, { "id": "cbf7c699.7267c", "type": "amazon-echo-device", "z": "e4a2c4f8.21807", "name": "Wohnzimmerlicht", "topic": "", "x": 130, "y": 380, "wires": [ [ "5742f5cf.dd5ab4" ] ] }, { "id": "3a66e839.29d638", "type": "amazon-echo-device", "z": "e4a2c4f8.21807", "name": "Ventilator", "topic": "", "x": 100, "y": 420, "wires": [ [ "63100d7d.609394" ] ] }, { "id": "2b4c6858.0212d8", "type": "amazon-echo-device", "z": "e4a2c4f8.21807", "name": "Spiegellampe", "topic": "", "x": 120, "y": 480, "wires": [ [ "e9b1e4fe.27e238" ] ] }, { "id": "fd1e807e.5d991", "type": "amazon-echo-device", "z": "e4a2c4f8.21807", "name": "Stimmungslicht", "topic": "", "x": 120, "y": 540, "wires": [ [ "321d6963.153946" ] ] }, { "id": "308e718b.d24dc6", "type": "amazon-echo-device", "z": "e4a2c4f8.21807", "name": "Esszimmerlampe", "topic": "", "x": 130, "y": 600, "wires": [ [ "a8fb44a0.bacea" ] ] } ]
EDIT:
Ich habe es mittlerweile mit dem amazon-echo-hub hinbekommen, zumindest die Schalter und Szenen schalten zu können. Allerdings funktioniert der Node mit dem Dimmen des Wohnzimmerlichts/Rollläden leider (noch) nicht bei mir -
Habe es nun hinbekommen, dimmen, schalten und verschiedene Flows
Werde die Flows mal anhängen als Vorlage
[ { "id": "e4a2c4f8.21807", "type": "tab", "label": "Schalter", "disabled": false, "info": "" }, { "id": "e2983341.47dbb8", "type": "ioBroker out", "z": "e4a2c4f8.21807", "name": "Flurlicht", "topic": "shelly.0.SHSW-1#2C07DA#1.Relay0.Switch", "ack": "false", "autoCreate": "false", "x": 1000, "y": 20, "wires": [] }, { "id": "5203170a.439a8", "type": "amazon-echo-hub", "z": "e4a2c4f8.21807", "port": "80", "processinput": 0, "x": 90, "y": 300, "wires": [ [ "3475e506.3d739a", "c069b82d.63671", "5b7e39fc.3843b8", "1fe643bb.9f724c", "168e8bb1.1882a4", "fb634c4e.4d808", "c5ff38d6.36c2", "9803ba3a.4fc86", "9dc1f072.f6054", "41b38368.5942c4", "eb052a73.ee8e6" ] ] }, { "id": "3475e506.3d739a", "type": "amazon-echo-device", "z": "e4a2c4f8.21807", "name": "Flurlicht", "topic": "", "x": 320, "y": 20, "wires": [ [ "3cbc797d.43f35e" ] ] }, { "id": "3cbc797d.43f35e", "type": "switch", "z": "e4a2c4f8.21807", "name": "Schalter", "property": "payload", "propertyType": "msg", "rules": [ { "t": "eq", "v": "on", "vt": "str" }, { "t": "eq", "v": "off", "vt": "str" } ], "checkall": "true", "repair": false, "outputs": 2, "x": 600, "y": 20, "wires": [ [ "e2983341.47dbb8" ], [ "be4e4828.cafdf8" ] ] }, { "id": "be4e4828.cafdf8", "type": "function", "z": "e4a2c4f8.21807", "name": "false", "func": "msg.payload = false;\nreturn msg; ", "outputs": 1, "noerr": 0, "x": 790, "y": 40, "wires": [ [ "e2983341.47dbb8" ] ] }, { "id": "4eae319a.88cdd", "type": "ioBroker out", "z": "e4a2c4f8.21807", "name": "Esszimmerlicht", "topic": "shelly.0.SHSW-1#12C23B#1.Relay0.Switch", "ack": "false", "autoCreate": "false", "x": 1020, "y": 80, "wires": [] }, { "id": "c069b82d.63671", "type": "amazon-echo-device", "z": "e4a2c4f8.21807", "name": "Esszimmerlicht", "topic": "", "x": 340, "y": 80, "wires": [ [ "20156dca.80f44a" ] ] }, { "id": "20156dca.80f44a", "type": "switch", "z": "e4a2c4f8.21807", "name": "Schalter", "property": "payload", "propertyType": "msg", "rules": [ { "t": "eq", "v": "on", "vt": "str" }, { "t": "eq", "v": "off", "vt": "str" } ], "checkall": "true", "repair": false, "outputs": 2, "x": 600, "y": 80, "wires": [ [ "4eae319a.88cdd" ], [ "84a368e5.1b772" ] ] }, { "id": "84a368e5.1b772", "type": "function", "z": "e4a2c4f8.21807", "name": "false", "func": "msg.payload = false;\nreturn msg; ", "outputs": 1, "noerr": 0, "x": 790, "y": 100, "wires": [ [ "4eae319a.88cdd" ] ] }, { "id": "c58dc527.0b6528", "type": "ioBroker out", "z": "e4a2c4f8.21807", "name": "Garderobenlicht", "topic": "hm-rpc.0.OEQ0182937.1.STATE", "ack": "false", "autoCreate": "false", "x": 1020, "y": 160, "wires": [] }, { "id": "ddd8e005.4ff32", "type": "ioBroker out", "z": "e4a2c4f8.21807", "name": "Ventilator", "topic": "hm-rpc.0.OEQ1157334.1.STATE", "ack": "false", "autoCreate": "false", "x": 1000, "y": 220, "wires": [] }, { "id": "c1025673.6ef0c", "type": "ioBroker out", "z": "e4a2c4f8.21807", "name": "Kranzlicht", "topic": "sonoff.0.DVES_956F29.POWER", "ack": "false", "autoCreate": "false", "x": 1000, "y": 280, "wires": [] }, { "id": "e221b8f4.db61f", "type": "ioBroker out", "z": "e4a2c4f8.21807", "name": "Spiegellampe", "topic": "sonoff.0.DVES_956FEC.POWER", "ack": "false", "autoCreate": "false", "x": 1020, "y": 340, "wires": [] }, { "id": "e8ea983c.3a23f", "type": "ioBroker out", "z": "e4a2c4f8.21807", "name": "Kaminlampe", "topic": "sonoff.0.DVES_CCC411.POWER", "ack": "false", "autoCreate": "false", "x": 1010, "y": 400, "wires": [] }, { "id": "88d1a8e0.b07a38", "type": "ioBroker out", "z": "e4a2c4f8.21807", "name": "Ambilight", "topic": "sonoff.0.DVES_CCCCDB.POWER", "ack": "false", "autoCreate": "false", "x": 1000, "y": 460, "wires": [] }, { "id": "80aca20b.5928b8", "type": "ioBroker out", "z": "e4a2c4f8.21807", "name": "Stimmungslicht", "topic": "scene.0.Stimmungslicht", "ack": "false", "autoCreate": "false", "x": 1020, "y": 520, "wires": [] }, { "id": "5b7e39fc.3843b8", "type": "amazon-echo-device", "z": "e4a2c4f8.21807", "name": "Garderobenlicht", "topic": "", "x": 340, "y": 140, "wires": [ [ "dbb5e4d3.de9cd8" ] ] }, { "id": "1fe643bb.9f724c", "type": "amazon-echo-device", "z": "e4a2c4f8.21807", "name": "Ventilator", "topic": "", "x": 320, "y": 200, "wires": [ [ "ab2ebd8a.2033c" ] ] }, { "id": "168e8bb1.1882a4", "type": "amazon-echo-device", "z": "e4a2c4f8.21807", "name": "Kranzlicht", "topic": "", "x": 320, "y": 260, "wires": [ [ "f26c12f8.37d5b" ] ] }, { "id": "fb634c4e.4d808", "type": "amazon-echo-device", "z": "e4a2c4f8.21807", "name": "Spiegellampe", "topic": "", "x": 340, "y": 320, "wires": [ [ "1e3c347e.67b43c" ] ] }, { "id": "c5ff38d6.36c2", "type": "amazon-echo-device", "z": "e4a2c4f8.21807", "name": "Kaminlampe", "topic": "", "x": 330, "y": 380, "wires": [ [ "e677a83.58fd7d8" ] ] }, { "id": "9803ba3a.4fc86", "type": "amazon-echo-device", "z": "e4a2c4f8.21807", "name": "Ambilight", "topic": "", "x": 320, "y": 440, "wires": [ [ "1bf8b47.470294c" ] ] }, { "id": "9dc1f072.f6054", "type": "amazon-echo-device", "z": "e4a2c4f8.21807", "name": "Stimmungslicht", "topic": "", "x": 340, "y": 500, "wires": [ [ "1511a38e.01ad64" ] ] }, { "id": "dbb5e4d3.de9cd8", "type": "switch", "z": "e4a2c4f8.21807", "name": "Schalter", "property": "payload", "propertyType": "msg", "rules": [ { "t": "eq", "v": "on", "vt": "str" }, { "t": "eq", "v": "off", "vt": "str" } ], "checkall": "true", "repair": false, "outputs": 2, "x": 600, "y": 140, "wires": [ [ "c58dc527.0b6528" ], [ "fcabc762.b6ab5" ] ] }, { "id": "fcabc762.b6ab5", "type": "function", "z": "e4a2c4f8.21807", "name": "false", "func": "msg.payload = false;\nreturn msg; ", "outputs": 1, "noerr": 0, "x": 790, "y": 160, "wires": [ [ "c58dc527.0b6528" ] ] }, { "id": "ab2ebd8a.2033c", "type": "switch", "z": "e4a2c4f8.21807", "name": "Schalter", "property": "payload", "propertyType": "msg", "rules": [ { "t": "eq", "v": "on", "vt": "str" }, { "t": "eq", "v": "off", "vt": "str" } ], "checkall": "true", "repair": false, "outputs": 2, "x": 600, "y": 200, "wires": [ [ "ddd8e005.4ff32" ], [ "63a01005.4e943" ] ] }, { "id": "63a01005.4e943", "type": "function", "z": "e4a2c4f8.21807", "name": "false", "func": "msg.payload = false;\nreturn msg; ", "outputs": 1, "noerr": 0, "x": 790, "y": 220, "wires": [ [ "ddd8e005.4ff32" ] ] }, { "id": "f26c12f8.37d5b", "type": "switch", "z": "e4a2c4f8.21807", "name": "Schalter", "property": "payload", "propertyType": "msg", "rules": [ { "t": "eq", "v": "on", "vt": "str" }, { "t": "eq", "v": "off", "vt": "str" } ], "checkall": "true", "repair": false, "outputs": 2, "x": 600, "y": 260, "wires": [ [ "c1025673.6ef0c" ], [ "89633084.26ce18" ] ] }, { "id": "89633084.26ce18", "type": "function", "z": "e4a2c4f8.21807", "name": "false", "func": "msg.payload = false;\nreturn msg; ", "outputs": 1, "noerr": 0, "x": 790, "y": 280, "wires": [ [ "c1025673.6ef0c" ] ] }, { "id": "1e3c347e.67b43c", "type": "switch", "z": "e4a2c4f8.21807", "name": "Schalter", "property": "payload", "propertyType": "msg", "rules": [ { "t": "eq", "v": "on", "vt": "str" }, { "t": "eq", "v": "off", "vt": "str" } ], "checkall": "true", "repair": false, "outputs": 2, "x": 600, "y": 320, "wires": [ [ "e221b8f4.db61f" ], [ "55991205.bd0674" ] ] }, { "id": "55991205.bd0674", "type": "function", "z": "e4a2c4f8.21807", "name": "false", "func": "msg.payload = false;\nreturn msg; ", "outputs": 1, "noerr": 0, "x": 790, "y": 340, "wires": [ [ "e221b8f4.db61f" ] ] }, { "id": "e677a83.58fd7d8", "type": "switch", "z": "e4a2c4f8.21807", "name": "Schalter", "property": "payload", "propertyType": "msg", "rules": [ { "t": "eq", "v": "on", "vt": "str" }, { "t": "eq", "v": "off", "vt": "str" } ], "checkall": "true", "repair": false, "outputs": 2, "x": 600, "y": 380, "wires": [ [ "e8ea983c.3a23f" ], [ "5090e87d.0ede5" ] ] }, { "id": "5090e87d.0ede5", "type": "function", "z": "e4a2c4f8.21807", "name": "false", "func": "msg.payload = false;\nreturn msg; ", "outputs": 1, "noerr": 0, "x": 790, "y": 400, "wires": [ [ "e8ea983c.3a23f" ] ] }, { "id": "1bf8b47.470294c", "type": "switch", "z": "e4a2c4f8.21807", "name": "Schalter", "property": "payload", "propertyType": "msg", "rules": [ { "t": "eq", "v": "on", "vt": "str" }, { "t": "eq", "v": "off", "vt": "str" } ], "checkall": "true", "repair": false, "outputs": 2, "x": 600, "y": 440, "wires": [ [ "88d1a8e0.b07a38" ], [ "75415def.b48f54" ] ] }, { "id": "75415def.b48f54", "type": "function", "z": "e4a2c4f8.21807", "name": "false", "func": "msg.payload = false;\nreturn msg; ", "outputs": 1, "noerr": 0, "x": 790, "y": 460, "wires": [ [ "88d1a8e0.b07a38" ] ] }, { "id": "1511a38e.01ad64", "type": "switch", "z": "e4a2c4f8.21807", "name": "Schalter", "property": "payload", "propertyType": "msg", "rules": [ { "t": "eq", "v": "on", "vt": "str" }, { "t": "eq", "v": "off", "vt": "str" } ], "checkall": "true", "repair": false, "outputs": 2, "x": 600, "y": 500, "wires": [ [ "80aca20b.5928b8" ], [ "da0135d6.b43678" ] ] }, { "id": "da0135d6.b43678", "type": "function", "z": "e4a2c4f8.21807", "name": "false", "func": "msg.payload = false;\nreturn msg; ", "outputs": 1, "noerr": 0, "x": 790, "y": 520, "wires": [ [ "80aca20b.5928b8" ] ] }, { "id": "dd433a99.b7c5b8", "type": "ioBroker out", "z": "e4a2c4f8.21807", "name": "Wohnzimmerlicht", "topic": "hm-rpc.0.NEQ0388582.1.LEVEL", "ack": "false", "autoCreate": "false", "x": 1030, "y": 580, "wires": [] }, { "id": "41b38368.5942c4", "type": "amazon-echo-device", "z": "e4a2c4f8.21807", "name": "Wohnzimmerlicht", "topic": "", "x": 350, "y": 580, "wires": [ [ "4680a568.cf854c", "856de8a8.770a3" ] ] }, { "id": "eb052a73.ee8e6", "type": "link out", "z": "e4a2c4f8.21807", "name": "A", "links": [ "bea80e40.7c4d98", "865802b3.e302c" ], "x": 275, "y": 680, "wires": [] }, { "id": "4680a568.cf854c", "type": "function", "z": "e4a2c4f8.21807", "name": " Licht Wohnzimmer dimmen", "func": " var newMsg = { payload: msg.bri} ;\nreturn newMsg;", "outputs": 1, "noerr": 0, "x": 680, "y": 580, "wires": [ [ "dd433a99.b7c5b8" ] ] }, { "id": "856de8a8.770a3", "type": "switch", "z": "e4a2c4f8.21807", "name": "Schalter", "property": "payload", "propertyType": "msg", "rules": [ { "t": "eq", "v": "off", "vt": "str" } ], "checkall": "true", "repair": false, "outputs": 1, "x": 620, "y": 620, "wires": [ [ "a93bccb3.8a30f8" ] ] }, { "id": "a93bccb3.8a30f8", "type": "function", "z": "e4a2c4f8.21807", "name": "false", "func": "msg.payload = false;\nreturn msg; ", "outputs": 1, "noerr": 0, "x": 790, "y": 620, "wires": [ [ "dd433a99.b7c5b8" ] ] } ]
2ter Flow
[ { "id": "31a428f9.4dff98", "type": "tab", "label": "Rollos Szenen", "disabled": false, "info": "" }, { "id": "517a940d.a188ec", "type": "ioBroker out", "z": "31a428f9.4dff98", "name": "RollosKomplett", "topic": "scene.0.RollosKomplettSzene", "ack": "false", "autoCreate": "false", "x": 1020, "y": 80, "wires": [] }, { "id": "a47e2557.68df18", "type": "ioBroker out", "z": "31a428f9.4dff98", "name": "RollosSicherheit", "topic": "scene.0.RollosSicherheit", "ack": "false", "autoCreate": "false", "x": 1022, "y": 140, "wires": [] }, { "id": "4c64d1d3.f28098", "type": "ioBroker out", "z": "31a428f9.4dff98", "name": "RollosTeilweise", "topic": "scene.0.RollosTeilweiseSzene", "ack": "false", "autoCreate": "false", "x": 1022, "y": 200, "wires": [] }, { "id": "d6d726a2.9c2e58", "type": "ioBroker out", "z": "31a428f9.4dff98", "name": "RollosVorne", "topic": "scene.0.RollosVorne", "ack": "false", "autoCreate": "false", "x": 1012, "y": 260, "wires": [] }, { "id": "6022d802.ed3588", "type": "ioBroker out", "z": "31a428f9.4dff98", "name": "RollosHinten", "topic": "scene.0.RollosHinten", "ack": "false", "autoCreate": "false", "x": 1012, "y": 320, "wires": [] }, { "id": "38d50c3e.33b79c", "type": "amazon-echo-device", "z": "31a428f9.4dff98", "name": "RollosKomplett", "topic": "", "x": 340, "y": 80, "wires": [ [ "d288da5b.95e368" ] ] }, { "id": "db24460e.216b68", "type": "amazon-echo-device", "z": "31a428f9.4dff98", "name": "RollosSicherheit", "topic": "", "x": 340, "y": 140, "wires": [ [ "2e0f4669.423e6a" ] ] }, { "id": "c05c1651.1ae1", "type": "amazon-echo-device", "z": "31a428f9.4dff98", "name": "RollosTeilweise", "topic": "", "x": 340, "y": 200, "wires": [ [ "da938672.fe2de" ] ] }, { "id": "da45733a.a6639", "type": "amazon-echo-device", "z": "31a428f9.4dff98", "name": "RollosVorne", "topic": "", "x": 330, "y": 260, "wires": [ [ "b64ea2a0.86c138" ] ] }, { "id": "42d8732c.cf0574", "type": "amazon-echo-device", "z": "31a428f9.4dff98", "name": "RollosHinten", "topic": "", "x": 330, "y": 320, "wires": [ [ "ab25a109.5ba13" ] ] }, { "id": "d288da5b.95e368", "type": "switch", "z": "31a428f9.4dff98", "name": "Schalter", "property": "payload", "propertyType": "msg", "rules": [ { "t": "eq", "v": "on", "vt": "str" }, { "t": "eq", "v": "off", "vt": "str" } ], "checkall": "true", "repair": false, "outputs": 2, "x": 600, "y": 80, "wires": [ [ "517a940d.a188ec" ], [ "e29b946e.dbf058" ] ] }, { "id": "e29b946e.dbf058", "type": "function", "z": "31a428f9.4dff98", "name": "false", "func": "msg.payload = false;\nreturn msg; ", "outputs": 1, "noerr": 0, "x": 790, "y": 100, "wires": [ [ "517a940d.a188ec" ] ] }, { "id": "2e0f4669.423e6a", "type": "switch", "z": "31a428f9.4dff98", "name": "Schalter", "property": "payload", "propertyType": "msg", "rules": [ { "t": "eq", "v": "on", "vt": "str" }, { "t": "eq", "v": "off", "vt": "str" } ], "checkall": "true", "repair": false, "outputs": 2, "x": 600, "y": 140, "wires": [ [ "a47e2557.68df18" ], [ "3fbca9a3.c6c8ce" ] ] }, { "id": "3fbca9a3.c6c8ce", "type": "function", "z": "31a428f9.4dff98", "name": "false", "func": "msg.payload = false;\nreturn msg; ", "outputs": 1, "noerr": 0, "x": 790, "y": 160, "wires": [ [ "a47e2557.68df18" ] ] }, { "id": "da938672.fe2de", "type": "switch", "z": "31a428f9.4dff98", "name": "Schalter", "property": "payload", "propertyType": "msg", "rules": [ { "t": "eq", "v": "on", "vt": "str" }, { "t": "eq", "v": "off", "vt": "str" } ], "checkall": "true", "repair": false, "outputs": 2, "x": 600, "y": 200, "wires": [ [ "4c64d1d3.f28098" ], [ "d02fa067.34b288" ] ] }, { "id": "d02fa067.34b288", "type": "function", "z": "31a428f9.4dff98", "name": "false", "func": "msg.payload = false;\nreturn msg; ", "outputs": 1, "noerr": 0, "x": 790, "y": 220, "wires": [ [ "4c64d1d3.f28098" ] ] }, { "id": "b64ea2a0.86c138", "type": "switch", "z": "31a428f9.4dff98", "name": "Schalter", "property": "payload", "propertyType": "msg", "rules": [ { "t": "eq", "v": "on", "vt": "str" }, { "t": "eq", "v": "off", "vt": "str" } ], "checkall": "true", "repair": false, "outputs": 2, "x": 600, "y": 260, "wires": [ [ "d6d726a2.9c2e58" ], [ "1108900e.e2abb8" ] ] }, { "id": "1108900e.e2abb8", "type": "function", "z": "31a428f9.4dff98", "name": "false", "func": "msg.payload = false;\nreturn msg; ", "outputs": 1, "noerr": 0, "x": 790, "y": 280, "wires": [ [ "d6d726a2.9c2e58" ] ] }, { "id": "ab25a109.5ba13", "type": "switch", "z": "31a428f9.4dff98", "name": "Schalter", "property": "payload", "propertyType": "msg", "rules": [ { "t": "eq", "v": "on", "vt": "str" }, { "t": "eq", "v": "off", "vt": "str" } ], "checkall": "true", "repair": false, "outputs": 2, "x": 600, "y": 320, "wires": [ [ "6022d802.ed3588" ], [ "d35dce3d.be6368" ] ] }, { "id": "bea80e40.7c4d98", "type": "link in", "z": "31a428f9.4dff98", "name": "Amazon Echo", "links": [ "eb052a73.ee8e6" ], "x": 90, "y": 200, "wires": [ [ "38d50c3e.33b79c", "db24460e.216b68", "c05c1651.1ae1", "da45733a.a6639", "42d8732c.cf0574" ] ], "l": true }, { "id": "d35dce3d.be6368", "type": "function", "z": "31a428f9.4dff98", "name": "false", "func": "msg.payload = false;\nreturn msg; ", "outputs": 1, "noerr": 0, "x": 790, "y": 340, "wires": [ [ "6022d802.ed3588" ] ] } ]
-
Da inzwischen ja noch ein paar Fragen über die FB Gruppe kommen hier mal meine Scripte, aktuell getestet: heute
Rollladensteuerung hoch/runter/prozent
Einstellung "Ändern Node"
Einstellung "Umrechnen Node"
Kompletter Node[ { "id": "34e5139e.1991ec", "type": "tab", "label": "Rollläden", "disabled": false, "info": "" }, { "id": "336f56e6.440e5a", "type": "ioBroker out", "z": "34e5139e.1991ec", "name": "Position", "topic": "###.Shutter.Position", "ack": "false", "autoCreate": "false", "x": 1200, "y": 80, "wires": [] }, { "id": "d88bcbf6.119d58", "type": "debug", "z": "34e5139e.1991ec", "name": "", "active": true, "tosidebar": true, "console": false, "tostatus": false, "complete": "false", "x": 1210, "y": 140, "wires": [] }, { "id": "c98bc01b.feedc", "type": "comment", "z": "34e5139e.1991ec", "name": "--------------------------------------------- Rollläden ---------------------------------------------", "info": "", "x": 270, "y": 20, "wires": [] }, { "id": "6ced50a5.0fd1", "type": "link in", "z": "34e5139e.1991ec", "name": "", "links": [ "d3848500.c9e458" ], "x": 15, "y": 140, "wires": [ [ "ebedec36.22779" ] ] }, { "id": "794af8c0.51f4b8", "type": "function", "z": "34e5139e.1991ec", "name": "Umrechnen", "func": "msg.bri = msg.bri / 255 * 100\nmsg.bri = Math.round (msg.bri)\nvar newMsg = { payload: msg.bri };\nreturn newMsg;", "outputs": 1, "noerr": 0, "x": 630, "y": 140, "wires": [ [ "336f56e6.440e5a", "d88bcbf6.119d58" ] ] }, { "id": "6b8e1bc1.a8bd54", "type": "change", "z": "34e5139e.1991ec", "name": "", "rules": [ { "t": "change", "p": "payload", "pt": "msg", "from": "on", "fromt": "str", "to": "0", "tot": "num" }, { "t": "change", "p": "payload", "pt": "msg", "from": "off", "fromt": "str", "to": "100", "tot": "num" } ], "action": "", "property": "", "from": "", "to": "", "reg": false, "x": 640, "y": 80, "wires": [ [ "336f56e6.440e5a", "d88bcbf6.119d58" ] ] }, { "id": "ebedec36.22779", "type": "amazon-echo-device", "z": "34e5139e.1991ec", "name": "Rollladen Küche", "topic": "", "x": 240, "y": 140, "wires": [ [ "794af8c0.51f4b8" ] ] }, { "id": "5672c96c.749488", "type": "amazon-echo-device", "z": "34e5139e.1991ec", "name": "Rollladen Küche hoch/runter", "topic": "", "x": 280, "y": 80, "wires": [ [ "6b8e1bc1.a8bd54" ] ] }, { "id": "d35f6ca0.6475", "type": "link in", "z": "34e5139e.1991ec", "name": "", "links": [ "d3848500.c9e458" ], "x": 15, "y": 80, "wires": [ [ "5672c96c.749488" ] ] } ]
Einstellungen Alexa Routine für hoch/runter:
je 1 Routine anlegen die den Node Rolladen Küche hoch/runter anspricht. Einmal mit "eingeschaltet", einmal mit "ausgeschaltet". Hier wird dann komplett hoch oder runter gefahren (0 oder 100)Prozentstop
"Alexa, Rolladen Küche auf 75 Prozent" fährt den Rolladen Küche auf die gewünschte Prozentzahl -
Heizungssteuerung
Einstellungen "Umrechnen"
*Kompletter Node"[ { "id": "c3515237.58431", "type": "tab", "label": "Heizung", "disabled": false, "info": "" }, { "id": "67b19122.76202", "type": "amazon-echo-device", "z": "c3515237.58431", "name": "Heizung im Wohnzimmer", "topic": "", "x": 190, "y": 80, "wires": [ [ "135711bb.0c92fe" ] ] }, { "id": "850738de.4093f8", "type": "link in", "z": "c3515237.58431", "name": "", "links": [ "d3848500.c9e458" ], "x": 15, "y": 80, "wires": [ [ "67b19122.76202" ] ] }, { "id": "4b5fbb54.8767e4", "type": "debug", "z": "c3515237.58431", "name": "", "active": true, "tosidebar": true, "console": false, "tostatus": false, "complete": "payload", "targetType": "msg", "x": 1050, "y": 120, "wires": [] }, { "id": "135711bb.0c92fe", "type": "function", "z": "c3515237.58431", "name": "Umrechnen", "func": "msg.bri = msg.bri / 255 * 100\nmsg.bri = Math.round (msg.bri)\nvar newMsg = { payload: msg.bri };\nreturn newMsg;", "outputs": 1, "noerr": 0, "x": 450, "y": 80, "wires": [ [ "4b5fbb54.8767e4", "73d20858.414b68" ] ] }, { "id": "73d20858.414b68", "type": "ioBroker out", "z": "c3515237.58431", "name": "XXX:2.SET_TEMPERATURE", "topic": "XXX.2.SET_TEMPERATURE", "ack": "true", "autoCreate": "false", "x": 960, "y": 80, "wires": [] }, { "id": "9f6f8000.353d1", "type": "comment", "z": "c3515237.58431", "name": "Thermostat Wohnzimmer", "info": "Thermostat Wohnzimmer", "x": 850, "y": 120, "wires": [] }, { "id": "a5f58292.eb11", "type": "comment", "z": "c3515237.58431", "name": "--------------------------------------------- HEIZUNG ---------------------------------------------", "info": "", "x": 270, "y": 20, "wires": [] } ]
-
Hallo, ich habe mittlerweile auch meine Lampen und Dimmer steuerbar. Danke an die ganze Vorarbeit!
Mein Frage:
Ist es möglich, eine ioBroker Variable (Object) mit Alexa zu steuern?Meine Vorstellung:
Gerät liefert über msg.payload --> ON und OFF.
Ich möchte aus ON eine 3
und aus OFF eine 0 machen.- Wie bekomme ich es hin, dass in der Alexa-APP bei einer 3 auch der Schalter der Lampe auf EIN steht,
bei ungleich 3 aber auf AUS gesetzt wird.
- Wie bekomme ich es hin, dass in der Alexa-APP bei einer 3 auch der Schalter der Lampe auf EIN steht,
-
@MarEhg
Also aus ON eine 3 bzw. OFF eine 0 geht mit dem Change Node und dies dann an ioBroker weitergebenZu 1.: was meinst du mit Alexa-App?
-
@TorbenNW Das mit den On zu 3 und Off zu 0 habe ich natürlich hinbekommen.
Die Variable wird auch entsprechend abgeändert. Wenn ich aber die Variable über einen anderen Weg
verändere, wird in der Alexa-App auf meinem MobilePhone der Status nicht korrigiert.
Da ja immer Lampen als Geräte gefunden werden, wäre ein wert ungleich 3 für dieses Gerät AUS.
Ändere ich den Wert z.B. über mein Tablet, bleibt die 'Lampe' auf AN.Alexa-App = AmazonAlexa App auf meinem iPhone
-
Ist hier niemand mehr aktiv?
-
@MarEhg doch aber ich verstehe nich, wieso man eine weiteren Datenpunkt so anlegen sollte
Ansonsten einen Blockly erstellen der auf die 3 bei Änderung triggert und dann entsprechend das on/off wieder ändert -
Hallo Gemeinde,
seit meinem heutigen Update node.js 10.19.0. funktioniert Eure schöne Anleitung mit node-red-contrib-amazon-echo nicht mehr.
Es besteht keine Verbindung mehr zu Alexa.
Hat jemand eine Ahnung, was man tun kann? Liegt das an der Palette?
-
Fixer drüber laufen lassen
-
Okay, werde ich dann gleich einmal probieren.
Danke
-
Okay super. Das hat funktioniert, aber ein anderes Problem ist noch offen.
Der tab-javascript wird nicht angezeigt, wenn ich allerdings den admin auf "http" einstelle, funktioniert es. Unter "https" geht es nicht.
Aber ich glaube das gehört in eine andere Rubrik. Werde es unter Error/Bug noch einmal schreiben. -
Sorry wenn ich da nochmal nachhake, ich stehe kurz vor einer Neueinrichtung.
Wenn ich es richtig verstanden habe muss ich für den cloudfreien Betrieb das Node "contrib-amazon-echo" verwenden ?!?
Was ich nicht mehr neueren Datums erlesen konnte - funzt denn ein dot3 oder muss ich einen Echo/Dot Gen2 (ohne +) kaufen ? -
@Brokinger
Ja contrib-amazon-echo ist richtig und bei mir funzen die dot3 -
@Brokinger
Ich habe es auch endlich die Kommunikation am Laufen mit Echo-Dot3.Gen und Node "contrib-amazon-echo".
Lösungsansatz, der Node-red / Adapter bekommt root-Rechte.Für mich als Neuling (seit 2Wochen) war es nicht einfach. Ich habe hier viel ..viel lesen müssen, aber gut
Kurze Hilfestellung für alle Gleich-Gesinnten
Ich habe mich hier nach orientiert, hatte mir sehr geholfen:
https://github.com/ioBroker/ioBroker.node-red/issues/47Folgendes habe ich gemacht:
- Den "fixer laufen lassen
https://forum.iobroker.net/topic/20211/iobroker-installation-fixer-beta-verfügbar - Node.js aktualisiert auf 12.16.1
- NPM aktualisier auf 6.14.2
- Den "fixer laufen lassen
-
Hallo Ihr Beiden,
Vielen Dank für die Rückantworten.
Ich habe heute meine Dot3.Gen auch erhalten und sogleich damit begonnen über IoBroker und Node-red eine Steckdose einzubinden und zu schalten, es geht - TOP !
@SmartiesHome: Danke für den github-Link, nach dem fixer waren Erfolge zu verzeichnen
Was mir allerdings etwas Sorgen macht, so ganz out off Cloud ist das Ganze aufgrund der App doch nicht.
Werd mich noch entscheiden müssen, ob ich den Weg so weiter gehe. -
Welche App meinst du?
Bis auf den Trigger bei Amazon hast du alles selbst unter Kontrolle was passiert. Die komplette Datenverarbeitung bleibt bei dir Zuhause.