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. Blockly
  5. [VORLAGE] Philips HUE - Farbtemperatur Verlauf über den Tag

NEWS

  • Jahresrückblick 2025 – unser neuer Blogbeitrag ist online! ✨
    BluefoxB
    Bluefox
    16
    1
    1.9k

  • Neuer Blogbeitrag: Monatsrückblick - Dezember 2025 🎄
    BluefoxB
    Bluefox
    13
    1
    916

  • Weihnachtsangebot 2025! 🎄
    BluefoxB
    Bluefox
    25
    1
    2.2k

[VORLAGE] Philips HUE - Farbtemperatur Verlauf über den Tag

Geplant Angeheftet Gesperrt Verschoben Blockly
3 Beiträge 3 Kommentatoren 925 Aufrufe 5 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.
  • SpegeliS Offline
    SpegeliS Offline
    Spegeli
    schrieb am zuletzt editiert von Spegeli
    #1

    Servus liebe Community
    für meine Philips HUE (GU10 Ambiance White) welche sich überall in meiner Wohnung befinden, habe ich ein Blockly Script geschrieben um einen Temperatur Verlauf von Kalt Weiß Morgens zu Warm Weiß Abends über den Tag hinweg zu bekommen.

    Unbenannt.png

    Wie auf dem Screenshot zu sehen, müsst ihr lediglich eine Startzeit Angaben ab wann der Temperatur Verlauf beginnen soll und eine Endzeit an der der max. Temperatur Verlauf dann erreicht ist.
    Die Angabe sollte im 24 Stunden Format erfolgen und die Start und Endzeit sollten innerhalb von 00-24 Uhr des selben Tages liegen.
    An stelle von einem Manuellen Start und Endzeit könnte man auch von einem Objekt z.b. den Sonnenauf- und Untergang abfragen.

    Zu guter Letzt könnt ihr noch einen einen Min. und Max. Wert für die Farbtemperatur angeben.

    Das Script macht dann folgendes:
    Es errechnet die Laufzeit in Minuten (Endzeit - Startzeit).
    Es errechnet die Different zwischen der Min. und Max. Farbtemperatur.
    Anschließend teilt es die Laufzeit durch diese Differenz um so herauszufinden in welchem Minuten bzw. Sekunden Abstand sich die Farbtemperatur ändert.

    Das Script passt die Farbtemperatur ein mal an wenn sich eine Lampen Gruppen Einschaltet und dann alle alle 5 Minuten.

    Im Zeitplan selbst wird erst mal Kontrolliert ob die Lampe aktuell an ist, da eine Änderung der Farbtemperatur sonst die Lampe einschalten würde, was wir ja aber nicht wollen wenn die Lampe aktuell ausgeschalten ist.

    Nun gibt es 2 fälle:
    Aktuelle Zeit ist gleich oder größer der von uns angegebenen Startzeit.
    (Aktuelle Zeit beginnt immer um 00 Uhr zu zählen)
    Dann Rechnet das Script die Aktuelle Tageszeit in Minuten - die Start Zeit in Minuten / die Zeit in welchem Abstand sich die Farbtemperatur ändert.
    Anschließend Rechnet es noch den Max. Kalt Wert - dem Zwischenergebnis und erhält dann daraus die Farbtemperatur welche dann an unsere Lampe weitergegeben wird.

    Und wenn die aktuelle Zeit kleiner ist als die Start Zeit dann wird automatisch der Max. Warm Wert genommen.

    In meinem Fall beginnt die Änderung der Farbtemperatur um 7Uhr morgens mit einem Kaltweiß von 6500K und Endet um 22Uhr mit einem Warmen Weiß von 2700K.

    Und hier zu guter Letztdas Script:

    <xml xmlns="https://developers.google.com/blockly/xml">
      <variables>
        <variable id="U.QkeAJw`phS!}m10j*!">start_time</variable>
        <variable id="a_lA!%0dp;`EUQ2Hki-`">end_time</variable>
        <variable id="sBH4pe?H#c,;~ntZqq%4">start_time_min</variable>
        <variable id="|l1!0NSc@(@/8@,?%^Oj">end_time_min</variable>
        <variable id="OCVOX*}%@Y0mIa-r2!@2">run_time_min</variable>
        <variable id="xUpDE,xjl+auoeU-Gmw$">ct_kalt</variable>
        <variable id="e(5.6q=au~Laz1+`/j(,">ct_warm</variable>
        <variable id="cPly.2{*wN|ESq5_~;]r">ct_diff</variable>
        <variable id="r)jJ]7}]DDc#{Jb%Nd0!">ct_time</variable>
        <variable id="4NKF[j.S)8%aG}S[214B">ct_zw</variable>
        <variable id="4}t#r$r(ZcCF%9e[)q}Y">ct</variable>
      </variables>
      <block type="comment" id="N.!@}7+YnQ10Ra:4qU?9" x="-2512" y="-1937">
        <field name="COMMENT">Start- / Endzeit </field>
        <next>
          <block type="variables_set" id="2h*y)#Gi`iulqo(yCzYc">
            <field name="VAR" id="U.QkeAJw`phS!}m10j*!">start_time</field>
            <value name="VALUE">
              <block type="text" id="ru1_TH;1~_B,,gs%v_?O">
                <field name="TEXT">7:00</field>
              </block>
            </value>
            <next>
              <block type="variables_set" id="4Ni8:(_a(X($(kTBBV#l">
                <field name="VAR" id="a_lA!%0dp;`EUQ2Hki-`">end_time</field>
                <value name="VALUE">
                  <block type="text" id="j_@*sd}Ou2~zfoEMKX|:">
                    <field name="TEXT">22:00</field>
                  </block>
                </value>
                <next>
                  <block type="variables_set" id="W_gAs7%V?bvJlkH{=^*I">
                    <field name="VAR" id="sBH4pe?H#c,;~ntZqq%4">start_time_min</field>
                    <value name="VALUE">
                      <block type="convert_from_date" id="*rZf1zC%mZyp0Y=1~?xs">
                        <mutation xmlns="http://www.w3.org/1999/xhtml" format="false" language="false"></mutation>
                        <field name="OPTION">mid</field>
                        <value name="VALUE">
                          <block type="variables_get" id=":~=W:5v}7|-gOI26l;J-">
                            <field name="VAR" id="U.QkeAJw`phS!}m10j*!">start_time</field>
                          </block>
                        </value>
                      </block>
                    </value>
                    <next>
                      <block type="variables_set" id="M!u`3@NCeS%v}RO:=7Cm">
                        <field name="VAR" id="|l1!0NSc@(@/8@,?%^Oj">end_time_min</field>
                        <value name="VALUE">
                          <block type="convert_from_date" id=":dvfTNANfLJPHR1;pcn%">
                            <mutation xmlns="http://www.w3.org/1999/xhtml" format="false" language="false"></mutation>
                            <field name="OPTION">mid</field>
                            <value name="VALUE">
                              <block type="variables_get" id="%:qu9-tk7Bk]_!:sI2#y">
                                <field name="VAR" id="a_lA!%0dp;`EUQ2Hki-`">end_time</field>
                              </block>
                            </value>
                          </block>
                        </value>
                        <next>
                          <block type="variables_set" id="b3m*W]+rxLmEzzdd[3(@">
                            <field name="VAR" id="OCVOX*}%@Y0mIa-r2!@2">run_time_min</field>
                            <value name="VALUE">
                              <block type="math_arithmetic" id="4=#hpI/#OM_C(0XL2j1-">
                                <field name="OP">MINUS</field>
                                <value name="A">
                                  <shadow xmlns="http://www.w3.org/1999/xhtml" type="math_number" id="`;FS@lnp-zT6I0w;Pt*C">
                                    <field name="NUM">1</field>
                                  </shadow>
                                  <block type="variables_get" id="/pYvcXDaM3=ZuZv%DRgL">
                                    <field name="VAR" id="|l1!0NSc@(@/8@,?%^Oj">end_time_min</field>
                                  </block>
                                </value>
                                <value name="B">
                                  <shadow xmlns="http://www.w3.org/1999/xhtml" type="math_number" id="f`|Ub7T/`gZ;`enJAE]=">
                                    <field name="NUM">1</field>
                                  </shadow>
                                  <block type="variables_get" id="YX(8e,,[?1FLOS(3g7_b">
                                    <field name="VAR" id="sBH4pe?H#c,;~ntZqq%4">start_time_min</field>
                                  </block>
                                </value>
                              </block>
                            </value>
                            <next>
                              <block type="comment" id="of6vNLL7/,CfpcO0Eh(j">
                                <field name="COMMENT">Min. / Max. Temperatur</field>
                                <next>
                                  <block type="variables_set" id="pWUa=~IYGV3c/Y(j*n,i">
                                    <field name="VAR" id="xUpDE,xjl+auoeU-Gmw$">ct_kalt</field>
                                    <value name="VALUE">
                                      <block type="convert_tonumber" id="|dp;Bh)5p)cN|j)^Niix">
                                        <value name="VALUE">
                                          <block type="text" id="KhI)rJZXVS_`a.eD^$?S">
                                            <field name="TEXT">6500</field>
                                          </block>
                                        </value>
                                      </block>
                                    </value>
                                    <next>
                                      <block type="variables_set" id="SX5mOY|]e;g[VGO6)ZM8">
                                        <field name="VAR" id="e(5.6q=au~Laz1+`/j(,">ct_warm</field>
                                        <value name="VALUE">
                                          <block type="convert_tonumber" id="7TGU#vJX`7UmB;#?z|B4">
                                            <value name="VALUE">
                                              <block type="text" id="8[nvk?trM_zbiwtiv?M7">
                                                <field name="TEXT">2000</field>
                                              </block>
                                            </value>
                                          </block>
                                        </value>
                                        <next>
                                          <block type="variables_set" id="}P]htP+t,1WNpogK*rWa">
                                            <field name="VAR" id="cPly.2{*wN|ESq5_~;]r">ct_diff</field>
                                            <value name="VALUE">
                                              <block type="math_arithmetic" id="Ybtm`*`1Ge|D~UsV8$G+">
                                                <field name="OP">MINUS</field>
                                                <value name="A">
                                                  <shadow xmlns="http://www.w3.org/1999/xhtml" type="math_number" id="`;FS@lnp-zT6I0w;Pt*C">
                                                    <field name="NUM">1</field>
                                                  </shadow>
                                                  <block type="variables_get" id="egecn:B)Be4SePedMY_%">
                                                    <field name="VAR" id="xUpDE,xjl+auoeU-Gmw$">ct_kalt</field>
                                                  </block>
                                                </value>
                                                <value name="B">
                                                  <shadow xmlns="http://www.w3.org/1999/xhtml" type="math_number" id="f`|Ub7T/`gZ;`enJAE]=">
                                                    <field name="NUM">1</field>
                                                  </shadow>
                                                  <block type="variables_get" id=",HP0GxB%SE$3tD*%Qx9S">
                                                    <field name="VAR" id="e(5.6q=au~Laz1+`/j(,">ct_warm</field>
                                                  </block>
                                                </value>
                                              </block>
                                            </value>
                                            <next>
                                              <block type="variables_set" id="Q1jva^:yrlIwar{ylZXb">
                                                <field name="VAR" id="r)jJ]7}]DDc#{Jb%Nd0!">ct_time</field>
                                                <value name="VALUE">
                                                  <block type="math_arithmetic" id="RE9vbqQviPs)063n|hk/">
                                                    <field name="OP">DIVIDE</field>
                                                    <value name="A">
                                                      <shadow xmlns="http://www.w3.org/1999/xhtml" type="math_number" id="`;FS@lnp-zT6I0w;Pt*C">
                                                        <field name="NUM">1</field>
                                                      </shadow>
                                                      <block type="variables_get" id="!*q_,734RFG!Q!6BSBod">
                                                        <field name="VAR" id="OCVOX*}%@Y0mIa-r2!@2">run_time_min</field>
                                                      </block>
                                                    </value>
                                                    <value name="B">
                                                      <shadow xmlns="http://www.w3.org/1999/xhtml" type="math_number" id="f`|Ub7T/`gZ;`enJAE]=">
                                                        <field name="NUM">1</field>
                                                      </shadow>
                                                      <block type="variables_get" id="dR1TL@Xo`Dda2,qJA3y*">
                                                        <field name="VAR" id="cPly.2{*wN|ESq5_~;]r">ct_diff</field>
                                                      </block>
                                                    </value>
                                                  </block>
                                                </value>
                                                <next>
                                                  <block type="comment" id="EvQ+c:QRIZ?4)K0%nPi`">
                                                    <field name="COMMENT">OnChanged</field>
                                                    <next>
                                                      <block type="on_ext" id="{l$0:AZPR:z*%BJmbt-}">
                                                        <mutation xmlns="http://www.w3.org/1999/xhtml" items="3"></mutation>
                                                        <field name="CONDITION">ne</field>
                                                        <field name="ACK_CONDITION"></field>
                                                        <value name="OID0">
                                                          <shadow type="field_oid" id="{#]iwRN1+1sL9w(8~=FM">
                                                            <field name="oid">hue-extended.0.groups.001-flur.state.any_on</field>
                                                          </shadow>
                                                        </value>
                                                        <value name="OID1">
                                                          <shadow type="field_oid" id=":RQ}:j(AC4NATbdCG#*C">
                                                            <field name="oid">hue-extended.0.groups.002-schlafzimmer.state.any_on</field>
                                                          </shadow>
                                                        </value>
                                                        <value name="OID2">
                                                          <shadow type="field_oid" id="I8Hi@4cZ`pvko|u6fB_$">
                                                            <field name="oid">hue-extended.0.groups.007-küche.state.any_on</field>
                                                          </shadow>
                                                        </value>
                                                        <statement name="STATEMENT">
                                                          <block type="controls_if" id="H+/h[UGFJdeypbah!)~t">
                                                            <mutation else="1"></mutation>
                                                            <value name="IF0">
                                                              <block type="time_compare_ex" id="YiF,C.54LVlO/Twxv0_h">
                                                                <mutation xmlns="http://www.w3.org/1999/xhtml" end_time="false" actual_time="true"></mutation>
                                                                <field name="USE_ACTUAL_TIME">TRUE</field>
                                                                <field name="OPTION">&gt;=</field>
                                                                <value name="START_TIME">
                                                                  <shadow xmlns="http://www.w3.org/1999/xhtml" type="text" id="Z9sE|+FeqguoLYvB6hRc">
                                                                    <field name="TEXT">12:00</field>
                                                                  </shadow>
                                                                  <block type="variables_get" id="gT~CG-k$Z8StBp3d6axc">
                                                                    <field name="VAR" id="U.QkeAJw`phS!}m10j*!">start_time</field>
                                                                  </block>
                                                                </value>
                                                              </block>
                                                            </value>
                                                            <statement name="DO0">
                                                              <block type="variables_set" id="}izAT*wxw+n29,h#A2ny">
                                                                <field name="VAR" id="4NKF[j.S)8%aG}S[214B">ct_zw</field>
                                                                <value name="VALUE">
                                                                  <block type="math_arithmetic" id="tz6pngj:8Fg3y~q8Jx]}">
                                                                    <field name="OP">MINUS</field>
                                                                    <value name="A">
                                                                      <shadow xmlns="http://www.w3.org/1999/xhtml" type="math_number" id=";u#12~`+(|F@GpGKv1z`">
                                                                        <field name="NUM">-2.5</field>
                                                                      </shadow>
                                                                      <block type="time_get" id="YF}!i?v?Um-(s{*RX~zN">
                                                                        <mutation xmlns="http://www.w3.org/1999/xhtml" format="false" language="false"></mutation>
                                                                        <field name="OPTION">mid</field>
                                                                      </block>
                                                                    </value>
                                                                    <value name="B">
                                                                      <shadow xmlns="http://www.w3.org/1999/xhtml" type="math_number" id="ZBPrfBpqKeP4B3=eW4iB">
                                                                        <field name="NUM">420</field>
                                                                      </shadow>
                                                                      <block type="variables_get" id="0}fTp`4ZPJ-I;=nmZa6J">
                                                                        <field name="VAR" id="sBH4pe?H#c,;~ntZqq%4">start_time_min</field>
                                                                      </block>
                                                                    </value>
                                                                  </block>
                                                                </value>
                                                                <next>
                                                                  <block type="variables_set" id="jbmMW=~PObLIWvKs/c%P">
                                                                    <field name="VAR" id="4NKF[j.S)8%aG}S[214B">ct_zw</field>
                                                                    <value name="VALUE">
                                                                      <block type="math_arithmetic" id="$?eeoTEczhD:i?ve|Z3a">
                                                                        <field name="OP">DIVIDE</field>
                                                                        <value name="A">
                                                                          <shadow xmlns="http://www.w3.org/1999/xhtml" type="math_number" id="|_*jOh}pjCIOT.N,gW#p">
                                                                            <field name="NUM">1</field>
                                                                          </shadow>
                                                                          <block type="variables_get" id="lCji@|rPjJd0$gn^rHt%">
                                                                            <field name="VAR" id="4NKF[j.S)8%aG}S[214B">ct_zw</field>
                                                                          </block>
                                                                        </value>
                                                                        <value name="B">
                                                                          <shadow xmlns="http://www.w3.org/1999/xhtml" type="math_number" id="jpiM!Kd1Niy`qzZugVUY">
                                                                            <field name="NUM">2.99</field>
                                                                          </shadow>
                                                                          <block type="variables_get" id="t(m{j].zcd1M1MV~P{(N">
                                                                            <field name="VAR" id="r)jJ]7}]DDc#{Jb%Nd0!">ct_time</field>
                                                                          </block>
                                                                        </value>
                                                                      </block>
                                                                    </value>
                                                                    <next>
                                                                      <block type="variables_set" id="XI%5jR-/o5HcJj]BBe/8">
                                                                        <field name="VAR" id="4}t#r$r(ZcCF%9e[)q}Y">ct</field>
                                                                        <value name="VALUE">
                                                                          <block type="math_arithmetic" id="yc9Hzl41Vr7dpRVA):K#">
                                                                            <field name="OP">MINUS</field>
                                                                            <value name="A">
                                                                              <shadow xmlns="http://www.w3.org/1999/xhtml" type="math_number" id="B3c5atj+5GwSPqezb]f|">
                                                                                <field name="NUM">1</field>
                                                                              </shadow>
                                                                              <block type="variables_get" id="spFF0ki%?^1quUY$eaN1">
                                                                                <field name="VAR" id="xUpDE,xjl+auoeU-Gmw$">ct_kalt</field>
                                                                              </block>
                                                                            </value>
                                                                            <value name="B">
                                                                              <shadow xmlns="http://www.w3.org/1999/xhtml" type="math_number" id="@Cv);cm+jmLIE_6pIdwt">
                                                                                <field name="NUM">1</field>
                                                                              </shadow>
                                                                              <block type="variables_get" id="f^H*[BT[Iiehq]x,$!VQ">
                                                                                <field name="VAR" id="4NKF[j.S)8%aG}S[214B">ct_zw</field>
                                                                              </block>
                                                                            </value>
                                                                          </block>
                                                                        </value>
                                                                        <next>
                                                                          <block type="variables_set" id="yzw=:[=z^(!JCWv]SJFy">
                                                                            <field name="VAR" id="4}t#r$r(ZcCF%9e[)q}Y">ct</field>
                                                                            <value name="VALUE">
                                                                              <block type="math_round" id="D[g]Lxi}[fcXF~[3*nLS">
                                                                                <field name="OP">ROUND</field>
                                                                                <value name="NUM">
                                                                                  <shadow xmlns="http://www.w3.org/1999/xhtml" type="math_number" id="DtG:W!:iTe`^~oR9Vghh">
                                                                                    <field name="NUM">3.1</field>
                                                                                  </shadow>
                                                                                  <block type="variables_get" id="!UQ:uhi+yJ5Q{{|GOP#8">
                                                                                    <field name="VAR" id="4}t#r$r(ZcCF%9e[)q}Y">ct</field>
                                                                                  </block>
                                                                                </value>
                                                                              </block>
                                                                            </value>
                                                                            <next>
                                                                              <block type="controls_if" id="{n;5(B~GCrqACSwy3EpP">
                                                                                <value name="IF0">
                                                                                  <block type="logic_compare" id="z}ZHejjS*}(|4utA](KY">
                                                                                    <field name="OP">LTE</field>
                                                                                    <value name="A">
                                                                                      <block type="variables_get" id="]gbD/AA9,^V{#Gc+oCaV">
                                                                                        <field name="VAR" id="4}t#r$r(ZcCF%9e[)q}Y">ct</field>
                                                                                      </block>
                                                                                    </value>
                                                                                    <value name="B">
                                                                                      <block type="variables_get" id="fjWDCiU4(H1{|u?e+H%t">
                                                                                        <field name="VAR" id="e(5.6q=au~Laz1+`/j(,">ct_warm</field>
                                                                                      </block>
                                                                                    </value>
                                                                                  </block>
                                                                                </value>
                                                                                <statement name="DO0">
                                                                                  <block type="variables_set" id="0MX2C?3=F?_`n_n-CcjD">
                                                                                    <field name="VAR" id="4}t#r$r(ZcCF%9e[)q}Y">ct</field>
                                                                                    <value name="VALUE">
                                                                                      <block type="variables_get" id="Cuo4/CI(0L10,UYc,g~r">
                                                                                        <field name="VAR" id="e(5.6q=au~Laz1+`/j(,">ct_warm</field>
                                                                                      </block>
                                                                                    </value>
                                                                                  </block>
                                                                                </statement>
                                                                              </block>
                                                                            </next>
                                                                          </block>
                                                                        </next>
                                                                      </block>
                                                                    </next>
                                                                  </block>
                                                                </next>
                                                              </block>
                                                            </statement>
                                                            <statement name="ELSE">
                                                              <block type="variables_set" id="?P{tfvc8Xz9`yRz8aK+?">
                                                                <field name="VAR" id="4}t#r$r(ZcCF%9e[)q}Y">ct</field>
                                                                <value name="VALUE">
                                                                  <block type="variables_get" id="VPX$Rg;J|TK2~adY,FCy">
                                                                    <field name="VAR" id="e(5.6q=au~Laz1+`/j(,">ct_warm</field>
                                                                  </block>
                                                                </value>
                                                              </block>
                                                            </statement>
                                                            <next>
                                                              <block type="comment" id="ZSenWM!{Z_FonO;;3G^V">
                                                                <field name="COMMENT">Flur</field>
                                                                <next>
                                                                  <block type="controls_if" id="^w~LV^QUwbgbm)smX}uJ">
                                                                    <value name="IF0">
                                                                      <block type="logic_compare" id="5`]f3G`.jS?bA?jHmnZI">
                                                                        <field name="OP">EQ</field>
                                                                        <value name="A">
                                                                          <block type="get_value" id="bKZ62o(gXlxie^-B-4yR">
                                                                            <field name="ATTR">val</field>
                                                                            <field name="OID">hue-extended.0.groups.001-flur.state.any_on</field>
                                                                          </block>
                                                                        </value>
                                                                        <value name="B">
                                                                          <block type="logic_boolean" id="XxV!X~pBdQhKH(4lN2`]">
                                                                            <field name="BOOL">TRUE</field>
                                                                          </block>
                                                                        </value>
                                                                      </block>
                                                                    </value>
                                                                    <statement name="DO0">
                                                                      <block type="control" id="+`kg@%EYjCeW11vY[TT5">
                                                                        <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
                                                                        <field name="OID">hue-extended.0.groups.001-flur.action.colorTemperature</field>
                                                                        <field name="WITH_DELAY">FALSE</field>
                                                                        <value name="VALUE">
                                                                          <block type="variables_get" id="a7*EjD-ceD8^m/.CN@9f">
                                                                            <field name="VAR" id="4}t#r$r(ZcCF%9e[)q}Y">ct</field>
                                                                          </block>
                                                                        </value>
                                                                      </block>
                                                                    </statement>
                                                                    <next>
                                                                      <block type="comment" id="nDKws~_|b@_,rsp/$Eqz">
                                                                        <field name="COMMENT">Schlafzimmer</field>
                                                                        <next>
                                                                          <block type="controls_if" id="sbX3c}PD1pfJk$v,an`2">
                                                                            <value name="IF0">
                                                                              <block type="logic_compare" id="(%-TD|:{?sq!dZhX~@ZN">
                                                                                <field name="OP">EQ</field>
                                                                                <value name="A">
                                                                                  <block type="get_value" id="f/R]2Ed=;uy35OrY*Of.">
                                                                                    <field name="ATTR">val</field>
                                                                                    <field name="OID">hue-extended.0.groups.002-schlafzimmer.state.any_on</field>
                                                                                  </block>
                                                                                </value>
                                                                                <value name="B">
                                                                                  <block type="logic_boolean" id="q@fifTdcNE,WR0^RISw#">
                                                                                    <field name="BOOL">TRUE</field>
                                                                                  </block>
                                                                                </value>
                                                                              </block>
                                                                            </value>
                                                                            <statement name="DO0">
                                                                              <block type="control" id="ijEb*vFluU1EiYk7Hj.~">
                                                                                <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
                                                                                <field name="OID">hue-extended.0.groups.002-schlafzimmer.action.colorTemperature</field>
                                                                                <field name="WITH_DELAY">FALSE</field>
                                                                                <value name="VALUE">
                                                                                  <block type="variables_get" id="|{P}i(_LsED(lfp,+Hm^">
                                                                                    <field name="VAR" id="4}t#r$r(ZcCF%9e[)q}Y">ct</field>
                                                                                  </block>
                                                                                </value>
                                                                              </block>
                                                                            </statement>
                                                                            <next>
                                                                              <block type="comment" id="}i5Km2.R5{yRmr[^F0Db">
                                                                                <field name="COMMENT">Küche</field>
                                                                                <next>
                                                                                  <block type="controls_if" id="uH|;;Kpo.50Fuj%j9gm:">
                                                                                    <value name="IF0">
                                                                                      <block type="logic_compare" id="_--c3dK2UErQ07+w%1FN">
                                                                                        <field name="OP">EQ</field>
                                                                                        <value name="A">
                                                                                          <block type="get_value" id="Sn?pyq9RJN{-8I}HRe|Y">
                                                                                            <field name="ATTR">val</field>
                                                                                            <field name="OID">hue-extended.0.groups.007-küche.state.any_on</field>
                                                                                          </block>
                                                                                        </value>
                                                                                        <value name="B">
                                                                                          <block type="logic_boolean" id="_rC!X0XI:C)YjOPu:IwA">
                                                                                            <field name="BOOL">TRUE</field>
                                                                                          </block>
                                                                                        </value>
                                                                                      </block>
                                                                                    </value>
                                                                                    <statement name="DO0">
                                                                                      <block type="control" id="``V7j8_V)EIqX%XW/O?$">
                                                                                        <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
                                                                                        <field name="OID">hue-extended.0.groups.007-küche.action.colorTemperature</field>
                                                                                        <field name="WITH_DELAY">FALSE</field>
                                                                                        <value name="VALUE">
                                                                                          <block type="variables_get" id="j/kUtB!IP.0lD8v*EV8I">
                                                                                            <field name="VAR" id="4}t#r$r(ZcCF%9e[)q}Y">ct</field>
                                                                                          </block>
                                                                                        </value>
                                                                                      </block>
                                                                                    </statement>
                                                                                  </block>
                                                                                </next>
                                                                              </block>
                                                                            </next>
                                                                          </block>
                                                                        </next>
                                                                      </block>
                                                                    </next>
                                                                  </block>
                                                                </next>
                                                              </block>
                                                            </next>
                                                          </block>
                                                        </statement>
                                                        <next>
                                                          <block type="comment" id="[8A1]**q)e-?:Y|mve)Q">
                                                            <field name="COMMENT">Zeitplan</field>
                                                            <next>
                                                              <block type="schedule" id="},@HJwnQ/2Mb8s,QkgzX">
                                                                <field name="SCHEDULE">*/5 * * * *</field>
                                                                <statement name="STATEMENT">
                                                                  <block type="controls_if" id="nY@h38XNPRHl!R.D|tT]">
                                                                    <mutation else="1"></mutation>
                                                                    <value name="IF0">
                                                                      <block type="time_compare_ex" id="WaxY*:+A,R8v?WV6KD$/">
                                                                        <mutation xmlns="http://www.w3.org/1999/xhtml" end_time="false" actual_time="true"></mutation>
                                                                        <field name="USE_ACTUAL_TIME">TRUE</field>
                                                                        <field name="OPTION">&gt;=</field>
                                                                        <value name="START_TIME">
                                                                          <shadow xmlns="http://www.w3.org/1999/xhtml" type="text">
                                                                            <field name="TEXT">12:00</field>
                                                                          </shadow>
                                                                          <block type="variables_get" id="w*uCf*L+@{#hq.aE0p_D">
                                                                            <field name="VAR" id="U.QkeAJw`phS!}m10j*!">start_time</field>
                                                                          </block>
                                                                        </value>
                                                                      </block>
                                                                    </value>
                                                                    <statement name="DO0">
                                                                      <block type="variables_set" id="A[RhCX(x)a1C~H,+bcO]">
                                                                        <field name="VAR" id="4NKF[j.S)8%aG}S[214B">ct_zw</field>
                                                                        <value name="VALUE">
                                                                          <block type="math_arithmetic" id="{;?],!~,I0}gL9|sn_=F">
                                                                            <field name="OP">MINUS</field>
                                                                            <value name="A">
                                                                              <shadow xmlns="http://www.w3.org/1999/xhtml" type="math_number">
                                                                                <field name="NUM">-2.5</field>
                                                                              </shadow>
                                                                              <block type="time_get" id="Z.a}v`.(ENWNw1d]7{V=">
                                                                                <mutation xmlns="http://www.w3.org/1999/xhtml" format="false" language="false"></mutation>
                                                                                <field name="OPTION">mid</field>
                                                                              </block>
                                                                            </value>
                                                                            <value name="B">
                                                                              <shadow xmlns="http://www.w3.org/1999/xhtml" type="math_number">
                                                                                <field name="NUM">420</field>
                                                                              </shadow>
                                                                              <block type="variables_get" id="s]r.cdbN5]sp:B-puk}w">
                                                                                <field name="VAR" id="sBH4pe?H#c,;~ntZqq%4">start_time_min</field>
                                                                              </block>
                                                                            </value>
                                                                          </block>
                                                                        </value>
                                                                        <next>
                                                                          <block type="variables_set" id="+8aPvfZJJ}Dc3Xz%up1.">
                                                                            <field name="VAR" id="4NKF[j.S)8%aG}S[214B">ct_zw</field>
                                                                            <value name="VALUE">
                                                                              <block type="math_arithmetic" id="*/(%uX5ZNKlhhi-tT[{B">
                                                                                <field name="OP">DIVIDE</field>
                                                                                <value name="A">
                                                                                  <shadow xmlns="http://www.w3.org/1999/xhtml" type="math_number">
                                                                                    <field name="NUM">1</field>
                                                                                  </shadow>
                                                                                  <block type="variables_get" id="!_t/(]le3(mY/WvdQN{X">
                                                                                    <field name="VAR" id="4NKF[j.S)8%aG}S[214B">ct_zw</field>
                                                                                  </block>
                                                                                </value>
                                                                                <value name="B">
                                                                                  <shadow xmlns="http://www.w3.org/1999/xhtml" type="math_number">
                                                                                    <field name="NUM">2.99</field>
                                                                                  </shadow>
                                                                                  <block type="variables_get" id="cQR8hV$62+{Mi,GF?(Ep">
                                                                                    <field name="VAR" id="r)jJ]7}]DDc#{Jb%Nd0!">ct_time</field>
                                                                                  </block>
                                                                                </value>
                                                                              </block>
                                                                            </value>
                                                                            <next>
                                                                              <block type="variables_set" id="WS[((P7^8x3JrLW{6Y|j">
                                                                                <field name="VAR" id="4}t#r$r(ZcCF%9e[)q}Y">ct</field>
                                                                                <value name="VALUE">
                                                                                  <block type="math_arithmetic" id="RW}qz*Cffl14`2??wg!A">
                                                                                    <field name="OP">MINUS</field>
                                                                                    <value name="A">
                                                                                      <shadow xmlns="http://www.w3.org/1999/xhtml" type="math_number">
                                                                                        <field name="NUM">1</field>
                                                                                      </shadow>
                                                                                      <block type="variables_get" id="Q(:@3exCp%QsW|geBl3X">
                                                                                        <field name="VAR" id="xUpDE,xjl+auoeU-Gmw$">ct_kalt</field>
                                                                                      </block>
                                                                                    </value>
                                                                                    <value name="B">
                                                                                      <shadow xmlns="http://www.w3.org/1999/xhtml" type="math_number">
                                                                                        <field name="NUM">1</field>
                                                                                      </shadow>
                                                                                      <block type="variables_get" id="FGYJE^qOo~}[c]m^8G?R">
                                                                                        <field name="VAR" id="4NKF[j.S)8%aG}S[214B">ct_zw</field>
                                                                                      </block>
                                                                                    </value>
                                                                                  </block>
                                                                                </value>
                                                                                <next>
                                                                                  <block type="variables_set" id="YHLOVe}:2Vn`n8)=OWq(">
                                                                                    <field name="VAR" id="4}t#r$r(ZcCF%9e[)q}Y">ct</field>
                                                                                    <value name="VALUE">
                                                                                      <block type="math_round" id="+vyE]RRhnBhr[vK|6_1y">
                                                                                        <field name="OP">ROUND</field>
                                                                                        <value name="NUM">
                                                                                          <shadow xmlns="http://www.w3.org/1999/xhtml" type="math_number">
                                                                                            <field name="NUM">3.1</field>
                                                                                          </shadow>
                                                                                          <block type="variables_get" id="j^kW8w1Q51vX5],d}APr">
                                                                                            <field name="VAR" id="4}t#r$r(ZcCF%9e[)q}Y">ct</field>
                                                                                          </block>
                                                                                        </value>
                                                                                      </block>
                                                                                    </value>
                                                                                    <next>
                                                                                      <block type="controls_if" id="RTugF{bNy6MN*O/D{y:.">
                                                                                        <value name="IF0">
                                                                                          <block type="logic_compare" id="lAz]qy24.O].hTho=iWK">
                                                                                            <field name="OP">LTE</field>
                                                                                            <value name="A">
                                                                                              <block type="variables_get" id="0(M1RL~x]S+Sh|Y7Dg9!">
                                                                                                <field name="VAR" id="4}t#r$r(ZcCF%9e[)q}Y">ct</field>
                                                                                              </block>
                                                                                            </value>
                                                                                            <value name="B">
                                                                                              <block type="variables_get" id="dO52=G4*3yQH[|mc6_Hd">
                                                                                                <field name="VAR" id="e(5.6q=au~Laz1+`/j(,">ct_warm</field>
                                                                                              </block>
                                                                                            </value>
                                                                                          </block>
                                                                                        </value>
                                                                                        <statement name="DO0">
                                                                                          <block type="variables_set" id="j3NrVewR=,^qEDl%oFA]">
                                                                                            <field name="VAR" id="4}t#r$r(ZcCF%9e[)q}Y">ct</field>
                                                                                            <value name="VALUE">
                                                                                              <block type="variables_get" id="!:ze##b3S5Z+[/Wrht.7">
                                                                                                <field name="VAR" id="e(5.6q=au~Laz1+`/j(,">ct_warm</field>
                                                                                              </block>
                                                                                            </value>
                                                                                          </block>
                                                                                        </statement>
                                                                                      </block>
                                                                                    </next>
                                                                                  </block>
                                                                                </next>
                                                                              </block>
                                                                            </next>
                                                                          </block>
                                                                        </next>
                                                                      </block>
                                                                    </statement>
                                                                    <statement name="ELSE">
                                                                      <block type="variables_set" id="k;nYBK=IIUQpNC|70XT;">
                                                                        <field name="VAR" id="4}t#r$r(ZcCF%9e[)q}Y">ct</field>
                                                                        <value name="VALUE">
                                                                          <block type="variables_get" id="^joA91y#r,C!$?j!n6+=">
                                                                            <field name="VAR" id="e(5.6q=au~Laz1+`/j(,">ct_warm</field>
                                                                          </block>
                                                                        </value>
                                                                      </block>
                                                                    </statement>
                                                                    <next>
                                                                      <block type="comment" id="o8z2Y2b;;$^w?ft]LC#7">
                                                                        <field name="COMMENT">Flur</field>
                                                                        <next>
                                                                          <block type="controls_if" id="Sb}kUT)p2YOis_Dk62?.">
                                                                            <value name="IF0">
                                                                              <block type="logic_compare" id="uRiRc?aX*:G!+Y(/a^*v">
                                                                                <field name="OP">EQ</field>
                                                                                <value name="A">
                                                                                  <block type="get_value" id="Fh?lo6mU,Yc*tNhQ{bs_">
                                                                                    <field name="ATTR">val</field>
                                                                                    <field name="OID">hue-extended.0.groups.001-flur.state.any_on</field>
                                                                                  </block>
                                                                                </value>
                                                                                <value name="B">
                                                                                  <block type="logic_boolean" id="6@)30/,~_dzl)[p,,or$">
                                                                                    <field name="BOOL">TRUE</field>
                                                                                  </block>
                                                                                </value>
                                                                              </block>
                                                                            </value>
                                                                            <statement name="DO0">
                                                                              <block type="control" id="yuVuY=o*EX6),pW0F|h*">
                                                                                <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
                                                                                <field name="OID">hue-extended.0.groups.001-flur.action.colorTemperature</field>
                                                                                <field name="WITH_DELAY">FALSE</field>
                                                                                <value name="VALUE">
                                                                                  <block type="variables_get" id="Ivph26`Bg8XFR8ZGCm+U">
                                                                                    <field name="VAR" id="4}t#r$r(ZcCF%9e[)q}Y">ct</field>
                                                                                  </block>
                                                                                </value>
                                                                              </block>
                                                                            </statement>
                                                                            <next>
                                                                              <block type="comment" id="`2c{ys@yiT{EPTvM*MHL">
                                                                                <field name="COMMENT">Schlafzimmer</field>
                                                                                <next>
                                                                                  <block type="controls_if" id="WSwKtBb+;m%@lF](ttg^">
                                                                                    <value name="IF0">
                                                                                      <block type="logic_compare" id="RJOYg.7-kD,Xvnk4Np^~">
                                                                                        <field name="OP">EQ</field>
                                                                                        <value name="A">
                                                                                          <block type="get_value" id="DRZ5$cI}TV]uT6d~pS_p">
                                                                                            <field name="ATTR">val</field>
                                                                                            <field name="OID">hue-extended.0.groups.002-schlafzimmer.state.any_on</field>
                                                                                          </block>
                                                                                        </value>
                                                                                        <value name="B">
                                                                                          <block type="logic_boolean" id="ecNW!ZWWW|E*8*6%L9N6">
                                                                                            <field name="BOOL">TRUE</field>
                                                                                          </block>
                                                                                        </value>
                                                                                      </block>
                                                                                    </value>
                                                                                    <statement name="DO0">
                                                                                      <block type="control" id="#uA0t852g#qxS}TzLu[G">
                                                                                        <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
                                                                                        <field name="OID">hue-extended.0.groups.002-schlafzimmer.action.colorTemperature</field>
                                                                                        <field name="WITH_DELAY">FALSE</field>
                                                                                        <value name="VALUE">
                                                                                          <block type="variables_get" id="8Gj=jG,ScM(`gi0TlN;`">
                                                                                            <field name="VAR" id="4}t#r$r(ZcCF%9e[)q}Y">ct</field>
                                                                                          </block>
                                                                                        </value>
                                                                                      </block>
                                                                                    </statement>
                                                                                    <next>
                                                                                      <block type="comment" id="|~2}Ws)/UVtuY2gji[3~">
                                                                                        <field name="COMMENT">Küche</field>
                                                                                        <next>
                                                                                          <block type="controls_if" id="{S?^?3f{8vn@uC9RQ2GS">
                                                                                            <value name="IF0">
                                                                                              <block type="logic_compare" id="W/xQS]V3MzXW:@Dd/o`r">
                                                                                                <field name="OP">EQ</field>
                                                                                                <value name="A">
                                                                                                  <block type="get_value" id="s?SsYmVZI3JOf(6,-=#`">
                                                                                                    <field name="ATTR">val</field>
                                                                                                    <field name="OID">hue-extended.0.groups.007-küche.state.any_on</field>
                                                                                                  </block>
                                                                                                </value>
                                                                                                <value name="B">
                                                                                                  <block type="logic_boolean" id="O1t#J(dFVu95SVL4}1zO">
                                                                                                    <field name="BOOL">TRUE</field>
                                                                                                  </block>
                                                                                                </value>
                                                                                              </block>
                                                                                            </value>
                                                                                            <statement name="DO0">
                                                                                              <block type="control" id="GjtxRC=q{$PKQq/3KD/j">
                                                                                                <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
                                                                                                <field name="OID">hue-extended.0.groups.007-küche.action.colorTemperature</field>
                                                                                                <field name="WITH_DELAY">FALSE</field>
                                                                                                <value name="VALUE">
                                                                                                  <block type="variables_get" id=":*-?Jhnmye[#$GH6(XeQ">
                                                                                                    <field name="VAR" id="4}t#r$r(ZcCF%9e[)q}Y">ct</field>
                                                                                                  </block>
                                                                                                </value>
                                                                                              </block>
                                                                                            </statement>
                                                                                          </block>
                                                                                        </next>
                                                                                      </block>
                                                                                    </next>
                                                                                  </block>
                                                                                </next>
                                                                              </block>
                                                                            </next>
                                                                          </block>
                                                                        </next>
                                                                      </block>
                                                                    </next>
                                                                  </block>
                                                                </statement>
                                                              </block>
                                                            </next>
                                                          </block>
                                                        </next>
                                                      </block>
                                                    </next>
                                                  </block>
                                                </next>
                                              </block>
                                            </next>
                                          </block>
                                        </next>
                                      </block>
                                    </next>
                                  </block>
                                </next>
                              </block>
                            </next>
                          </block>
                        </next>
                      </block>
                    </next>
                  </block>
                </next>
              </block>
            </next>
          </block>
        </next>
      </block>
    </xml>
    

    Für die Kommunikation zur Philips HUE ist das Script aktuell auf den HUE-Extend Adapter ausgelegt.

    Für Fragen oder Anregungen stehe ich jederzeit zur Verfügung.

    Mfg

    JackDanielJ 1 Antwort Letzte Antwort
    0
    • SpegeliS Spegeli

      Servus liebe Community
      für meine Philips HUE (GU10 Ambiance White) welche sich überall in meiner Wohnung befinden, habe ich ein Blockly Script geschrieben um einen Temperatur Verlauf von Kalt Weiß Morgens zu Warm Weiß Abends über den Tag hinweg zu bekommen.

      Unbenannt.png

      Wie auf dem Screenshot zu sehen, müsst ihr lediglich eine Startzeit Angaben ab wann der Temperatur Verlauf beginnen soll und eine Endzeit an der der max. Temperatur Verlauf dann erreicht ist.
      Die Angabe sollte im 24 Stunden Format erfolgen und die Start und Endzeit sollten innerhalb von 00-24 Uhr des selben Tages liegen.
      An stelle von einem Manuellen Start und Endzeit könnte man auch von einem Objekt z.b. den Sonnenauf- und Untergang abfragen.

      Zu guter Letzt könnt ihr noch einen einen Min. und Max. Wert für die Farbtemperatur angeben.

      Das Script macht dann folgendes:
      Es errechnet die Laufzeit in Minuten (Endzeit - Startzeit).
      Es errechnet die Different zwischen der Min. und Max. Farbtemperatur.
      Anschließend teilt es die Laufzeit durch diese Differenz um so herauszufinden in welchem Minuten bzw. Sekunden Abstand sich die Farbtemperatur ändert.

      Das Script passt die Farbtemperatur ein mal an wenn sich eine Lampen Gruppen Einschaltet und dann alle alle 5 Minuten.

      Im Zeitplan selbst wird erst mal Kontrolliert ob die Lampe aktuell an ist, da eine Änderung der Farbtemperatur sonst die Lampe einschalten würde, was wir ja aber nicht wollen wenn die Lampe aktuell ausgeschalten ist.

      Nun gibt es 2 fälle:
      Aktuelle Zeit ist gleich oder größer der von uns angegebenen Startzeit.
      (Aktuelle Zeit beginnt immer um 00 Uhr zu zählen)
      Dann Rechnet das Script die Aktuelle Tageszeit in Minuten - die Start Zeit in Minuten / die Zeit in welchem Abstand sich die Farbtemperatur ändert.
      Anschließend Rechnet es noch den Max. Kalt Wert - dem Zwischenergebnis und erhält dann daraus die Farbtemperatur welche dann an unsere Lampe weitergegeben wird.

      Und wenn die aktuelle Zeit kleiner ist als die Start Zeit dann wird automatisch der Max. Warm Wert genommen.

      In meinem Fall beginnt die Änderung der Farbtemperatur um 7Uhr morgens mit einem Kaltweiß von 6500K und Endet um 22Uhr mit einem Warmen Weiß von 2700K.

      Und hier zu guter Letztdas Script:

      <xml xmlns="https://developers.google.com/blockly/xml">
        <variables>
          <variable id="U.QkeAJw`phS!}m10j*!">start_time</variable>
          <variable id="a_lA!%0dp;`EUQ2Hki-`">end_time</variable>
          <variable id="sBH4pe?H#c,;~ntZqq%4">start_time_min</variable>
          <variable id="|l1!0NSc@(@/8@,?%^Oj">end_time_min</variable>
          <variable id="OCVOX*}%@Y0mIa-r2!@2">run_time_min</variable>
          <variable id="xUpDE,xjl+auoeU-Gmw$">ct_kalt</variable>
          <variable id="e(5.6q=au~Laz1+`/j(,">ct_warm</variable>
          <variable id="cPly.2{*wN|ESq5_~;]r">ct_diff</variable>
          <variable id="r)jJ]7}]DDc#{Jb%Nd0!">ct_time</variable>
          <variable id="4NKF[j.S)8%aG}S[214B">ct_zw</variable>
          <variable id="4}t#r$r(ZcCF%9e[)q}Y">ct</variable>
        </variables>
        <block type="comment" id="N.!@}7+YnQ10Ra:4qU?9" x="-2512" y="-1937">
          <field name="COMMENT">Start- / Endzeit </field>
          <next>
            <block type="variables_set" id="2h*y)#Gi`iulqo(yCzYc">
              <field name="VAR" id="U.QkeAJw`phS!}m10j*!">start_time</field>
              <value name="VALUE">
                <block type="text" id="ru1_TH;1~_B,,gs%v_?O">
                  <field name="TEXT">7:00</field>
                </block>
              </value>
              <next>
                <block type="variables_set" id="4Ni8:(_a(X($(kTBBV#l">
                  <field name="VAR" id="a_lA!%0dp;`EUQ2Hki-`">end_time</field>
                  <value name="VALUE">
                    <block type="text" id="j_@*sd}Ou2~zfoEMKX|:">
                      <field name="TEXT">22:00</field>
                    </block>
                  </value>
                  <next>
                    <block type="variables_set" id="W_gAs7%V?bvJlkH{=^*I">
                      <field name="VAR" id="sBH4pe?H#c,;~ntZqq%4">start_time_min</field>
                      <value name="VALUE">
                        <block type="convert_from_date" id="*rZf1zC%mZyp0Y=1~?xs">
                          <mutation xmlns="http://www.w3.org/1999/xhtml" format="false" language="false"></mutation>
                          <field name="OPTION">mid</field>
                          <value name="VALUE">
                            <block type="variables_get" id=":~=W:5v}7|-gOI26l;J-">
                              <field name="VAR" id="U.QkeAJw`phS!}m10j*!">start_time</field>
                            </block>
                          </value>
                        </block>
                      </value>
                      <next>
                        <block type="variables_set" id="M!u`3@NCeS%v}RO:=7Cm">
                          <field name="VAR" id="|l1!0NSc@(@/8@,?%^Oj">end_time_min</field>
                          <value name="VALUE">
                            <block type="convert_from_date" id=":dvfTNANfLJPHR1;pcn%">
                              <mutation xmlns="http://www.w3.org/1999/xhtml" format="false" language="false"></mutation>
                              <field name="OPTION">mid</field>
                              <value name="VALUE">
                                <block type="variables_get" id="%:qu9-tk7Bk]_!:sI2#y">
                                  <field name="VAR" id="a_lA!%0dp;`EUQ2Hki-`">end_time</field>
                                </block>
                              </value>
                            </block>
                          </value>
                          <next>
                            <block type="variables_set" id="b3m*W]+rxLmEzzdd[3(@">
                              <field name="VAR" id="OCVOX*}%@Y0mIa-r2!@2">run_time_min</field>
                              <value name="VALUE">
                                <block type="math_arithmetic" id="4=#hpI/#OM_C(0XL2j1-">
                                  <field name="OP">MINUS</field>
                                  <value name="A">
                                    <shadow xmlns="http://www.w3.org/1999/xhtml" type="math_number" id="`;FS@lnp-zT6I0w;Pt*C">
                                      <field name="NUM">1</field>
                                    </shadow>
                                    <block type="variables_get" id="/pYvcXDaM3=ZuZv%DRgL">
                                      <field name="VAR" id="|l1!0NSc@(@/8@,?%^Oj">end_time_min</field>
                                    </block>
                                  </value>
                                  <value name="B">
                                    <shadow xmlns="http://www.w3.org/1999/xhtml" type="math_number" id="f`|Ub7T/`gZ;`enJAE]=">
                                      <field name="NUM">1</field>
                                    </shadow>
                                    <block type="variables_get" id="YX(8e,,[?1FLOS(3g7_b">
                                      <field name="VAR" id="sBH4pe?H#c,;~ntZqq%4">start_time_min</field>
                                    </block>
                                  </value>
                                </block>
                              </value>
                              <next>
                                <block type="comment" id="of6vNLL7/,CfpcO0Eh(j">
                                  <field name="COMMENT">Min. / Max. Temperatur</field>
                                  <next>
                                    <block type="variables_set" id="pWUa=~IYGV3c/Y(j*n,i">
                                      <field name="VAR" id="xUpDE,xjl+auoeU-Gmw$">ct_kalt</field>
                                      <value name="VALUE">
                                        <block type="convert_tonumber" id="|dp;Bh)5p)cN|j)^Niix">
                                          <value name="VALUE">
                                            <block type="text" id="KhI)rJZXVS_`a.eD^$?S">
                                              <field name="TEXT">6500</field>
                                            </block>
                                          </value>
                                        </block>
                                      </value>
                                      <next>
                                        <block type="variables_set" id="SX5mOY|]e;g[VGO6)ZM8">
                                          <field name="VAR" id="e(5.6q=au~Laz1+`/j(,">ct_warm</field>
                                          <value name="VALUE">
                                            <block type="convert_tonumber" id="7TGU#vJX`7UmB;#?z|B4">
                                              <value name="VALUE">
                                                <block type="text" id="8[nvk?trM_zbiwtiv?M7">
                                                  <field name="TEXT">2000</field>
                                                </block>
                                              </value>
                                            </block>
                                          </value>
                                          <next>
                                            <block type="variables_set" id="}P]htP+t,1WNpogK*rWa">
                                              <field name="VAR" id="cPly.2{*wN|ESq5_~;]r">ct_diff</field>
                                              <value name="VALUE">
                                                <block type="math_arithmetic" id="Ybtm`*`1Ge|D~UsV8$G+">
                                                  <field name="OP">MINUS</field>
                                                  <value name="A">
                                                    <shadow xmlns="http://www.w3.org/1999/xhtml" type="math_number" id="`;FS@lnp-zT6I0w;Pt*C">
                                                      <field name="NUM">1</field>
                                                    </shadow>
                                                    <block type="variables_get" id="egecn:B)Be4SePedMY_%">
                                                      <field name="VAR" id="xUpDE,xjl+auoeU-Gmw$">ct_kalt</field>
                                                    </block>
                                                  </value>
                                                  <value name="B">
                                                    <shadow xmlns="http://www.w3.org/1999/xhtml" type="math_number" id="f`|Ub7T/`gZ;`enJAE]=">
                                                      <field name="NUM">1</field>
                                                    </shadow>
                                                    <block type="variables_get" id=",HP0GxB%SE$3tD*%Qx9S">
                                                      <field name="VAR" id="e(5.6q=au~Laz1+`/j(,">ct_warm</field>
                                                    </block>
                                                  </value>
                                                </block>
                                              </value>
                                              <next>
                                                <block type="variables_set" id="Q1jva^:yrlIwar{ylZXb">
                                                  <field name="VAR" id="r)jJ]7}]DDc#{Jb%Nd0!">ct_time</field>
                                                  <value name="VALUE">
                                                    <block type="math_arithmetic" id="RE9vbqQviPs)063n|hk/">
                                                      <field name="OP">DIVIDE</field>
                                                      <value name="A">
                                                        <shadow xmlns="http://www.w3.org/1999/xhtml" type="math_number" id="`;FS@lnp-zT6I0w;Pt*C">
                                                          <field name="NUM">1</field>
                                                        </shadow>
                                                        <block type="variables_get" id="!*q_,734RFG!Q!6BSBod">
                                                          <field name="VAR" id="OCVOX*}%@Y0mIa-r2!@2">run_time_min</field>
                                                        </block>
                                                      </value>
                                                      <value name="B">
                                                        <shadow xmlns="http://www.w3.org/1999/xhtml" type="math_number" id="f`|Ub7T/`gZ;`enJAE]=">
                                                          <field name="NUM">1</field>
                                                        </shadow>
                                                        <block type="variables_get" id="dR1TL@Xo`Dda2,qJA3y*">
                                                          <field name="VAR" id="cPly.2{*wN|ESq5_~;]r">ct_diff</field>
                                                        </block>
                                                      </value>
                                                    </block>
                                                  </value>
                                                  <next>
                                                    <block type="comment" id="EvQ+c:QRIZ?4)K0%nPi`">
                                                      <field name="COMMENT">OnChanged</field>
                                                      <next>
                                                        <block type="on_ext" id="{l$0:AZPR:z*%BJmbt-}">
                                                          <mutation xmlns="http://www.w3.org/1999/xhtml" items="3"></mutation>
                                                          <field name="CONDITION">ne</field>
                                                          <field name="ACK_CONDITION"></field>
                                                          <value name="OID0">
                                                            <shadow type="field_oid" id="{#]iwRN1+1sL9w(8~=FM">
                                                              <field name="oid">hue-extended.0.groups.001-flur.state.any_on</field>
                                                            </shadow>
                                                          </value>
                                                          <value name="OID1">
                                                            <shadow type="field_oid" id=":RQ}:j(AC4NATbdCG#*C">
                                                              <field name="oid">hue-extended.0.groups.002-schlafzimmer.state.any_on</field>
                                                            </shadow>
                                                          </value>
                                                          <value name="OID2">
                                                            <shadow type="field_oid" id="I8Hi@4cZ`pvko|u6fB_$">
                                                              <field name="oid">hue-extended.0.groups.007-küche.state.any_on</field>
                                                            </shadow>
                                                          </value>
                                                          <statement name="STATEMENT">
                                                            <block type="controls_if" id="H+/h[UGFJdeypbah!)~t">
                                                              <mutation else="1"></mutation>
                                                              <value name="IF0">
                                                                <block type="time_compare_ex" id="YiF,C.54LVlO/Twxv0_h">
                                                                  <mutation xmlns="http://www.w3.org/1999/xhtml" end_time="false" actual_time="true"></mutation>
                                                                  <field name="USE_ACTUAL_TIME">TRUE</field>
                                                                  <field name="OPTION">&gt;=</field>
                                                                  <value name="START_TIME">
                                                                    <shadow xmlns="http://www.w3.org/1999/xhtml" type="text" id="Z9sE|+FeqguoLYvB6hRc">
                                                                      <field name="TEXT">12:00</field>
                                                                    </shadow>
                                                                    <block type="variables_get" id="gT~CG-k$Z8StBp3d6axc">
                                                                      <field name="VAR" id="U.QkeAJw`phS!}m10j*!">start_time</field>
                                                                    </block>
                                                                  </value>
                                                                </block>
                                                              </value>
                                                              <statement name="DO0">
                                                                <block type="variables_set" id="}izAT*wxw+n29,h#A2ny">
                                                                  <field name="VAR" id="4NKF[j.S)8%aG}S[214B">ct_zw</field>
                                                                  <value name="VALUE">
                                                                    <block type="math_arithmetic" id="tz6pngj:8Fg3y~q8Jx]}">
                                                                      <field name="OP">MINUS</field>
                                                                      <value name="A">
                                                                        <shadow xmlns="http://www.w3.org/1999/xhtml" type="math_number" id=";u#12~`+(|F@GpGKv1z`">
                                                                          <field name="NUM">-2.5</field>
                                                                        </shadow>
                                                                        <block type="time_get" id="YF}!i?v?Um-(s{*RX~zN">
                                                                          <mutation xmlns="http://www.w3.org/1999/xhtml" format="false" language="false"></mutation>
                                                                          <field name="OPTION">mid</field>
                                                                        </block>
                                                                      </value>
                                                                      <value name="B">
                                                                        <shadow xmlns="http://www.w3.org/1999/xhtml" type="math_number" id="ZBPrfBpqKeP4B3=eW4iB">
                                                                          <field name="NUM">420</field>
                                                                        </shadow>
                                                                        <block type="variables_get" id="0}fTp`4ZPJ-I;=nmZa6J">
                                                                          <field name="VAR" id="sBH4pe?H#c,;~ntZqq%4">start_time_min</field>
                                                                        </block>
                                                                      </value>
                                                                    </block>
                                                                  </value>
                                                                  <next>
                                                                    <block type="variables_set" id="jbmMW=~PObLIWvKs/c%P">
                                                                      <field name="VAR" id="4NKF[j.S)8%aG}S[214B">ct_zw</field>
                                                                      <value name="VALUE">
                                                                        <block type="math_arithmetic" id="$?eeoTEczhD:i?ve|Z3a">
                                                                          <field name="OP">DIVIDE</field>
                                                                          <value name="A">
                                                                            <shadow xmlns="http://www.w3.org/1999/xhtml" type="math_number" id="|_*jOh}pjCIOT.N,gW#p">
                                                                              <field name="NUM">1</field>
                                                                            </shadow>
                                                                            <block type="variables_get" id="lCji@|rPjJd0$gn^rHt%">
                                                                              <field name="VAR" id="4NKF[j.S)8%aG}S[214B">ct_zw</field>
                                                                            </block>
                                                                          </value>
                                                                          <value name="B">
                                                                            <shadow xmlns="http://www.w3.org/1999/xhtml" type="math_number" id="jpiM!Kd1Niy`qzZugVUY">
                                                                              <field name="NUM">2.99</field>
                                                                            </shadow>
                                                                            <block type="variables_get" id="t(m{j].zcd1M1MV~P{(N">
                                                                              <field name="VAR" id="r)jJ]7}]DDc#{Jb%Nd0!">ct_time</field>
                                                                            </block>
                                                                          </value>
                                                                        </block>
                                                                      </value>
                                                                      <next>
                                                                        <block type="variables_set" id="XI%5jR-/o5HcJj]BBe/8">
                                                                          <field name="VAR" id="4}t#r$r(ZcCF%9e[)q}Y">ct</field>
                                                                          <value name="VALUE">
                                                                            <block type="math_arithmetic" id="yc9Hzl41Vr7dpRVA):K#">
                                                                              <field name="OP">MINUS</field>
                                                                              <value name="A">
                                                                                <shadow xmlns="http://www.w3.org/1999/xhtml" type="math_number" id="B3c5atj+5GwSPqezb]f|">
                                                                                  <field name="NUM">1</field>
                                                                                </shadow>
                                                                                <block type="variables_get" id="spFF0ki%?^1quUY$eaN1">
                                                                                  <field name="VAR" id="xUpDE,xjl+auoeU-Gmw$">ct_kalt</field>
                                                                                </block>
                                                                              </value>
                                                                              <value name="B">
                                                                                <shadow xmlns="http://www.w3.org/1999/xhtml" type="math_number" id="@Cv);cm+jmLIE_6pIdwt">
                                                                                  <field name="NUM">1</field>
                                                                                </shadow>
                                                                                <block type="variables_get" id="f^H*[BT[Iiehq]x,$!VQ">
                                                                                  <field name="VAR" id="4NKF[j.S)8%aG}S[214B">ct_zw</field>
                                                                                </block>
                                                                              </value>
                                                                            </block>
                                                                          </value>
                                                                          <next>
                                                                            <block type="variables_set" id="yzw=:[=z^(!JCWv]SJFy">
                                                                              <field name="VAR" id="4}t#r$r(ZcCF%9e[)q}Y">ct</field>
                                                                              <value name="VALUE">
                                                                                <block type="math_round" id="D[g]Lxi}[fcXF~[3*nLS">
                                                                                  <field name="OP">ROUND</field>
                                                                                  <value name="NUM">
                                                                                    <shadow xmlns="http://www.w3.org/1999/xhtml" type="math_number" id="DtG:W!:iTe`^~oR9Vghh">
                                                                                      <field name="NUM">3.1</field>
                                                                                    </shadow>
                                                                                    <block type="variables_get" id="!UQ:uhi+yJ5Q{{|GOP#8">
                                                                                      <field name="VAR" id="4}t#r$r(ZcCF%9e[)q}Y">ct</field>
                                                                                    </block>
                                                                                  </value>
                                                                                </block>
                                                                              </value>
                                                                              <next>
                                                                                <block type="controls_if" id="{n;5(B~GCrqACSwy3EpP">
                                                                                  <value name="IF0">
                                                                                    <block type="logic_compare" id="z}ZHejjS*}(|4utA](KY">
                                                                                      <field name="OP">LTE</field>
                                                                                      <value name="A">
                                                                                        <block type="variables_get" id="]gbD/AA9,^V{#Gc+oCaV">
                                                                                          <field name="VAR" id="4}t#r$r(ZcCF%9e[)q}Y">ct</field>
                                                                                        </block>
                                                                                      </value>
                                                                                      <value name="B">
                                                                                        <block type="variables_get" id="fjWDCiU4(H1{|u?e+H%t">
                                                                                          <field name="VAR" id="e(5.6q=au~Laz1+`/j(,">ct_warm</field>
                                                                                        </block>
                                                                                      </value>
                                                                                    </block>
                                                                                  </value>
                                                                                  <statement name="DO0">
                                                                                    <block type="variables_set" id="0MX2C?3=F?_`n_n-CcjD">
                                                                                      <field name="VAR" id="4}t#r$r(ZcCF%9e[)q}Y">ct</field>
                                                                                      <value name="VALUE">
                                                                                        <block type="variables_get" id="Cuo4/CI(0L10,UYc,g~r">
                                                                                          <field name="VAR" id="e(5.6q=au~Laz1+`/j(,">ct_warm</field>
                                                                                        </block>
                                                                                      </value>
                                                                                    </block>
                                                                                  </statement>
                                                                                </block>
                                                                              </next>
                                                                            </block>
                                                                          </next>
                                                                        </block>
                                                                      </next>
                                                                    </block>
                                                                  </next>
                                                                </block>
                                                              </statement>
                                                              <statement name="ELSE">
                                                                <block type="variables_set" id="?P{tfvc8Xz9`yRz8aK+?">
                                                                  <field name="VAR" id="4}t#r$r(ZcCF%9e[)q}Y">ct</field>
                                                                  <value name="VALUE">
                                                                    <block type="variables_get" id="VPX$Rg;J|TK2~adY,FCy">
                                                                      <field name="VAR" id="e(5.6q=au~Laz1+`/j(,">ct_warm</field>
                                                                    </block>
                                                                  </value>
                                                                </block>
                                                              </statement>
                                                              <next>
                                                                <block type="comment" id="ZSenWM!{Z_FonO;;3G^V">
                                                                  <field name="COMMENT">Flur</field>
                                                                  <next>
                                                                    <block type="controls_if" id="^w~LV^QUwbgbm)smX}uJ">
                                                                      <value name="IF0">
                                                                        <block type="logic_compare" id="5`]f3G`.jS?bA?jHmnZI">
                                                                          <field name="OP">EQ</field>
                                                                          <value name="A">
                                                                            <block type="get_value" id="bKZ62o(gXlxie^-B-4yR">
                                                                              <field name="ATTR">val</field>
                                                                              <field name="OID">hue-extended.0.groups.001-flur.state.any_on</field>
                                                                            </block>
                                                                          </value>
                                                                          <value name="B">
                                                                            <block type="logic_boolean" id="XxV!X~pBdQhKH(4lN2`]">
                                                                              <field name="BOOL">TRUE</field>
                                                                            </block>
                                                                          </value>
                                                                        </block>
                                                                      </value>
                                                                      <statement name="DO0">
                                                                        <block type="control" id="+`kg@%EYjCeW11vY[TT5">
                                                                          <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
                                                                          <field name="OID">hue-extended.0.groups.001-flur.action.colorTemperature</field>
                                                                          <field name="WITH_DELAY">FALSE</field>
                                                                          <value name="VALUE">
                                                                            <block type="variables_get" id="a7*EjD-ceD8^m/.CN@9f">
                                                                              <field name="VAR" id="4}t#r$r(ZcCF%9e[)q}Y">ct</field>
                                                                            </block>
                                                                          </value>
                                                                        </block>
                                                                      </statement>
                                                                      <next>
                                                                        <block type="comment" id="nDKws~_|b@_,rsp/$Eqz">
                                                                          <field name="COMMENT">Schlafzimmer</field>
                                                                          <next>
                                                                            <block type="controls_if" id="sbX3c}PD1pfJk$v,an`2">
                                                                              <value name="IF0">
                                                                                <block type="logic_compare" id="(%-TD|:{?sq!dZhX~@ZN">
                                                                                  <field name="OP">EQ</field>
                                                                                  <value name="A">
                                                                                    <block type="get_value" id="f/R]2Ed=;uy35OrY*Of.">
                                                                                      <field name="ATTR">val</field>
                                                                                      <field name="OID">hue-extended.0.groups.002-schlafzimmer.state.any_on</field>
                                                                                    </block>
                                                                                  </value>
                                                                                  <value name="B">
                                                                                    <block type="logic_boolean" id="q@fifTdcNE,WR0^RISw#">
                                                                                      <field name="BOOL">TRUE</field>
                                                                                    </block>
                                                                                  </value>
                                                                                </block>
                                                                              </value>
                                                                              <statement name="DO0">
                                                                                <block type="control" id="ijEb*vFluU1EiYk7Hj.~">
                                                                                  <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
                                                                                  <field name="OID">hue-extended.0.groups.002-schlafzimmer.action.colorTemperature</field>
                                                                                  <field name="WITH_DELAY">FALSE</field>
                                                                                  <value name="VALUE">
                                                                                    <block type="variables_get" id="|{P}i(_LsED(lfp,+Hm^">
                                                                                      <field name="VAR" id="4}t#r$r(ZcCF%9e[)q}Y">ct</field>
                                                                                    </block>
                                                                                  </value>
                                                                                </block>
                                                                              </statement>
                                                                              <next>
                                                                                <block type="comment" id="}i5Km2.R5{yRmr[^F0Db">
                                                                                  <field name="COMMENT">Küche</field>
                                                                                  <next>
                                                                                    <block type="controls_if" id="uH|;;Kpo.50Fuj%j9gm:">
                                                                                      <value name="IF0">
                                                                                        <block type="logic_compare" id="_--c3dK2UErQ07+w%1FN">
                                                                                          <field name="OP">EQ</field>
                                                                                          <value name="A">
                                                                                            <block type="get_value" id="Sn?pyq9RJN{-8I}HRe|Y">
                                                                                              <field name="ATTR">val</field>
                                                                                              <field name="OID">hue-extended.0.groups.007-küche.state.any_on</field>
                                                                                            </block>
                                                                                          </value>
                                                                                          <value name="B">
                                                                                            <block type="logic_boolean" id="_rC!X0XI:C)YjOPu:IwA">
                                                                                              <field name="BOOL">TRUE</field>
                                                                                            </block>
                                                                                          </value>
                                                                                        </block>
                                                                                      </value>
                                                                                      <statement name="DO0">
                                                                                        <block type="control" id="``V7j8_V)EIqX%XW/O?$">
                                                                                          <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
                                                                                          <field name="OID">hue-extended.0.groups.007-küche.action.colorTemperature</field>
                                                                                          <field name="WITH_DELAY">FALSE</field>
                                                                                          <value name="VALUE">
                                                                                            <block type="variables_get" id="j/kUtB!IP.0lD8v*EV8I">
                                                                                              <field name="VAR" id="4}t#r$r(ZcCF%9e[)q}Y">ct</field>
                                                                                            </block>
                                                                                          </value>
                                                                                        </block>
                                                                                      </statement>
                                                                                    </block>
                                                                                  </next>
                                                                                </block>
                                                                              </next>
                                                                            </block>
                                                                          </next>
                                                                        </block>
                                                                      </next>
                                                                    </block>
                                                                  </next>
                                                                </block>
                                                              </next>
                                                            </block>
                                                          </statement>
                                                          <next>
                                                            <block type="comment" id="[8A1]**q)e-?:Y|mve)Q">
                                                              <field name="COMMENT">Zeitplan</field>
                                                              <next>
                                                                <block type="schedule" id="},@HJwnQ/2Mb8s,QkgzX">
                                                                  <field name="SCHEDULE">*/5 * * * *</field>
                                                                  <statement name="STATEMENT">
                                                                    <block type="controls_if" id="nY@h38XNPRHl!R.D|tT]">
                                                                      <mutation else="1"></mutation>
                                                                      <value name="IF0">
                                                                        <block type="time_compare_ex" id="WaxY*:+A,R8v?WV6KD$/">
                                                                          <mutation xmlns="http://www.w3.org/1999/xhtml" end_time="false" actual_time="true"></mutation>
                                                                          <field name="USE_ACTUAL_TIME">TRUE</field>
                                                                          <field name="OPTION">&gt;=</field>
                                                                          <value name="START_TIME">
                                                                            <shadow xmlns="http://www.w3.org/1999/xhtml" type="text">
                                                                              <field name="TEXT">12:00</field>
                                                                            </shadow>
                                                                            <block type="variables_get" id="w*uCf*L+@{#hq.aE0p_D">
                                                                              <field name="VAR" id="U.QkeAJw`phS!}m10j*!">start_time</field>
                                                                            </block>
                                                                          </value>
                                                                        </block>
                                                                      </value>
                                                                      <statement name="DO0">
                                                                        <block type="variables_set" id="A[RhCX(x)a1C~H,+bcO]">
                                                                          <field name="VAR" id="4NKF[j.S)8%aG}S[214B">ct_zw</field>
                                                                          <value name="VALUE">
                                                                            <block type="math_arithmetic" id="{;?],!~,I0}gL9|sn_=F">
                                                                              <field name="OP">MINUS</field>
                                                                              <value name="A">
                                                                                <shadow xmlns="http://www.w3.org/1999/xhtml" type="math_number">
                                                                                  <field name="NUM">-2.5</field>
                                                                                </shadow>
                                                                                <block type="time_get" id="Z.a}v`.(ENWNw1d]7{V=">
                                                                                  <mutation xmlns="http://www.w3.org/1999/xhtml" format="false" language="false"></mutation>
                                                                                  <field name="OPTION">mid</field>
                                                                                </block>
                                                                              </value>
                                                                              <value name="B">
                                                                                <shadow xmlns="http://www.w3.org/1999/xhtml" type="math_number">
                                                                                  <field name="NUM">420</field>
                                                                                </shadow>
                                                                                <block type="variables_get" id="s]r.cdbN5]sp:B-puk}w">
                                                                                  <field name="VAR" id="sBH4pe?H#c,;~ntZqq%4">start_time_min</field>
                                                                                </block>
                                                                              </value>
                                                                            </block>
                                                                          </value>
                                                                          <next>
                                                                            <block type="variables_set" id="+8aPvfZJJ}Dc3Xz%up1.">
                                                                              <field name="VAR" id="4NKF[j.S)8%aG}S[214B">ct_zw</field>
                                                                              <value name="VALUE">
                                                                                <block type="math_arithmetic" id="*/(%uX5ZNKlhhi-tT[{B">
                                                                                  <field name="OP">DIVIDE</field>
                                                                                  <value name="A">
                                                                                    <shadow xmlns="http://www.w3.org/1999/xhtml" type="math_number">
                                                                                      <field name="NUM">1</field>
                                                                                    </shadow>
                                                                                    <block type="variables_get" id="!_t/(]le3(mY/WvdQN{X">
                                                                                      <field name="VAR" id="4NKF[j.S)8%aG}S[214B">ct_zw</field>
                                                                                    </block>
                                                                                  </value>
                                                                                  <value name="B">
                                                                                    <shadow xmlns="http://www.w3.org/1999/xhtml" type="math_number">
                                                                                      <field name="NUM">2.99</field>
                                                                                    </shadow>
                                                                                    <block type="variables_get" id="cQR8hV$62+{Mi,GF?(Ep">
                                                                                      <field name="VAR" id="r)jJ]7}]DDc#{Jb%Nd0!">ct_time</field>
                                                                                    </block>
                                                                                  </value>
                                                                                </block>
                                                                              </value>
                                                                              <next>
                                                                                <block type="variables_set" id="WS[((P7^8x3JrLW{6Y|j">
                                                                                  <field name="VAR" id="4}t#r$r(ZcCF%9e[)q}Y">ct</field>
                                                                                  <value name="VALUE">
                                                                                    <block type="math_arithmetic" id="RW}qz*Cffl14`2??wg!A">
                                                                                      <field name="OP">MINUS</field>
                                                                                      <value name="A">
                                                                                        <shadow xmlns="http://www.w3.org/1999/xhtml" type="math_number">
                                                                                          <field name="NUM">1</field>
                                                                                        </shadow>
                                                                                        <block type="variables_get" id="Q(:@3exCp%QsW|geBl3X">
                                                                                          <field name="VAR" id="xUpDE,xjl+auoeU-Gmw$">ct_kalt</field>
                                                                                        </block>
                                                                                      </value>
                                                                                      <value name="B">
                                                                                        <shadow xmlns="http://www.w3.org/1999/xhtml" type="math_number">
                                                                                          <field name="NUM">1</field>
                                                                                        </shadow>
                                                                                        <block type="variables_get" id="FGYJE^qOo~}[c]m^8G?R">
                                                                                          <field name="VAR" id="4NKF[j.S)8%aG}S[214B">ct_zw</field>
                                                                                        </block>
                                                                                      </value>
                                                                                    </block>
                                                                                  </value>
                                                                                  <next>
                                                                                    <block type="variables_set" id="YHLOVe}:2Vn`n8)=OWq(">
                                                                                      <field name="VAR" id="4}t#r$r(ZcCF%9e[)q}Y">ct</field>
                                                                                      <value name="VALUE">
                                                                                        <block type="math_round" id="+vyE]RRhnBhr[vK|6_1y">
                                                                                          <field name="OP">ROUND</field>
                                                                                          <value name="NUM">
                                                                                            <shadow xmlns="http://www.w3.org/1999/xhtml" type="math_number">
                                                                                              <field name="NUM">3.1</field>
                                                                                            </shadow>
                                                                                            <block type="variables_get" id="j^kW8w1Q51vX5],d}APr">
                                                                                              <field name="VAR" id="4}t#r$r(ZcCF%9e[)q}Y">ct</field>
                                                                                            </block>
                                                                                          </value>
                                                                                        </block>
                                                                                      </value>
                                                                                      <next>
                                                                                        <block type="controls_if" id="RTugF{bNy6MN*O/D{y:.">
                                                                                          <value name="IF0">
                                                                                            <block type="logic_compare" id="lAz]qy24.O].hTho=iWK">
                                                                                              <field name="OP">LTE</field>
                                                                                              <value name="A">
                                                                                                <block type="variables_get" id="0(M1RL~x]S+Sh|Y7Dg9!">
                                                                                                  <field name="VAR" id="4}t#r$r(ZcCF%9e[)q}Y">ct</field>
                                                                                                </block>
                                                                                              </value>
                                                                                              <value name="B">
                                                                                                <block type="variables_get" id="dO52=G4*3yQH[|mc6_Hd">
                                                                                                  <field name="VAR" id="e(5.6q=au~Laz1+`/j(,">ct_warm</field>
                                                                                                </block>
                                                                                              </value>
                                                                                            </block>
                                                                                          </value>
                                                                                          <statement name="DO0">
                                                                                            <block type="variables_set" id="j3NrVewR=,^qEDl%oFA]">
                                                                                              <field name="VAR" id="4}t#r$r(ZcCF%9e[)q}Y">ct</field>
                                                                                              <value name="VALUE">
                                                                                                <block type="variables_get" id="!:ze##b3S5Z+[/Wrht.7">
                                                                                                  <field name="VAR" id="e(5.6q=au~Laz1+`/j(,">ct_warm</field>
                                                                                                </block>
                                                                                              </value>
                                                                                            </block>
                                                                                          </statement>
                                                                                        </block>
                                                                                      </next>
                                                                                    </block>
                                                                                  </next>
                                                                                </block>
                                                                              </next>
                                                                            </block>
                                                                          </next>
                                                                        </block>
                                                                      </statement>
                                                                      <statement name="ELSE">
                                                                        <block type="variables_set" id="k;nYBK=IIUQpNC|70XT;">
                                                                          <field name="VAR" id="4}t#r$r(ZcCF%9e[)q}Y">ct</field>
                                                                          <value name="VALUE">
                                                                            <block type="variables_get" id="^joA91y#r,C!$?j!n6+=">
                                                                              <field name="VAR" id="e(5.6q=au~Laz1+`/j(,">ct_warm</field>
                                                                            </block>
                                                                          </value>
                                                                        </block>
                                                                      </statement>
                                                                      <next>
                                                                        <block type="comment" id="o8z2Y2b;;$^w?ft]LC#7">
                                                                          <field name="COMMENT">Flur</field>
                                                                          <next>
                                                                            <block type="controls_if" id="Sb}kUT)p2YOis_Dk62?.">
                                                                              <value name="IF0">
                                                                                <block type="logic_compare" id="uRiRc?aX*:G!+Y(/a^*v">
                                                                                  <field name="OP">EQ</field>
                                                                                  <value name="A">
                                                                                    <block type="get_value" id="Fh?lo6mU,Yc*tNhQ{bs_">
                                                                                      <field name="ATTR">val</field>
                                                                                      <field name="OID">hue-extended.0.groups.001-flur.state.any_on</field>
                                                                                    </block>
                                                                                  </value>
                                                                                  <value name="B">
                                                                                    <block type="logic_boolean" id="6@)30/,~_dzl)[p,,or$">
                                                                                      <field name="BOOL">TRUE</field>
                                                                                    </block>
                                                                                  </value>
                                                                                </block>
                                                                              </value>
                                                                              <statement name="DO0">
                                                                                <block type="control" id="yuVuY=o*EX6),pW0F|h*">
                                                                                  <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
                                                                                  <field name="OID">hue-extended.0.groups.001-flur.action.colorTemperature</field>
                                                                                  <field name="WITH_DELAY">FALSE</field>
                                                                                  <value name="VALUE">
                                                                                    <block type="variables_get" id="Ivph26`Bg8XFR8ZGCm+U">
                                                                                      <field name="VAR" id="4}t#r$r(ZcCF%9e[)q}Y">ct</field>
                                                                                    </block>
                                                                                  </value>
                                                                                </block>
                                                                              </statement>
                                                                              <next>
                                                                                <block type="comment" id="`2c{ys@yiT{EPTvM*MHL">
                                                                                  <field name="COMMENT">Schlafzimmer</field>
                                                                                  <next>
                                                                                    <block type="controls_if" id="WSwKtBb+;m%@lF](ttg^">
                                                                                      <value name="IF0">
                                                                                        <block type="logic_compare" id="RJOYg.7-kD,Xvnk4Np^~">
                                                                                          <field name="OP">EQ</field>
                                                                                          <value name="A">
                                                                                            <block type="get_value" id="DRZ5$cI}TV]uT6d~pS_p">
                                                                                              <field name="ATTR">val</field>
                                                                                              <field name="OID">hue-extended.0.groups.002-schlafzimmer.state.any_on</field>
                                                                                            </block>
                                                                                          </value>
                                                                                          <value name="B">
                                                                                            <block type="logic_boolean" id="ecNW!ZWWW|E*8*6%L9N6">
                                                                                              <field name="BOOL">TRUE</field>
                                                                                            </block>
                                                                                          </value>
                                                                                        </block>
                                                                                      </value>
                                                                                      <statement name="DO0">
                                                                                        <block type="control" id="#uA0t852g#qxS}TzLu[G">
                                                                                          <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
                                                                                          <field name="OID">hue-extended.0.groups.002-schlafzimmer.action.colorTemperature</field>
                                                                                          <field name="WITH_DELAY">FALSE</field>
                                                                                          <value name="VALUE">
                                                                                            <block type="variables_get" id="8Gj=jG,ScM(`gi0TlN;`">
                                                                                              <field name="VAR" id="4}t#r$r(ZcCF%9e[)q}Y">ct</field>
                                                                                            </block>
                                                                                          </value>
                                                                                        </block>
                                                                                      </statement>
                                                                                      <next>
                                                                                        <block type="comment" id="|~2}Ws)/UVtuY2gji[3~">
                                                                                          <field name="COMMENT">Küche</field>
                                                                                          <next>
                                                                                            <block type="controls_if" id="{S?^?3f{8vn@uC9RQ2GS">
                                                                                              <value name="IF0">
                                                                                                <block type="logic_compare" id="W/xQS]V3MzXW:@Dd/o`r">
                                                                                                  <field name="OP">EQ</field>
                                                                                                  <value name="A">
                                                                                                    <block type="get_value" id="s?SsYmVZI3JOf(6,-=#`">
                                                                                                      <field name="ATTR">val</field>
                                                                                                      <field name="OID">hue-extended.0.groups.007-küche.state.any_on</field>
                                                                                                    </block>
                                                                                                  </value>
                                                                                                  <value name="B">
                                                                                                    <block type="logic_boolean" id="O1t#J(dFVu95SVL4}1zO">
                                                                                                      <field name="BOOL">TRUE</field>
                                                                                                    </block>
                                                                                                  </value>
                                                                                                </block>
                                                                                              </value>
                                                                                              <statement name="DO0">
                                                                                                <block type="control" id="GjtxRC=q{$PKQq/3KD/j">
                                                                                                  <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
                                                                                                  <field name="OID">hue-extended.0.groups.007-küche.action.colorTemperature</field>
                                                                                                  <field name="WITH_DELAY">FALSE</field>
                                                                                                  <value name="VALUE">
                                                                                                    <block type="variables_get" id=":*-?Jhnmye[#$GH6(XeQ">
                                                                                                      <field name="VAR" id="4}t#r$r(ZcCF%9e[)q}Y">ct</field>
                                                                                                    </block>
                                                                                                  </value>
                                                                                                </block>
                                                                                              </statement>
                                                                                            </block>
                                                                                          </next>
                                                                                        </block>
                                                                                      </next>
                                                                                    </block>
                                                                                  </next>
                                                                                </block>
                                                                              </next>
                                                                            </block>
                                                                          </next>
                                                                        </block>
                                                                      </next>
                                                                    </block>
                                                                  </statement>
                                                                </block>
                                                              </next>
                                                            </block>
                                                          </next>
                                                        </block>
                                                      </next>
                                                    </block>
                                                  </next>
                                                </block>
                                              </next>
                                            </block>
                                          </next>
                                        </block>
                                      </next>
                                    </block>
                                  </next>
                                </block>
                              </next>
                            </block>
                          </next>
                        </block>
                      </next>
                    </block>
                  </next>
                </block>
              </next>
            </block>
          </next>
        </block>
      </xml>
      

      Für die Kommunikation zur Philips HUE ist das Script aktuell auf den HUE-Extend Adapter ausgelegt.

      Für Fragen oder Anregungen stehe ich jederzeit zur Verfügung.

      Mfg

      JackDanielJ Offline
      JackDanielJ Offline
      JackDaniel
      schrieb am zuletzt editiert von JackDaniel
      #2

      @spegeli
      thx, genau das wollte ich heute bei mir umsetzen, geht so natürlich viel schneller mit c&p :+1:
      edit:
      ich habs genau anders rum gemacht, von warm auf kalt

      Carpe diem

      1 Antwort Letzte Antwort
      0
      • stony2kS Offline
        stony2kS Offline
        stony2k
        schrieb am zuletzt editiert von
        #3

        Hat jemand schonmal versucht, das an die Werte von Tasmota anzupassen? Hier ist die Reichwerte leider nicht in Kelvin von den von 153-500 angegeben. Wobei 153 kalt und 500 warm sind. Nur die Werte einzutragen hilft leider nicht, dann ist nämlich bereits gegen Nachmittag 500 und womit das Licht ganz warm eingestellt.

        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

        322

        Online

        32.6k

        Benutzer

        82.2k

        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