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: ..amazon-echo Whitemode bei milight

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: ..amazon-echo Whitemode bei milight

Geplant Angeheftet Gesperrt Verschoben Node-Red
5 Beiträge 3 Kommentatoren 481 Aufrufe 3 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.
  • R Offline
    R Offline
    robudus
    schrieb am zuletzt editiert von robudus
    #1

    Hallo Zusammen,

    hier nochmal ein neuer Thread für das Problem in Node Red das Licht (LED) auf weiss zu schalten.
    Mittlerweile kann ich es aus und anmachen aber den Modus auf Whitemode zu stellen klappt noch nicht.

    Als Payload kommt bei Colomode entweder ct oder hs. hs bei Farben und ct bei weiss.
    Leider weiss ich noch nicht wie man zwei Werte abfragen kann. Im payload steht auch hs wenn die Lampe ausgemacht wird. Also müsste ich beides abfragen.

    Vielleicht gibt es jemanden der eine Idee hat wie man das lösen kann. Vielen Dank im Voraus.

    Grüsse ROBudus

    Folgende Payloads gibt es
    Alexa schalte Lampe auf weiss:
    2019-11-11 14_34_12-Window.png

    Alexa schalte Lampe auf rot:
    2019-11-11 14_35_01-Window.png

    Alexa schalte Lampe aus:
    2019-11-11 14_35_30-Window.png

    2019-11-11 14_29_27-Window.png

    [
        {
            "id": "fec817ae.a9b678",
            "type": "ioBroker out",
            "z": "7311df7b.5446d8",
            "name": "Zone 2 White mode",
            "topic": "milight.0.zone2.whiteMode",
            "ack": "false",
            "autoCreate": "false",
            "x": 980,
            "y": 440,
            "wires": []
        }
    ]
    
    1 Antwort Letzte Antwort
    0
    • R Offline
      R Offline
      robudus
      schrieb am zuletzt editiert von
      #2

      Hallo Zusammen,

      falls es jemanden interessiert. Anbei eine mögliche Lösung. Hier ist das Problem die Reihenfolge. Sobald man die Farbe ändert ändert sich die Helligkeit automatisch bei Milight. Ob es ein Bug oder Feature ist weiss ich nicht. Zumindestens klappt es so bei mir.

      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"
                  ]
              ]
          }
      ]
      
      H 1 Antwort Letzte Antwort
      0
      • R robudus

        Hallo Zusammen,

        falls es jemanden interessiert. Anbei eine mögliche Lösung. Hier ist das Problem die Reihenfolge. Sobald man die Farbe ändert ändert sich die Helligkeit automatisch bei Milight. Ob es ein Bug oder Feature ist weiss ich nicht. Zumindestens klappt es so bei mir.

        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"
                    ]
                ]
            }
        ]
        
        H Offline
        H Offline
        Hc-Yami
        schrieb am zuletzt editiert von
        #3

        @robudus Hey, man soll wohl in node.red so wenig Funktionen nutzen wie unbedingt notwendig.
        Für die Dimmfunktion kannst du den msg.payload auf msg.percentage setzen, da kommt dann die Prozentzahl für das Dimmen raus.

        30d0ce78-806e-4d69-aee3-bb7e4ae6ff52-grafik.png

        [
            {
                "id": "cb764199.c00bc8",
                "type": "tab",
                "label": "Test",
                "disabled": false,
                "info": ""
            },
            {
                "id": "4dfd955.b27b86c",
                "type": "amazon-echo-device",
                "z": "cb764199.c00bc8",
                "name": "Wandlampe",
                "topic": "",
                "x": 330,
                "y": 260,
                "wires": [
                    [
                        "1f97b65b.d5a67a",
                        "fd7fe915.92d258",
                        "7606ced.1830ab"
                    ]
                ]
            },
            {
                "id": "1f97b65b.d5a67a",
                "type": "switch",
                "z": "cb764199.c00bc8",
                "name": "switch 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": 590,
                "y": 260,
                "wires": [
                    [
                        "edc4c9f8.1d8ca8"
                    ],
                    [
                        "8098553a.8f04d"
                    ]
                ]
            },
            {
                "id": "edc4c9f8.1d8ca8",
                "type": "change",
                "z": "cb764199.c00bc8",
                "name": "true",
                "rules": [
                    {
                        "t": "set",
                        "p": "payload",
                        "pt": "msg",
                        "to": "true",
                        "tot": "bool"
                    }
                ],
                "action": "",
                "property": "",
                "from": "",
                "to": "",
                "reg": false,
                "x": 770,
                "y": 220,
                "wires": [
                    [
                        "8cbf523d.81073",
                        "2bd03324.3e960c"
                    ]
                ]
            },
            {
                "id": "8098553a.8f04d",
                "type": "change",
                "z": "cb764199.c00bc8",
                "name": "false",
                "rules": [
                    {
                        "t": "set",
                        "p": "payload",
                        "pt": "msg",
                        "to": "false",
                        "tot": "bool"
                    }
                ],
                "action": "",
                "property": "",
                "from": "",
                "to": "",
                "reg": false,
                "x": 770,
                "y": 300,
                "wires": [
                    [
                        "8cbf523d.81073",
                        "2bd03324.3e960c"
                    ]
                ]
            },
            {
                "id": "8cbf523d.81073",
                "type": "ioBroker out",
                "z": "cb764199.c00bc8",
                "name": "Wandlampe_Kugel",
                "topic": "yeelight-2.0.Rene-Yeelight-Kugel.control.power",
                "ack": "false",
                "autoCreate": "false",
                "x": 1290,
                "y": 220,
                "wires": []
            },
            {
                "id": "2bd03324.3e960c",
                "type": "ioBroker out",
                "z": "cb764199.c00bc8",
                "name": "Wandlampe_Wand",
                "topic": "yeelight-2.0.Rene-Yeelight-Wand.control.power",
                "ack": "false",
                "autoCreate": "false",
                "x": 1290,
                "y": 300,
                "wires": []
            },
            {
                "id": "fd7fe915.92d258",
                "type": "change",
                "z": "cb764199.c00bc8",
                "name": "msg.rgb",
                "rules": [
                    {
                        "t": "set",
                        "p": "payload",
                        "pt": "msg",
                        "to": "rgb",
                        "tot": "msg"
                    }
                ],
                "action": "",
                "property": "",
                "from": "",
                "to": "",
                "reg": false,
                "x": 580,
                "y": 400,
                "wires": [
                    [
                        "bbb8637e.4dc908"
                    ]
                ]
            },
            {
                "id": "408253f0.0d8534",
                "type": "ioBroker out",
                "z": "cb764199.c00bc8",
                "name": "Wandlampe_Kugel_rgb",
                "topic": "yeelight-2.0.Rene-Yeelight-Kugel.control.rgb",
                "ack": "false",
                "autoCreate": "false",
                "x": 1310,
                "y": 380,
                "wires": []
            },
            {
                "id": "bbb8637e.4dc908",
                "type": "color-convert",
                "z": "cb764199.c00bc8",
                "input": "rgb",
                "output": "hex",
                "outputType": "string",
                "scaleInput": false,
                "x": 730,
                "y": 400,
                "wires": [
                    [
                        "c05a8693.015e98"
                    ]
                ]
            },
            {
                "id": "81d8cbb9.9bcbb",
                "type": "ioBroker out",
                "z": "cb764199.c00bc8",
                "name": "Wandlampe_Wand_rgb",
                "topic": "yeelight-2.0.Rene-Yeelight-Wand.control.rgb",
                "ack": "false",
                "autoCreate": "false",
                "x": 1310,
                "y": 440,
                "wires": []
            },
            {
                "id": "7606ced.1830ab",
                "type": "change",
                "z": "cb764199.c00bc8",
                "name": "msg.percentage",
                "rules": [
                    {
                        "t": "set",
                        "p": "payload",
                        "pt": "msg",
                        "to": "percentage",
                        "tot": "msg"
                    }
                ],
                "action": "",
                "property": "",
                "from": "",
                "to": "",
                "reg": false,
                "x": 600,
                "y": 560,
                "wires": [
                    [
                        "9a8d9d9c.ac2c98",
                        "1f7b024b.676ece"
                    ]
                ]
            },
            {
                "id": "9a8d9d9c.ac2c98",
                "type": "ioBroker out",
                "z": "cb764199.c00bc8",
                "name": "Wandlampe_Kugel_bri",
                "topic": "yeelight-2.0.Rene-Yeelight-Kugel.control.active_bright",
                "ack": "false",
                "autoCreate": "false",
                "x": 1300,
                "y": 520,
                "wires": []
            },
            {
                "id": "1f7b024b.676ece",
                "type": "ioBroker out",
                "z": "cb764199.c00bc8",
                "name": "Wandlampe_Wand_bri",
                "topic": "yeelight-2.0.Rene-Yeelight-Wand.control.active_bright",
                "ack": "false",
                "autoCreate": "false",
                "x": 1300,
                "y": 600,
                "wires": []
            },
            {
                "id": "c05a8693.015e98",
                "type": "switch",
                "z": "cb764199.c00bc8",
                "name": "#FFA600",
                "property": "payload",
                "propertyType": "msg",
                "rules": [
                    {
                        "t": "neq",
                        "v": "#FFA600",
                        "vt": "str"
                    },
                    {
                        "t": "eq",
                        "v": "#FFA600",
                        "vt": "str"
                    }
                ],
                "checkall": "true",
                "repair": false,
                "outputs": 2,
                "x": 880,
                "y": 380,
                "wires": [
                    [
                        "408253f0.0d8534",
                        "81d8cbb9.9bcbb"
                    ],
                    [
                        "ff7248d8.2466e8"
                    ]
                ]
            },
            {
                "id": "ff7248d8.2466e8",
                "type": "change",
                "z": "cb764199.c00bc8",
                "name": "#FF6500",
                "rules": [
                    {
                        "t": "set",
                        "p": "payload",
                        "pt": "msg",
                        "to": "#FF6500",
                        "tot": "str"
                    }
                ],
                "action": "",
                "property": "",
                "from": "",
                "to": "",
                "reg": false,
                "x": 880,
                "y": 440,
                "wires": [
                    [
                        "81d8cbb9.9bcbb",
                        "408253f0.0d8534"
                    ]
                ]
            }
        ]
        
        joggeJ 1 Antwort Letzte Antwort
        0
        • H Hc-Yami

          @robudus Hey, man soll wohl in node.red so wenig Funktionen nutzen wie unbedingt notwendig.
          Für die Dimmfunktion kannst du den msg.payload auf msg.percentage setzen, da kommt dann die Prozentzahl für das Dimmen raus.

          30d0ce78-806e-4d69-aee3-bb7e4ae6ff52-grafik.png

          [
              {
                  "id": "cb764199.c00bc8",
                  "type": "tab",
                  "label": "Test",
                  "disabled": false,
                  "info": ""
              },
              {
                  "id": "4dfd955.b27b86c",
                  "type": "amazon-echo-device",
                  "z": "cb764199.c00bc8",
                  "name": "Wandlampe",
                  "topic": "",
                  "x": 330,
                  "y": 260,
                  "wires": [
                      [
                          "1f97b65b.d5a67a",
                          "fd7fe915.92d258",
                          "7606ced.1830ab"
                      ]
                  ]
              },
              {
                  "id": "1f97b65b.d5a67a",
                  "type": "switch",
                  "z": "cb764199.c00bc8",
                  "name": "switch 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": 590,
                  "y": 260,
                  "wires": [
                      [
                          "edc4c9f8.1d8ca8"
                      ],
                      [
                          "8098553a.8f04d"
                      ]
                  ]
              },
              {
                  "id": "edc4c9f8.1d8ca8",
                  "type": "change",
                  "z": "cb764199.c00bc8",
                  "name": "true",
                  "rules": [
                      {
                          "t": "set",
                          "p": "payload",
                          "pt": "msg",
                          "to": "true",
                          "tot": "bool"
                      }
                  ],
                  "action": "",
                  "property": "",
                  "from": "",
                  "to": "",
                  "reg": false,
                  "x": 770,
                  "y": 220,
                  "wires": [
                      [
                          "8cbf523d.81073",
                          "2bd03324.3e960c"
                      ]
                  ]
              },
              {
                  "id": "8098553a.8f04d",
                  "type": "change",
                  "z": "cb764199.c00bc8",
                  "name": "false",
                  "rules": [
                      {
                          "t": "set",
                          "p": "payload",
                          "pt": "msg",
                          "to": "false",
                          "tot": "bool"
                      }
                  ],
                  "action": "",
                  "property": "",
                  "from": "",
                  "to": "",
                  "reg": false,
                  "x": 770,
                  "y": 300,
                  "wires": [
                      [
                          "8cbf523d.81073",
                          "2bd03324.3e960c"
                      ]
                  ]
              },
              {
                  "id": "8cbf523d.81073",
                  "type": "ioBroker out",
                  "z": "cb764199.c00bc8",
                  "name": "Wandlampe_Kugel",
                  "topic": "yeelight-2.0.Rene-Yeelight-Kugel.control.power",
                  "ack": "false",
                  "autoCreate": "false",
                  "x": 1290,
                  "y": 220,
                  "wires": []
              },
              {
                  "id": "2bd03324.3e960c",
                  "type": "ioBroker out",
                  "z": "cb764199.c00bc8",
                  "name": "Wandlampe_Wand",
                  "topic": "yeelight-2.0.Rene-Yeelight-Wand.control.power",
                  "ack": "false",
                  "autoCreate": "false",
                  "x": 1290,
                  "y": 300,
                  "wires": []
              },
              {
                  "id": "fd7fe915.92d258",
                  "type": "change",
                  "z": "cb764199.c00bc8",
                  "name": "msg.rgb",
                  "rules": [
                      {
                          "t": "set",
                          "p": "payload",
                          "pt": "msg",
                          "to": "rgb",
                          "tot": "msg"
                      }
                  ],
                  "action": "",
                  "property": "",
                  "from": "",
                  "to": "",
                  "reg": false,
                  "x": 580,
                  "y": 400,
                  "wires": [
                      [
                          "bbb8637e.4dc908"
                      ]
                  ]
              },
              {
                  "id": "408253f0.0d8534",
                  "type": "ioBroker out",
                  "z": "cb764199.c00bc8",
                  "name": "Wandlampe_Kugel_rgb",
                  "topic": "yeelight-2.0.Rene-Yeelight-Kugel.control.rgb",
                  "ack": "false",
                  "autoCreate": "false",
                  "x": 1310,
                  "y": 380,
                  "wires": []
              },
              {
                  "id": "bbb8637e.4dc908",
                  "type": "color-convert",
                  "z": "cb764199.c00bc8",
                  "input": "rgb",
                  "output": "hex",
                  "outputType": "string",
                  "scaleInput": false,
                  "x": 730,
                  "y": 400,
                  "wires": [
                      [
                          "c05a8693.015e98"
                      ]
                  ]
              },
              {
                  "id": "81d8cbb9.9bcbb",
                  "type": "ioBroker out",
                  "z": "cb764199.c00bc8",
                  "name": "Wandlampe_Wand_rgb",
                  "topic": "yeelight-2.0.Rene-Yeelight-Wand.control.rgb",
                  "ack": "false",
                  "autoCreate": "false",
                  "x": 1310,
                  "y": 440,
                  "wires": []
              },
              {
                  "id": "7606ced.1830ab",
                  "type": "change",
                  "z": "cb764199.c00bc8",
                  "name": "msg.percentage",
                  "rules": [
                      {
                          "t": "set",
                          "p": "payload",
                          "pt": "msg",
                          "to": "percentage",
                          "tot": "msg"
                      }
                  ],
                  "action": "",
                  "property": "",
                  "from": "",
                  "to": "",
                  "reg": false,
                  "x": 600,
                  "y": 560,
                  "wires": [
                      [
                          "9a8d9d9c.ac2c98",
                          "1f7b024b.676ece"
                      ]
                  ]
              },
              {
                  "id": "9a8d9d9c.ac2c98",
                  "type": "ioBroker out",
                  "z": "cb764199.c00bc8",
                  "name": "Wandlampe_Kugel_bri",
                  "topic": "yeelight-2.0.Rene-Yeelight-Kugel.control.active_bright",
                  "ack": "false",
                  "autoCreate": "false",
                  "x": 1300,
                  "y": 520,
                  "wires": []
              },
              {
                  "id": "1f7b024b.676ece",
                  "type": "ioBroker out",
                  "z": "cb764199.c00bc8",
                  "name": "Wandlampe_Wand_bri",
                  "topic": "yeelight-2.0.Rene-Yeelight-Wand.control.active_bright",
                  "ack": "false",
                  "autoCreate": "false",
                  "x": 1300,
                  "y": 600,
                  "wires": []
              },
              {
                  "id": "c05a8693.015e98",
                  "type": "switch",
                  "z": "cb764199.c00bc8",
                  "name": "#FFA600",
                  "property": "payload",
                  "propertyType": "msg",
                  "rules": [
                      {
                          "t": "neq",
                          "v": "#FFA600",
                          "vt": "str"
                      },
                      {
                          "t": "eq",
                          "v": "#FFA600",
                          "vt": "str"
                      }
                  ],
                  "checkall": "true",
                  "repair": false,
                  "outputs": 2,
                  "x": 880,
                  "y": 380,
                  "wires": [
                      [
                          "408253f0.0d8534",
                          "81d8cbb9.9bcbb"
                      ],
                      [
                          "ff7248d8.2466e8"
                      ]
                  ]
              },
              {
                  "id": "ff7248d8.2466e8",
                  "type": "change",
                  "z": "cb764199.c00bc8",
                  "name": "#FF6500",
                  "rules": [
                      {
                          "t": "set",
                          "p": "payload",
                          "pt": "msg",
                          "to": "#FF6500",
                          "tot": "str"
                      }
                  ],
                  "action": "",
                  "property": "",
                  "from": "",
                  "to": "",
                  "reg": false,
                  "x": 880,
                  "y": 440,
                  "wires": [
                      [
                          "81d8cbb9.9bcbb",
                          "408253f0.0d8534"
                      ]
                  ]
              }
          ]
          
          joggeJ Offline
          joggeJ Offline
          jogge
          schrieb am zuletzt editiert von
          #4

          @Hc-Yami vielen Dank für deinen Code. Habe nach einer Lösung gesucht meine Osram Lampen via amazon-echo-nodes steuern zu können. On/off und Helligkeit war kein Problem aber mir war nicht klar wie ich die isolierte rgb Info von der emulierten Hue Lampe rausfiltern kann um sie dann in hex umzuwandeln und an das Osram device weiter zugeben.
          Mit deinem Code funktioniert das nun super!

          Ich hätte da nur eine Frage dazu: Wozu braucht man nach dem umwandeln in hex noch den switch und den change?

          Gerne auch per PN, da der thread ja eigentlich schon als gelöst markiert ist.

          Grüße,
          Joscha

          1 Antwort Letzte Antwort
          0
          • H Offline
            H Offline
            Hc-Yami
            schrieb am zuletzt editiert von
            #5

            Hey,
            den benötigt man nicht. Der ist nur für mich weil ich irgendwie das #FF6500 als schöneres orange empfinde als das was aus der Emulation kommt.
            Da ich diese Farbe fast ausschließlich habe, wollte ich sie halt wieder haben wenn ich sage, dass die Farbe auf orange soll. :)

            Grüße

            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

            353

            Online

            32.5k

            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