Skip to content
  • Home
  • Aktuell
  • Tags
  • 0 Ungelesen 0
  • Kategorien
  • Unreplied
  • Beliebt
  • GitHub
  • Docu
  • Hilfe
Skins
  • Light
  • Brite
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Standard: (Kein Skin)
  • Kein Skin
Einklappen
ioBroker Logo

Community Forum

donate donate
  1. ioBroker Community Home
  2. Deutsch
  3. Skripten / Logik
  4. Node-Red
  5. (gelöst) Node-Red "Alexa local" nicht mehr möglich

NEWS

  • UPDATE 31.10.: Amazon Alexa - ioBroker Skill läuft aus ?
    apollon77A
    apollon77
    48
    3
    8.9k

  • Monatsrückblick – September 2025
    BluefoxB
    Bluefox
    13
    1
    2.3k

  • Neues Video "KI im Smart Home" - ioBroker plus n8n
    BluefoxB
    Bluefox
    16
    1
    3.4k

(gelöst) Node-Red "Alexa local" nicht mehr möglich

Geplant Angeheftet Gesperrt Verschoben Node-Red
86 Beiträge 10 Kommentatoren 12.6k Aufrufe 8 Watching
  • Älteste zuerst
  • Neuste zuerst
  • Meiste Stimmen
Antworten
  • In einem neuen Thema antworten
