Navigation

    Logo
    • Register
    • Login
    • Search
    • Recent
    • Tags
    • Unread
    • Categories
    • Unreplied
    • Popular
    • GitHub
    • Docu
    • Hilfe
    1. Home
    2. Deutsch
    3. ioBroker Allgemein
    4. Alexa Steuerung Lichtfarbe

    NEWS

    • Monatsrückblick - April 2025

    • Minor js-controller 7.0.7 Update in latest repo

    • Save The Date: ioBroker@Smart Living Forum Solingen, 14.06.

    Alexa Steuerung Lichtfarbe

    This topic has been deleted. Only users with topic management privileges can see it.
    • L
      LaBamba last edited by LaBamba

      Hallo,

      ich habe Yeelightlampen über Node-RED mit der Alexa intern angesteuert.
      AN/AUS und Helligkeit funktioniert super.
      Jedoch würde es mich interessieren ob es irgenwie möglich ist die Lichtfarbe ct von 2600-6500 Kelvin mit der Alexa zu steuern. ....oder gibt es hierfür bei der Alexa keinen Befehl?


      [
      {
      "id": "2d0f0584.d8aa7a",
      "type": "subflow",
      "name": "Yeelight",
      "info": "",
      "category": "",
      "in": [
      {
      "x": 60,
      "y": 60,
      "wires": [
      {
      "id": "b3475bcf.d6b288"
      }
      ]
      }
      ],
      "out": [],
      "env": [
      {
      "name": "id_on_off",
      "type": "str",
      "value": "yeelight-2.1.ceiling7-0x0000000006629_Buero.control.power"
      },
      {
      "name": "id_bright",
      "type": "str",
      "value": "yeelight-2.1.ceiling7-0x0000000006629_Buero.control.active_bright"
      },
      {
      "name": "id_ct",
      "type": "str",
      "value": "yeelight-2.1.ceiling7-0x0000000006629_Buero.control.ct"
      }
      ],
      "meta": {},
      "color": "#DDAA99"
      },
      {
      "id": "b3475bcf.d6b288",
      "type": "switch",
      "z": "2d0f0584.d8aa7a",
      "name": "was?",
      "property": "meta.input",
      "propertyType": "msg",
      "rules": [
      {
      "t": "hask",
      "v": "on",
      "vt": "str"
      },
      {
      "t": "hask",
      "v": "bri",
      "vt": "str"
      },
      {
      "t": "hask",
      "v": "ct",
      "vt": "str"
      }
      ],
      "checkall": "true",
      "repair": false,
      "outputs": 3,
      "x": 190,
      "y": 60,
      "wires": [
      [
      "5f0ae8c3.9baae8"
      ],
      [
      "27bdd852.7755d8"
      ],
      [
      "625c6fb5.e27f3"
      ]
      ]
      },
      {
      "id": "5f0ae8c3.9baae8",
      "type": "change",
      "z": "2d0f0584.d8aa7a",
      "name": "on",
      "rules": [
      {
      "t": "move",
      "p": "meta.input.on",
      "pt": "msg",
      "to": "payload",
      "tot": "msg"
      }
      ],
      "action": "",
      "property": "",
      "from": "",
      "to": "",
      "reg": false,
      "x": 370,
      "y": 40,
      "wires": [
      [
      "8903d883.8da6e8",
      "4b1b1480.b4f72c"
      ]
      ]
      },
      {
      "id": "8903d883.8da6e8",
      "type": "ioBroker out",
      "z": "2d0f0584.d8aa7a",
      "name": "power",
      "topic": "${id_on_off}",
      "ack": "false",
      "autoCreate": "false",
      "stateName": "",
      "role": "",
      "stateUnit": "",
      "stateMin": "",
      "stateMax": "",
      "x": 750,
      "y": 40,
      "wires": []
      },
      {
      "id": "625c6fb5.e27f3",
      "type": "change",
      "z": "2d0f0584.d8aa7a",
      "name": "ct",
      "rules": [
      {
      "t": "move",
      "p": "meta.input.ct",
      "pt": "msg",
      "to": "payload",
      "tot": "msg"
      }
      ],
      "action": "",
      "property": "",
      "from": "",
      "to": "",
      "reg": false,
      "x": 370,
      "y": 120,
      "wires": [
      [
      "16ef54f7.7aca0b",
      "4b1b1480.b4f72c"
      ]
      ]
      },
      {
      "id": "27bdd852.7755d8",
      "type": "change",
      "z": "2d0f0584.d8aa7a",
      "name": "%",
      "rules": [
      {
      "t": "move",
      "p": "meta.input.bri",
      "pt": "msg",
      "to": "payload",
      "tot": "msg"
      }
      ],
      "action": "",
      "property": "",
      "from": "",
      "to": "",
      "reg": false,
      "x": 370,
      "y": 80,
      "wires": [
      [
      "2798e9f6.606c66",
      "4b1b1480.b4f72c"
      ]
      ]
      },
      {
      "id": "16ef54f7.7aca0b",
      "type": "range",
      "z": "2d0f0584.d8aa7a",
      "minin": "153",
      "maxin": "500",
      "minout": "2600",
      "maxout": "6500",
      "action": "clamp",
      "round": true,
      "property": "payload",
      "name": "",
      "x": 570,
      "y": 120,
      "wires": [
      [
      "4d7a88c5.b679a8"
      ]
      ]
      },
      {
      "id": "2798e9f6.606c66",
      "type": "range",
      "z": "2d0f0584.d8aa7a",
      "minin": "4",
      "maxin": "254",
      "minout": "1",
      "maxout": "100",
      "action": "scale",
      "round": true,
      "property": "payload",
      "name": "",
      "x": 550,
      "y": 80,
      "wires": [
      [
      "fe3442c.2a198c"
      ]
      ]
      },
      {
      "id": "fe3442c.2a198c",
      "type": "ioBroker out",
      "z": "2d0f0584.d8aa7a",
      "name": "Helligkeit",
      "topic": "${id_bright}",
      "ack": "false",
      "autoCreate": "false",
      "x": 760,
      "y": 80,
      "wires": []
      },
      {
      "id": "4d7a88c5.b679a8",
      "type": "ioBroker out",
      "z": "2d0f0584.d8aa7a",
      "name": "ct",
      "topic": "${id_ct}",
      "ack": "false",
      "autoCreate": "false",
      "x": 750,
      "y": 120,
      "wires": []
      },
      {
      "id": "4b1b1480.b4f72c",
      "type": "debug",
      "z": "2d0f0584.d8aa7a",
      "name": "",
      "active": true,
      "tosidebar": true,
      "console": false,
      "tostatus": false,
      "complete": "false",
      "statusVal": "",
      "statusType": "auto",
      "x": 666.5,
      "y": 249,
      "wires": []
      }
      ]

      Viele Grüße

      @mickym

      mickym 1 Reply Last reply Reply Quote 0
      • mickym
        mickym Most Active @LaBamba last edited by

        @labamba
        Also erstes bitte in Zukunft neben dem Spoiler noch die CodeTags verwenden. 😉

        Das hängt davon welche Alexa Nodes Du verwendest?
        Ggf. musst Du halt glaube Kommandos programmieren.

        Diese virtual device NOde - hat jedenfalls Colorwerte, die man ggf. umsetzen kann:

        a34302e0-205f-400f-8763-8781eee47134-image.png

        Im Prinzip musst Du halt wieder mit Debug Nodes untersuchen, was für Nachrichten rauskommt, wenn Du sagst Alexa schalte auf rot etc.

        Die Farbtemperatur schaltest Du ja mit folgenden Skills:

        7c09b930-7fde-444d-89dc-0b39881de802-image.png

        Die virtual device Node gibt dann in payload.colorTemperatureInKelvin entsprechende Werte aus.

        L 1 Reply Last reply Reply Quote 0
        • L
          LaBamba @mickym last edited by LaBamba

          @mickym

          Ich habe den amazon-echo-device verwendet.
          Also An/aus und Helligkeit funktioniert super.
          Nur nicht die Lichtfarbe in Kelvin.
          das payload.colorTemperatureInKelvin aus deiner Übersicht, gibt es bei mir nicht.

          Bei mir steht in der Beschreibung
          Amazon Echo Device
          Outputs

          amazon-echo-device

          Amazon Echo Device
          Outputs

          payload string
          On state of the light (On - true, Off - false)
          on boolean
          On/Off state of the light
          bri number
          Brightness of the light (min 1, max 254)
          hue number
          Hue of the light (min 0, max 65535)
          sat number
          Saturation of the light (min 0, max 254)
          ct string
          The mired color temperature of the light (min 153, max 500)
          xy array
          The x and y coordinates of a color in CIE color space (Both x and y are between 0 and 1)
          rgb array
          The light color in RGB format
          colormode string
          Indicates the color mode (ct - Color Temperature | hs - Hue and Saturation)
          percentage number
          The brightness % level (min 1, max 100)
          meta array
          Meta data hashmap
          meta.insert.by string
          The insert type (alexa | input)
          meta.insert.date string
          The insert date and time
          meta.insert.details.ip string
          Alexa master device IP address.
          Only if meta.insert.by=alexa
          meta.insert.details.user_agent string
          Alexa master device user agent.
          Only if meta.insert.by=alexa
          meta.input array
          Hashmap with all input attributes
          meta.changes array
          Hashmap of all changed attributes and the corresponding old values

          Also den ct string verwendet.
          Wenn ich jetzt aber über Alexa sage " Alexa Wohnen (Lampenname) auf 200" kommt immer "Der Wert liegt außerhalb des Bereiches für das Gerät Wohnen."

          Schöner wäre es natürlich direkt die Lichtfarbe in Kelvin angeben zu können. Also einen Wert von 2600-6500 Kelvin.
          Das ich sagen kann " Alexa Wohnen auf 3000."

          Vielleicht geht das über colormode string?
          Habe nur keine Ahnung wie das dann aussehen soll.

          Viele Grüße

          arteck 1 Reply Last reply Reply Quote 0
          • arteck
            arteck Developer Most Active @LaBamba last edited by

            @labamba alexa bla lampe auf warm weiss..schon versucht

            L 1 Reply Last reply Reply Quote 0
            • L
              LaBamba @arteck last edited by LaBamba

              @arteck
              Das funktioniert tatsächlich! Aber genau umgedreht. Warmweiss ist kaltweiss! ...und umgedreht.
              Ich wollte aber den genauen Bereich zwischen 2600-6500 Kelvin vorgeben.

              mickym 1 Reply Last reply Reply Quote 0
              • mickym
                mickym Most Active @LaBamba last edited by

                @labamba Die Skills dieser Node - sind ja vorgegeben:

                https://flows.nodered.org/node/node-red-contrib-amazon-echo

                und im Bild unten habe ich es ja auch angegeben, dass Alexa von sich aus nur diese Kommandos bzgl. Farbtemperatur versteht:

                b1083aad-6427-41c6-92ca-bfd919a46776-image.png

                Hier gibts noch ein Artikel, was Alexa von sich aus vielleicht kann: https://trendblog.euronics.de/smart-home/philips-hue-alle-alexa-sprachbefehle-im-ueberblick-78835/

                70223692-4c70-43ca-8d91-bb644e12e2d9-image.png

                Ansonsten musst Du - wie in dem Artikel vorgeschlagen - unter Umständen eigene Szenen definieren. Aber wie gesagt da bin ich raus. Vielleicht kann @frankyboy73 wieder mal helfen. 😉

                L 1 Reply Last reply Reply Quote 1
                • L
                  LaBamba @mickym last edited by

                  @mickym
                  Schon mal danke!

                  Ich habe es ausprobiert!
                  Bei warmes Weiss wird kaltes Weiss angezeigt und umgekehrt.
                  Beim Befehl wärmer wird aber die Lichtfarbe um ca 300 K wärmer.
                  Beim Befehl kühler wird aber die Lichtfarbe um ca 300 K kühler.

                  Verdrehe ich den Wert 2600 bis 6500 auf 6500 bis 2600.
                  Wird bei warmes Weiss ein warmes Weiss angezeigt und umgekehrt.
                  Jedoch geht dann wärmer und kühler jeweils in die falsche Richtung.

                  mickym 1 Reply Last reply Reply Quote 0
                  • mickym
                    mickym Most Active @LaBamba last edited by

                    @labamba Nun sobald Du siehst wie es funktioniert kannst ja in NR darauf reagieren und ggf. die Werte umrechnen. Wie gesagt, da kann ich aber wenig zu sagen.

                    L 1 Reply Last reply Reply Quote 0
                    • L
                      LaBamba @mickym last edited by LaBamba

                      @mickym
                      Das Umrechnen ist nicht das Problem.
                      Löst aber nicht die entgegengesetzte Darstellung.
                      Trotzdem Danke!

                      1 Reply Last reply Reply Quote 0
                      • First post
                        Last post

                      Support us

                      ioBroker
                      Community Adapters
                      Donate
                      FAQ Cloud / IOT
                      HowTo: Node.js-Update
                      HowTo: Backup/Restore
                      Downloads
                      BLOG

                      532
                      Online

                      31.6k
                      Users

                      79.4k
                      Topics

                      1.3m
                      Posts

                      3
                      9
                      584
                      Loading More Posts
                      • Oldest to Newest
                      • Newest to Oldest
                      • Most Votes
                      Reply
                      • Reply as topic
                      Log in to reply
                      Community
                      Impressum | Datenschutz-Bestimmungen | Nutzungsbedingungen
                      The ioBroker Community 2014-2023
                      logo