Navigation

    Logo
    • Register
    • Login
    • Search
    • Recent
    • Tags
    • Unread
    • Categories
    • Unreplied
    • Popular
    • GitHub
    • Docu
    • Hilfe
    1. Home
    2. Deutsch
    3. Skripten / Logik
    4. Milight E27 LED Lampe über iobroker Alexa2 Adapter einschalten mit kalt weißem Licht.

    NEWS

    • Neuer Blog: Fotos und Eindrücke aus Solingen

    • ioBroker@Smart Living Forum Solingen, 14.06. - Agenda added

    • ioBroker goes Matter ... Matter Adapter in Stable

    Milight E27 LED Lampe über iobroker Alexa2 Adapter einschalten mit kalt weißem Licht.

    This topic has been deleted. Only users with topic management privileges can see it.
    • H
      Högi last edited by Högi

      Hallo zusammen,
      ich möchte über ein Blockly Script meine Milight LED Lampe über einen Xiaomi lumi.sensor_switch einschalten . Dabei soll die Lampe gleichzeitig mit 100% Helligkeit , 6500 K Farbtemperatur und 100% Sättigung leuchten.
      Die Milight Lampe läuft über die Milight Cloud und die Objekte greife ich über den Alexa2 Adapter ab. Bin absoluter Anfänger bezüglich Blockly und stelle mein Script hier ein.
      Vielleicht kann mir jemand auf die Sprünge helfen!

      <xml xmlns="http://www.w3.org/1999/xhtml">
      <block type="on" id="f~d.op*3,eegh[5+Pxl" x="-487" y="-737"> <field name="OID">zigbee.0.00158d00026ba893.click</field> <field name="CONDITION">ne</field> <field name="ACK_CONDITION"></field> <statement name="STATEMENT"> <block type="controls_if" id="-(;==)!:esNXMb-UE,_/"> <value name="IF0"> <block type="logic_compare" id="K@u-1zXCi6haC=8GM{0">
      <field name="OP">EQ</field>
      <value name="A">
      <block type="get_value" id="de]8_uh5+9fOV4JkMu,V">
      <field name="ATTR">val</field>
      <field name="OID">hm-rpc.0.OEQ0071955.1.STATE</field>
      </block>
      </value>
      <value name="B">
      <block type="logic_boolean" id="6t7-gBdb798tH[bVVLs;">
      <field name="BOOL">TRUE</field>
      </block>
      </value>
      </block>
      </value>
      <statement name="DO0">
      <block type="control" id="fWDN0;%g0M(A2tZoF;Me">
      <mutation delay_input="true"></mutation>
      <field name="OID">hm-rpc.0.OEQ0071955.1.STATE</field>
      <field name="WITH_DELAY">TRUE</field>
      <field name="DELAY_MS">500</field>
      <field name="UNIT">ms</field>
      <field name="CLEAR_RUNNING">FALSE</field>
      <value name="VALUE">
      <block type="logic_boolean" id="R@JF=g^/{hZ[G%;KZV=Q">
      <field name="BOOL">FALSE</field>
      </block>
      </value>
      </block>
      </statement>
      <next>
      <block type="controls_if" id="=dl~XYwRk|#QPSPDeZ2q">
      <value name="IF0">
      <block type="logic_compare" id="mO0aq^G?mgXGM#;KMc%"> <field name="OP">EQ</field> <value name="A"> <block type="get_value" id="N4QhF(GJkXB*2/v{q(cx"> <field name="ATTR">val</field> <field name="OID">hm-rpc.0.OEQ0071955.1.STATE</field> </block> </value> <value name="B"> <block type="logic_boolean" id="Aa~/BX#+nFl~-Kh[wUL">
      <field name="BOOL">FALSE</field>
      </block>
      </value>
      </block>
      </value>
      <statement name="DO0">
      <block type="control" id="f1/Fz928_g!1wr)1~-!R">
      <mutation delay_input="true"></mutation>
      <field name="OID">hm-rpc.0.OEQ0071955.1.STATE</field>
      <field name="WITH_DELAY">TRUE</field>
      <field name="DELAY_MS">500</field>
      <field name="UNIT">ms</field>
      <field name="CLEAR_RUNNING">FALSE</field>
      <value name="VALUE">
      <block type="logic_boolean" id="w/{Jp:T5+mJ.c(JX!o)/">
      <field name="BOOL">TRUE</field>
      </block>
      </value>
      </block>
      </statement>
      </block>
      </next>
      </block>
      </statement>
      </block>
      <block type="on" id="]y#gE/ETKSidVY7I},3O" x="188" y="-137">
      <field name="OID">zigbee.0.00158d00026ba893.double_click</field>
      <field name="CONDITION">ne</field>
      <field name="ACK_CONDITION"></field>
      <statement name="STATEMENT">
      <block type="controls_if" id="8b0cqkwS/kh8lL-%{oDA">
      <value name="IF0">
      <block type="logic_compare" id="+dKY_vE:?kv15nlmxO">
      <field name="OP">EQ</field>
      <value name="A">
      <block type="get_value" id="n4q9y3iPLOcAoRT43uM_">
      <field name="ATTR">val</field>
      <field name="OID">alexa2.0.Smart-Home-Devices.cbc4d0f3-55f2-4f56-af16-9f60b0ec4841.powerState</field>
      </block>
      </value>
      <value name="B">
      <block type="logic_boolean" id="X$kJgGtbMog#xihW9UXM">
      <field name="BOOL">FALSE</field>
      </block>
      </value>
      </block>
      </value>
      <statement name="DO0">
      <block type="control" id="QuB1h!:+jX+sh_Eb/iF"> <mutation delay_input="true"></mutation> <field name="OID">alexa2.0.Smart-Home-Devices.cbc4d0f3-55f2-4f56-af16-9f60b0ec4841.powerState</field> <field name="WITH_DELAY">TRUE</field> <field name="DELAY_MS">500</field> <field name="UNIT">ms</field> <field name="CLEAR_RUNNING">FALSE</field> <value name="VALUE"> <block type="logic_boolean" id="..h0#-MypBT.y#F^LKT">
      <field name="BOOL">TRUE</field>
      </block>
      </value>
      <next>
      <block type="control" id="7[e5_0_g0{geK.69:K+">
      <mutation delay_input="true"></mutation>
      <field name="OID">alexa2.0.Smart-Home-Devices.cbc4d0f3-55f2-4f56-af16-9f60b0ec4841.colorTemperatureName</field>
      <field name="WITH_DELAY">TRUE</field>
      <field name="DELAY_MS">500</field>
      <field name="UNIT">ms</field>
      <field name="CLEAR_RUNNING">FALSE</field>
      <value name="VALUE">
      <shadow type="text" id="vAv6|~sPw)snsS``[149">
      <field name="TEXT">Cool White</field>
      </shadow>
      </value>
      <next>
      <block type="control" id="NE5+?dCMKY]~:K]a5MrA">
      <mutation delay_input="true"></mutation>
      <field name="OID">alexa2.0.Smart-Home-Devices.cbc4d0f3-55f2-4f56-af16-9f60b0ec4841.color-brightness</field>
      <field name="WITH_DELAY">TRUE</field>
      <field name="DELAY_MS">500</field>
      <field name="UNIT">ms</field>
      <field name="CLEAR_RUNNING">FALSE</field>
      <value name="VALUE">
      <block type="math_number" id="SyrN?oDlogc@Xo=VQFTq">
      <field name="NUM">50</field>
      </block>
      </value>
      <next>
      <block type="control" id="dFb8-)oJaE{QkDe,D#6"> <mutation delay_input="true"></mutation> <field name="OID">alexa2.0.Smart-Home-Devices.cbc4d0f3-55f2-4f56-af16-9f60b0ec4841.colorTemperatureInKelvin</field> <field name="WITH_DELAY">TRUE</field> <field name="DELAY_MS">500</field> <field name="UNIT">ms</field> <field name="CLEAR_RUNNING">FALSE</field> <value name="VALUE"> <block type="math_number" id="uE7/+iT()HKBoIJ9x[{">
      <field name="NUM">6500</field>
      </block>
      </value>
      <next>
      <block type="control" id="jb3~Oc0)(qhoD[J~jHLp">
      <mutation delay_input="true"></mutation>
      <field name="OID">alexa2.0.Smart-Home-Devices.cbc4d0f3-55f2-4f56-af16-9f60b0ec4841.color-saturation</field>
      <field name="WITH_DELAY">TRUE</field>
      <field name="DELAY_MS">500</field>
      <field name="UNIT">ms</field>
      <field name="CLEAR_RUNNING">FALSE</field>
      <value name="VALUE">
      <block type="math_number" id=")meeI0@ZmM|Oxu+Sqn,j">
      <field name="NUM">100</field>
      </block>
      </value>
      </block>
      </next>
      </block>
      </next>
      </block>
      </next>
      </block>
      </next>
      </block>
      </statement>
      <next>
      <block type="controls_if" id="qW?jd+711.Q4G^fX
      9O"> <value name="IF0"> <block type="logic_compare" id="z=)#@~yWLvP~sd=cN-$^"> <field name="OP">EQ</field> <value name="A"> <block type="get_value" id="m?cO|tFGE(FXI4eiNDc@"> <field name="ATTR">val</field> <field name="OID">alexa2.0.Smart-Home-Devices.cbc4d0f3-55f2-4f56-af16-9f60b0ec4841.powerState</field> </block> </value> <value name="B"> <block type="logic_boolean" id="@wC.7[br|o%)vsWV|nR)"> <field name="BOOL">TRUE</field> </block> </value> </block> </value> <statement name="DO0"> <block type="control" id="XL=Bz:fb8vdC#A.+Z^B">
      <mutation delay_input="true"></mutation>
      <field name="OID">alexa2.0.Smart-Home-Devices.cbc4d0f3-55f2-4f56-af16-9f60b0ec4841.powerState</field>
      <field name="WITH_DELAY">TRUE</field>
      <field name="DELAY_MS">500</field>
      <field name="UNIT">ms</field>
      <field name="CLEAR_RUNNING">FALSE</field>
      <value name="VALUE">
      <block type="logic_boolean" id="^c!.?1]uMvW1LA/ijSpY">
      <field name="BOOL">FALSE</field>
      </block>
      </value>
      </block>
      </statement>
      </block>
      </next>
      </block>
      </statement>
      </block>
      </xml>

      Blockly.JPG

      Hier meine Objekte:
      Alexa2 Objekte.JPG

      Die Milght Lampe schaltet sich mit meinem Script an/aus (mit den jeweils letzten Werten)
      das funktioniert.

      Vielen dank im Vorraus für Unterstützung

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

      Support us

      ioBroker
      Community Adapters
      Donate

      836
      Online

      31.8k
      Users

      79.9k
      Topics

      1.3m
      Posts

      blockly
      1
      1
      239
      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