Anmelden zum Antworten
Dieses Thema wurde gelöscht. Nur Nutzer mit entsprechenden Rechten können es sehen.
  • J Jan1

    @voodoo78
    Jou da fehlt ja auch das Dimmen.
    Da packst noch eine Funktions Node :

    [
        {
            "id": "87490100.c5a74",
            "type": "function",
            "z": "978f1573.079698",
            "name": "Dimmer",
            "func": " \nvar newMsg = { payload: msg.bri } ;\n\nreturn newMsg;local ",
            "outputs": 1,
            "noerr": 0,
            "x": 500,
            "y": 180,
            "wires": [
                [
                    "735f0f28.d4e4e8"
                ]
            ]
        }
    ]
    

    und die dann auf den DP was die HUE dimmt.

    So ungefähr:
    5e6180a6-254f-4624-82ad-fd92c7fcbab8-grafik.png

    V Offline
    V Offline
    voodoo78
    schrieb am zuletzt editiert von
    #76

    @Jan1
    So ganz klar sind mir die Zeilen 3, 5 und 14 noch nicht.

    J 1 Antwort Letzte Antwort
    0
    • V voodoo78

      @Jan1
      So ganz klar sind mir die Zeilen 3, 5 und 14 noch nicht.

      J Offline
      J Offline
      Jan1
      schrieb am zuletzt editiert von Jan1
      #77

      @voodoo78
      klicke in Node Red oben rechts aufs Menü, Import und Zwischenablage, dann kopierst das oben einfach rein und hast die fertige Funktions Node.

      Das ergibt die orangene Node "Dimmer"

      V 1 Antwort Letzte Antwort
      0
      • J Jan1

        @voodoo78
        klicke in Node Red oben rechts aufs Menü, Import und Zwischenablage, dann kopierst das oben einfach rein und hast die fertige Funktions Node.

        Das ergibt die orangene Node "Dimmer"

        V Offline
        V Offline
        voodoo78
        schrieb am zuletzt editiert von
        #78

        @Jan1
        Jetzt bekomme ich Fehlermeldungen, dass die übermittelten Werte zu hoch sind.

        174f45a8-32c1-41fa-b9e4-51ec6981a681-image.png

        J 1 Antwort Letzte Antwort
        0
        • V voodoo78

          @Jan1
          Jetzt bekomme ich Fehlermeldungen, dass die übermittelten Werte zu hoch sind.

          174f45a8-32c1-41fa-b9e4-51ec6981a681-image.png

          J Offline
          J Offline
          Jan1
          schrieb am zuletzt editiert von
          #79

          @voodoo78
          zeig mal den Flow wie jetzt aussieht und die DPs die Du steuern willst.

          V 1 Antwort Letzte Antwort
          0
          • J Jan1

            @voodoo78
            zeig mal den Flow wie jetzt aussieht und die DPs die Du steuern willst.

            V Offline
            V Offline
            voodoo78
            schrieb am zuletzt editiert von voodoo78
            #80

            @Jan1
            Das Problem ist, dass über das Amazon Echo Device ein Wert zwischen 1 und 254 weitergegeben wird, das Object aber Werte zwischen 0 und 100 erwartet.

            J 1 Antwort Letzte Antwort
            0
            • V voodoo78

              @Jan1
              Das Problem ist, dass über das Amazon Echo Device ein Wert zwischen 1 und 254 weitergegeben wird, das Object aber Werte zwischen 0 und 100 erwartet.

              J Offline
              J Offline
              Jan1
              schrieb am zuletzt editiert von
              #81

              @voodoo78
              OK, dann bin ich raus, weil ich mich damit nicht auskenne.
              1-255 sind eben normale Dimmwerte und wie man die dann so skaliert, dass daraus 0-100 wird, weiß ich nicht.

              1 Antwort Letzte Antwort
              0
              • V Offline
                V Offline
                voodoo78
                schrieb am zuletzt editiert von
                #82

                So, jetzt läuft alles! :+1:

                daa44057-4266-48b8-94e5-2a46d004a158-image.png

                [
                    {
                        "id": "5df1cdf9.12a114",
                        "type": "amazon-echo-hub",
                        "z": "485361c3.89313",
                        "port": "8080",
                        "enableinput": false,
                        "x": 130,
                        "y": 160,
                        "wires": [
                            [
                                "d85d3a2c.2a4718"
                            ]
                        ]
                    },
                    {
                        "id": "d85d3a2c.2a4718",
                        "type": "amazon-echo-device",
                        "z": "485361c3.89313",
                        "name": "Bürolicht",
                        "topic": "",
                        "x": 320,
                        "y": 160,
                        "wires": [
                            [
                                "4ee1947d.ea686c"
                            ]
                        ]
                    },
                    {
                        "id": "97d67de7.6ebf1",
                        "type": "ioBroker out",
                        "z": "485361c3.89313",
                        "name": "Brightness",
                        "topic": "zigbee.0.0017880102a2d093.brightness",
                        "ack": "false",
                        "autoCreate": "false",
                        "x": 790,
                        "y": 120,
                        "wires": []
                    },
                    {
                        "id": "780047d.93fc5b8",
                        "type": "function",
                        "z": "485361c3.89313",
                        "name": "Dimmer",
                        "func": "var newMsg = { payload: Math.round (msg.bri*100/254) } ;\nreturn newMsg;",
                        "outputs": 1,
                        "noerr": 0,
                        "x": 620,
                        "y": 120,
                        "wires": [
                            [
                                "97d67de7.6ebf1"
                            ]
                        ]
                    },
                    {
                        "id": "ab21ca8a.670b88",
                        "type": "ioBroker out",
                        "z": "485361c3.89313",
                        "name": "Switch state",
                        "topic": "zigbee.0.0017880102a2d093.state",
                        "ack": "false",
                        "autoCreate": "false",
                        "x": 850,
                        "y": 200,
                        "wires": []
                    },
                    {
                        "id": "6bc055cb.09d2cc",
                        "type": "change",
                        "z": "485361c3.89313",
                        "name": "on/off -> true/false",
                        "rules": [
                            {
                                "t": "change",
                                "p": "payload",
                                "pt": "msg",
                                "from": "on",
                                "fromt": "str",
                                "to": "true",
                                "tot": "bool"
                            },
                            {
                                "t": "change",
                                "p": "payload",
                                "pt": "msg",
                                "from": "off",
                                "fromt": "str",
                                "to": "false",
                                "tot": "bool"
                            }
                        ],
                        "action": "",
                        "property": "",
                        "from": "",
                        "to": "",
                        "reg": false,
                        "x": 650,
                        "y": 200,
                        "wires": [
                            [
                                "ab21ca8a.670b88"
                            ]
                        ]
                    },
                    {
                        "id": "4ee1947d.ea686c",
                        "type": "switch",
                        "z": "485361c3.89313",
                        "name": "on/off",
                        "property": "payload",
                        "propertyType": "msg",
                        "rules": [
                            {
                                "t": "eq",
                                "v": "on",
                                "vt": "str"
                            },
                            {
                                "t": "eq",
                                "v": "off",
                                "vt": "str"
                            }
                        ],
                        "checkall": "true",
                        "repair": false,
                        "outputs": 2,
                        "x": 470,
                        "y": 160,
                        "wires": [
                            [
                                "780047d.93fc5b8",
                                "6bc055cb.09d2cc"
                            ],
                            [
                                "6bc055cb.09d2cc"
                            ]
                        ]
                    }
                ]
                
                J 1 Antwort Letzte Antwort
                1
                • V voodoo78

                  So, jetzt läuft alles! :+1:

                  daa44057-4266-48b8-94e5-2a46d004a158-image.png

                  [
                      {
                          "id": "5df1cdf9.12a114",
                          "type": "amazon-echo-hub",
                          "z": "485361c3.89313",
                          "port": "8080",
                          "enableinput": false,
                          "x": 130,
                          "y": 160,
                          "wires": [
                              [
                                  "d85d3a2c.2a4718"
                              ]
                          ]
                      },
                      {
                          "id": "d85d3a2c.2a4718",
                          "type": "amazon-echo-device",
                          "z": "485361c3.89313",
                          "name": "Bürolicht",
                          "topic": "",
                          "x": 320,
                          "y": 160,
                          "wires": [
                              [
                                  "4ee1947d.ea686c"
                              ]
                          ]
                      },
                      {
                          "id": "97d67de7.6ebf1",
                          "type": "ioBroker out",
                          "z": "485361c3.89313",
                          "name": "Brightness",
                          "topic": "zigbee.0.0017880102a2d093.brightness",
                          "ack": "false",
                          "autoCreate": "false",
                          "x": 790,
                          "y": 120,
                          "wires": []
                      },
                      {
                          "id": "780047d.93fc5b8",
                          "type": "function",
                          "z": "485361c3.89313",
                          "name": "Dimmer",
                          "func": "var newMsg = { payload: Math.round (msg.bri*100/254) } ;\nreturn newMsg;",
                          "outputs": 1,
                          "noerr": 0,
                          "x": 620,
                          "y": 120,
                          "wires": [
                              [
                                  "97d67de7.6ebf1"
                              ]
                          ]
                      },
                      {
                          "id": "ab21ca8a.670b88",
                          "type": "ioBroker out",
                          "z": "485361c3.89313",
                          "name": "Switch state",
                          "topic": "zigbee.0.0017880102a2d093.state",
                          "ack": "false",
                          "autoCreate": "false",
                          "x": 850,
                          "y": 200,
                          "wires": []
                      },
                      {
                          "id": "6bc055cb.09d2cc",
                          "type": "change",
                          "z": "485361c3.89313",
                          "name": "on/off -> true/false",
                          "rules": [
                              {
                                  "t": "change",
                                  "p": "payload",
                                  "pt": "msg",
                                  "from": "on",
                                  "fromt": "str",
                                  "to": "true",
                                  "tot": "bool"
                              },
                              {
                                  "t": "change",
                                  "p": "payload",
                                  "pt": "msg",
                                  "from": "off",
                                  "fromt": "str",
                                  "to": "false",
                                  "tot": "bool"
                              }
                          ],
                          "action": "",
                          "property": "",
                          "from": "",
                          "to": "",
                          "reg": false,
                          "x": 650,
                          "y": 200,
                          "wires": [
                              [
                                  "ab21ca8a.670b88"
                              ]
                          ]
                      },
                      {
                          "id": "4ee1947d.ea686c",
                          "type": "switch",
                          "z": "485361c3.89313",
                          "name": "on/off",
                          "property": "payload",
                          "propertyType": "msg",
                          "rules": [
                              {
                                  "t": "eq",
                                  "v": "on",
                                  "vt": "str"
                              },
                              {
                                  "t": "eq",
                                  "v": "off",
                                  "vt": "str"
                              }
                          ],
                          "checkall": "true",
                          "repair": false,
                          "outputs": 2,
                          "x": 470,
                          "y": 160,
                          "wires": [
                              [
                                  "780047d.93fc5b8",
                                  "6bc055cb.09d2cc"
                              ],
                              [
                                  "6bc055cb.09d2cc"
                              ]
                          ]
                      }
                  ]
                  
                  J Offline
                  J Offline
                  Jan1
                  schrieb am zuletzt editiert von Jan1
                  #83

                  @voodoo78
                  Hast Dir das selber aus dem Ärmel geschüttelt? Wenn's fertig ist, sieht es immer so einfach und logisch aus:slightly_smiling_face:

                  Kommt gleich in die Bibliothek, falls ich das mal brauch.

                  V 1 Antwort Letzte Antwort
                  0
                  • J Jan1

                    @voodoo78
                    Hast Dir das selber aus dem Ärmel geschüttelt? Wenn's fertig ist, sieht es immer so einfach und logisch aus:slightly_smiling_face:

                    Kommt gleich in die Bibliothek, falls ich das mal brauch.

                    V Offline
                    V Offline
                    voodoo78
                    schrieb am zuletzt editiert von
                    #84

                    @Jan1
                    Ja, ich habe bloß mal einen Denkanstoß gebraucht.

                    J 1 Antwort Letzte Antwort
                    0
                    • V voodoo78

                      @Jan1
                      Ja, ich habe bloß mal einen Denkanstoß gebraucht.

                      J Offline
                      J Offline
                      Jan1
                      schrieb am zuletzt editiert von Jan1
                      #85

                      @voodoo78
                      dann plage ich Dich gleich mal weiter.
                      Wie muss das aussehen, wenn man am Ausgang nur 0-3 haben möchte? 0 muss nicht unbedingt sein, 1-3 schon.

                      OK, hab auch ein Hirn und mal nachgedacht:smirk:
                      Ergebnis sieht so aus:

                      var newMsg = { payload: Math.round (msg.bri/3) } ;
                      return newMsg;
                      
                      1 Antwort Letzte Antwort
                      0
                      • R Offline
                        R Offline
                        robudus
                        schrieb am zuletzt editiert von
                        #86

                        So klappt es mit Node Red bei mir. Mit whitemode und RGB und Helligkeit bei Milight LEDs

                        2019-11-16 14_49_40-Microsoft Store.png

                        
                        
                        [
                        
                            {
                        
                                "id": "bb6a24a9.7a0648",
                        
                                "type": "tab",
                        
                                "label": "Flow 2",
                        
                                "disabled": false,
                        
                                "info": ""
                        
                            },
                        
                            {
                        
                                "id": "4edc288f.fb8d2",
                        
                                "type": "ioBroker out",
                        
                                "z": "bb6a24a9.7a0648",
                        
                                "name": "Zone 1 ON",
                        
                                "topic": "milight.0.zone1.on",
                        
                                "ack": "false",
                        
                                "autoCreate": "false",
                        
                                "x": 870,
                        
                                "y": 340,
                        
                                "wires": []
                        
                            },
                        
                            {
                        
                                "id": "c7a3f1a9.66d89",
                        
                                "type": "ioBroker out",
                        
                                "z": "bb6a24a9.7a0648",
                        
                                "name": "Zone 1 OFF",
                        
                                "topic": "milight.0.zone1.off",
                        
                                "ack": "false",
                        
                                "autoCreate": "false",
                        
                                "x": 1570,
                        
                                "y": 460,
                        
                                "wires": []
                        
                            },
                        
                            {
                        
                                "id": "b32b2e08.f13fa",
                        
                                "type": "amazon-echo-device",
                        
                                "z": "bb6a24a9.7a0648",
                        
                                "name": "Led Licht",
                        
                                "topic": "Led Licht",
                        
                                "x": 460,
                        
                                "y": 220,
                        
                                "wires": [
                        
                                    [
                        
                                        "eebe38ee.e7fba8"
                        
                                    ]
                        
                                ]
                        
                            },
                        
                            {
                        
                                "id": "972a82a4.7286a",
                        
                                "type": "change",
                        
                                "z": "bb6a24a9.7a0648",
                        
                                "name": "",
                        
                                "rules": [
                        
                                    {
                        
                                        "t": "change",
                        
                                        "p": "payload",
                        
                                        "pt": "msg",
                        
                                        "from": "off",
                        
                                        "fromt": "str",
                        
                                        "to": "true",
                        
                                        "tot": "str"
                        
                                    }
                        
                                ],
                        
                                "action": "",
                        
                                "property": "",
                        
                                "from": "",
                        
                                "to": "",
                        
                                "reg": false,
                        
                                "x": 900,
                        
                                "y": 400,
                        
                                "wires": [
                        
                                    [
                        
                                        "c7a3f1a9.66d89"
                        
                                    ]
                        
                                ]
                        
                            },
                        
                            {
                        
                                "id": "eebe38ee.e7fba8",
                        
                                "type": "switch",
                        
                                "z": "bb6a24a9.7a0648",
                        
                                "name": "",
                        
                                "property": "payload",
                        
                                "propertyType": "msg",
                        
                                "rules": [
                        
                                    {
                        
                                        "t": "eq",
                        
                                        "v": "on",
                        
                                        "vt": "str"
                        
                                    },
                        
                                    {
                        
                                        "t": "eq",
                        
                                        "v": "off",
                        
                                        "vt": "str"
                        
                                    }
                        
                                ],
                        
                                "checkall": "true",
                        
                                "repair": false,
                        
                                "outputs": 2,
                        
                                "x": 640,
                        
                                "y": 240,
                        
                                "wires": [
                        
                                    [
                        
                                        "4edc288f.fb8d2",
                        
                                        "feaa5ed5.336b9",
                        
                                        "47531e52.0c6bb8",
                        
                                        "d1daa37a.6f41a"
                        
                                    ],
                        
                                    [
                        
                                        "972a82a4.7286a"
                        
                                    ]
                        
                                ]
                        
                            },
                        
                            {
                        
                                "id": "feaa5ed5.336b9",
                        
                                "type": "function",
                        
                                "z": "bb6a24a9.7a0648",
                        
                                "name": "Dimmer",
                        
                                "func": "var newMsg = { payload: Math.round (msg.bri*100/254) } ;\nreturn newMsg;",
                        
                                "outputs": 1,
                        
                                "noerr": 0,
                        
                                "x": 840,
                        
                                "y": 160,
                        
                                "wires": [
                        
                                    [
                        
                                        "99fac24d.8cb9"
                        
                                    ]
                        
                                ]
                        
                            },
                        
                            {
                        
                                "id": "99fac24d.8cb9",
                        
                                "type": "ioBroker out",
                        
                                "z": "bb6a24a9.7a0648",
                        
                                "name": "Zone 1 Brightness",
                        
                                "topic": "milight.0.zone1.brightness",
                        
                                "ack": "false",
                        
                                "autoCreate": "true",
                        
                                "x": 1050,
                        
                                "y": 160,
                        
                                "wires": []
                        
                            },
                        
                            {
                        
                                "id": "ffe043eb.210e5",
                        
                                "type": "ioBroker out",
                        
                                "z": "bb6a24a9.7a0648",
                        
                                "name": "Zone 1 Color RGB",
                        
                                "topic": "milight.0.zone1.rgb",
                        
                                "ack": "false",
                        
                                "autoCreate": "false",
                        
                                "x": 1550,
                        
                                "y": 140,
                        
                                "wires": []
                        
                            },
                        
                            {
                        
                                "id": "3f9207a4.c2f028",
                        
                                "type": "amazon-echo-device",
                        
                                "z": "bb6a24a9.7a0648",
                        
                                "name": "Led Lampe",
                        
                                "topic": "Led Lampe",
                        
                                "x": 450,
                        
                                "y": 280,
                        
                                "wires": [
                        
                                    [
                        
                                        "eebe38ee.e7fba8"
                        
                                    ]
                        
                                ]
                        
                            },
                        
                            {
                        
                                "id": "47531e52.0c6bb8",
                        
                                "type": "change",
                        
                                "z": "bb6a24a9.7a0648",
                        
                                "name": "",
                        
                                "rules": [
                        
                                    {
                        
                                        "t": "set",
                        
                                        "p": "payload",
                        
                                        "pt": "msg",
                        
                                        "to": "rgb",
                        
                                        "tot": "msg"
                        
                                    }
                        
                                ],
                        
                                "action": "",
                        
                                "property": "",
                        
                                "from": "",
                        
                                "to": "",
                        
                                "reg": false,
                        
                                "x": 1050,
                        
                                "y": 220,
                        
                                "wires": [
                        
                                    [
                        
                                        "ffe043eb.210e5"
                        
                                    ]
                        
                                ]
                        
                            },
                        
                            {
                        
                                "id": "b1acd561.57c8c8",
                        
                                "type": "ioBroker out",
                        
                                "z": "bb6a24a9.7a0648",
                        
                                "name": "Zone 1 Brightness",
                        
                                "topic": "milight.0.zone1.brightness",
                        
                                "ack": "false",
                        
                                "autoCreate": "true",
                        
                                "x": 1550,
                        
                                "y": 240,
                        
                                "wires": []
                        
                            },
                        
                            {
                        
                                "id": "d1daa37a.6f41a",
                        
                                "type": "function",
                        
                                "z": "bb6a24a9.7a0648",
                        
                                "name": "",
                        
                                "func": "var newMsg = { payload: Math.round (msg.bri*100/254) } ;\nvar new2Msg = {payload: true};\n\nif (msg.colormode == \"ct\") {\n   return [ null, new2Msg ];\n} else {\n   return [ newMsg, null ];\n}",
                        
                                "outputs": 2,
                        
                                "noerr": 0,
                        
                                "x": 1290,
                        
                                "y": 280,
                        
                                "wires": [
                        
                                    [
                        
                                        "b1acd561.57c8c8"
                        
                                    ],
                        
                                    [
                        
                                        "cdea20f1.8b3c98"
                        
                                    ]
                        
                                ]
                        
                            },
                        
                            {
                        
                                "id": "cdea20f1.8b3c98",
                        
                                "type": "ioBroker out",
                        
                                "z": "bb6a24a9.7a0648",
                        
                                "name": "Zone 1 White mode",
                        
                                "topic": "milight.0.zone1.whiteMode",
                        
                                "ack": "false",
                        
                                "autoCreate": "false",
                        
                                "x": 1520,
                        
                                "y": 340,
                        
                                "wires": []
                        
                            },
                        
                            {
                        
                                "id": "be63c33e.43c8f8",
                        
                                "type": "amazon-echo-hub",
                        
                                "z": "bb6a24a9.7a0648",
                        
                                "port": "80",
                        
                                "processinput": 0,
                        
                                "x": 220,
                        
                                "y": 220,
                        
                                "wires": [
                        
                                    [
                        
                                        "b32b2e08.f13fa",
                        
                                        "3f9207a4.c2f028"
                        
                                    ]
                        
                                ]
                        
                            }
                        
                        ]
                        
                        
                        1 Antwort Letzte Antwort
                        0
                        Antworten
                        • In einem neuen Thema antworten
                        Anmelden zum Antworten
                        • Älteste zuerst
                        • Neuste zuerst
                        • Meiste Stimmen


                        Support us

                        ioBroker
                        Community Adapters
                        Donate

                        701

                        Online

                        32.4k

                        Benutzer

                        81.6k

                        Themen

                        1.3m

                        Beiträge
                        Community
                        Impressum | Datenschutz-Bestimmungen | Nutzungsbedingungen | Einwilligungseinstellungen
                        ioBroker Community 2014-2025
                        logo
                        • Anmelden

                        • Du hast noch kein Konto? Registrieren

                        • Anmelden oder registrieren, um zu suchen
                        • Erster Beitrag
                          Letzter Beitrag
                        0
                        • Home
                        • Aktuell
                        • Tags
                        • Ungelesen 0
                        • Kategorien
                        • Unreplied
                        • Beliebt
                        • GitHub
                        • Docu
                        • Hilfe