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. Praktische Anwendungen (Showcase)
  4. [Vorlage] Farbtemperatur zu RGB ( Tadfri RGB E27)

NEWS

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

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

  • Weihnachtsangebot 2025! 🎄
    BluefoxB
    Bluefox
    25
    1
    2.3k

[Vorlage] Farbtemperatur zu RGB ( Tadfri RGB E27)

Geplant Angeheftet Gesperrt Verschoben Praktische Anwendungen (Showcase)
blocklyrgbrgb hexfarbtemperatur
1 Beiträge 1 Kommentatoren 473 Aufrufe 2 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.
  • marcusklM Offline
    marcusklM Offline
    marcuskl
    schrieb am zuletzt editiert von marcuskl
    #1

    Hallo zusammen,

    da man bei der Tadfri E27 RGB Birne über den Zigbee Adapter keine Farbtemperatur einstellen kann, habe ich dieses Script gebastelt, womit ich die gewünschte Farbtemperatur in RGB Werte für Rot, Blau, Grün umrechne und am ende in RGB Hex Konvertieren lasse.
    Mit dem Konvertierten Wert, lasse ich dann die Farbtemperatur einstellen.

    Inspiriert habe ich mich von diesem How To:
    http://www.tannerhelland.com/4435/convert-temperature-rgb-algorithm-code/

    skript.png

    <xml xmlns="http://www.w3.org/1999/xhtml">
     <variables>
       <variable type="" id="!?xYTn#CRXWU$Z1iOiz~">r</variable>
       <variable type="" id="bx{w{l!Vi{!:JDx,b`55">g</variable>
       <variable type="" id="yIwLxE8=W;z,W3?g]r{{">b</variable>
       <variable type="" id="7f!o%6Cy~_`gAc[yI4Vn">Temperatur</variable>
       <variable type="" id="dla`2-rtPLqv[/PhBvYX">Rot</variable>
       <variable type="" id="=WTuAAM~J!AqW{Mip-iE">Gruen</variable>
       <variable type="" id="3D5Wh[6Yys[QzLHmrE}T">Blau</variable>
     </variables>
     <block type="on_ext" id="v5~S0K[[qhk#m99rrO#W" x="118" y="59">
       <mutation items="1"></mutation>
       <field name="CONDITION">any</field>
       <field name="ACK_CONDITION"></field>
       <value name="OID0">
         <shadow type="field_oid" id="7[!y@gIqU`pv$#-~Lp*%">
           <field name="oid">zigbee.0.ccccccfffe5c48af.colortemp</field>
         </shadow>
       </value>
       <statement name="STATEMENT">
         <block type="variables_set" id="lmcaTC[W4?Lg%~-|IFM,">
           <field name="VAR" id="7f!o%6Cy~_`gAc[yI4Vn" variabletype="">Temperatur</field>
           <value name="VALUE">
             <block type="math_arithmetic" id="i$)hXy}r:?hA*i#f;.T?">
               <field name="OP">DIVIDE</field>
               <value name="A">
                 <shadow type="math_number" id="J{Rn^$fLGATKEko;uBxe">
                   <field name="NUM">1</field>
                 </shadow>
                 <block type="get_value" id="tyxkw,DJgA5]nY19K3*;">
                   <field name="ATTR">val</field>
                   <field name="OID">zigbee.0.ccccccfffe5c48af.colortemp</field>
                 </block>
               </value>
               <value name="B">
                 <shadow type="math_number" id="0x,hDK)jATu4d8@%Lz}s">
                   <field name="NUM">100</field>
                 </shadow>
               </value>
             </block>
           </value>
           <next>
             <block type="comment" id="f8v0fC8UG1tf/*u.q[T-">
               <field name="COMMENT">Berechne Rot</field>
               <next>
                 <block type="controls_if" id="n%)^18+to`[U)jzK,H+b">
                   <mutation else="1"></mutation>
                   <value name="IF0">
                     <block type="logic_compare" id="Vv]YM~2{gC+f:U;tqN1M">
                       <field name="OP">LTE</field>
                       <value name="A">
                         <block type="variables_get" id="_[kT7TA;CCQmgZCL1f/`">
                           <field name="VAR" id="7f!o%6Cy~_`gAc[yI4Vn" variabletype="">Temperatur</field>
                         </block>
                       </value>
                       <value name="B">
                         <block type="math_number" id="]D]oaj(g.4RY.#TzwmHO">
                           <field name="NUM">66</field>
                         </block>
                       </value>
                     </block>
                   </value>
                   <statement name="DO0">
                     <block type="variables_set" id="TC9gCqrF$_oV+V/,_Z/c">
                       <field name="VAR" id="dla`2-rtPLqv[/PhBvYX" variabletype="">Rot</field>
                       <value name="VALUE">
                         <block type="math_number" id="r({vS[n-q3}cuELm:fc}">
                           <field name="NUM">255</field>
                         </block>
                       </value>
                     </block>
                   </statement>
                   <statement name="ELSE">
                     <block type="variables_set" id="kRM9m5T?QYqAYKaWCvIL">
                       <field name="VAR" id="dla`2-rtPLqv[/PhBvYX" variabletype="">Rot</field>
                       <value name="VALUE">
                         <block type="math_arithmetic" id="(]hwHn_LA[OvEUFFu7?U">
                           <field name="OP">MINUS</field>
                           <value name="A">
                             <shadow type="math_number" id="P-_Ar,m{YC}a`m0hO)0L">
                               <field name="NUM">1</field>
                             </shadow>
                             <block type="variables_get" id="wtuo+vl-_i.$uShvcWWS">
                               <field name="VAR" id="7f!o%6Cy~_`gAc[yI4Vn" variabletype="">Temperatur</field>
                             </block>
                           </value>
                           <value name="B">
                             <shadow type="math_number" id="4rHUuMqjHdxn(3HR@/Ss">
                               <field name="NUM">60</field>
                             </shadow>
                           </value>
                         </block>
                       </value>
                       <next>
                         <block type="variables_set" id="6#HsD=i+vi?5/6.;:E[}">
                           <field name="VAR" id="dla`2-rtPLqv[/PhBvYX" variabletype="">Rot</field>
                           <value name="VALUE">
                             <block type="math_arithmetic" id="^fhF(mCCt+jcn;7LH^cP">
                               <field name="OP">MULTIPLY</field>
                               <value name="A">
                                 <shadow type="math_number" id="P-_Ar,m{YC}a`m0hO)0L">
                                   <field name="NUM">329.698727446</field>
                                 </shadow>
                               </value>
                               <value name="B">
                                 <shadow type="math_number" id="6G,/N}IN@o76MsM1-D:/">
                                   <field name="NUM">60</field>
                                 </shadow>
                                 <block type="math_arithmetic" id="djwI)V?[^vU7!#e|[@eG">
                                   <field name="OP">POWER</field>
                                   <value name="A">
                                     <shadow type="math_number" id=":Rrk%.$yA0.5oz=XsBhF">
                                       <field name="NUM">1</field>
                                     </shadow>
                                     <block type="variables_get" id="_Dgz0pLn9Sh^b~}[}T4_">
                                       <field name="VAR" id="dla`2-rtPLqv[/PhBvYX" variabletype="">Rot</field>
                                     </block>
                                   </value>
                                   <value name="B">
                                     <shadow type="math_number" id="b$h,LuOIKo052H8$ygQ:">
                                       <field name="NUM">-0.1332047592</field>
                                     </shadow>
                                   </value>
                                 </block>
                               </value>
                             </block>
                           </value>
                           <next>
                             <block type="controls_if" id="NVl|#5S0EB,fg;iXaYp]">
                               <mutation elseif="1"></mutation>
                               <value name="IF0">
                                 <block type="logic_compare" id="3;8n*{{%4~~+j8,S=,sl">
                                   <field name="OP">LT</field>
                                   <value name="A">
                                     <block type="variables_get" id="!ERKoXz2=%rdGfx#V[xn">
                                       <field name="VAR" id="dla`2-rtPLqv[/PhBvYX" variabletype="">Rot</field>
                                     </block>
                                   </value>
                                   <value name="B">
                                     <block type="math_number" id="Ckr!fQ3G|BVyilI`aWHb">
                                       <field name="NUM">0</field>
                                     </block>
                                   </value>
                                 </block>
                               </value>
                               <statement name="DO0">
                                 <block type="variables_set" id="Y$v2OxX:*r#ptfhlrCK8">
                                   <field name="VAR" id="dla`2-rtPLqv[/PhBvYX" variabletype="">Rot</field>
                                   <value name="VALUE">
                                     <block type="math_number" id="}PtnZ9C.=?nTw5G$q2.v">
                                       <field name="NUM">0</field>
                                     </block>
                                   </value>
                                 </block>
                               </statement>
                               <value name="IF1">
                                 <block type="logic_compare" id="/$esv)_yp3B#!rxBINGm">
                                   <field name="OP">GT</field>
                                   <value name="A">
                                     <block type="variables_get" id="]q5n2J$S2?vBGJZ`::UG">
                                       <field name="VAR" id="dla`2-rtPLqv[/PhBvYX" variabletype="">Rot</field>
                                     </block>
                                   </value>
                                   <value name="B">
                                     <block type="math_number" id="D*fwPXsg~d#2~arTT-O?">
                                       <field name="NUM">255</field>
                                     </block>
                                   </value>
                                 </block>
                               </value>
                               <statement name="DO1">
                                 <block type="variables_set" id="B}to8P$ps.bkY8^Y0Kbj">
                                   <field name="VAR" id="dla`2-rtPLqv[/PhBvYX" variabletype="">Rot</field>
                                   <value name="VALUE">
                                     <block type="math_number" id="CL8gmwFfYjJk@)Pnvia%">
                                       <field name="NUM">255</field>
                                     </block>
                                   </value>
                                 </block>
                               </statement>
                             </block>
                           </next>
                         </block>
                       </next>
                     </block>
                   </statement>
                   <next>
                     <block type="comment" id="~uLv15OPyV54H^l7`x6A">
                       <field name="COMMENT">Berechne Grün</field>
                       <next>
                         <block type="controls_if" id="{QNc*Q*V+pQi;|]SOdej">
                           <mutation else="1"></mutation>
                           <value name="IF0">
                             <block type="logic_compare" id="qd.9;4:_uHBK5Q+9vRVI">
                               <field name="OP">LTE</field>
                               <value name="A">
                                 <block type="variables_get" id="%cJ^aTIiYDSq+RQ}zlSS">
                                   <field name="VAR" id="7f!o%6Cy~_`gAc[yI4Vn" variabletype="">Temperatur</field>
                                 </block>
                               </value>
                               <value name="B">
                                 <block type="math_number" id="bd:/`ea1R#$tmdmHA|LV">
                                   <field name="NUM">66</field>
                                 </block>
                               </value>
                             </block>
                           </value>
                           <statement name="DO0">
                             <block type="variables_set" id=")s54AMFN{CE)jpLTl*!k">
                               <field name="VAR" id="=WTuAAM~J!AqW{Mip-iE" variabletype="">Gruen</field>
                               <value name="VALUE">
                                 <block type="variables_get" id="YOh~{zg;LZ?[;s.rt4ru">
                                   <field name="VAR" id="7f!o%6Cy~_`gAc[yI4Vn" variabletype="">Temperatur</field>
                                 </block>
                               </value>
                               <next>
                                 <block type="variables_set" id="+.hxvF7dLo3GaQO)A$B@">
                                   <field name="VAR" id="=WTuAAM~J!AqW{Mip-iE" variabletype="">Gruen</field>
                                   <value name="VALUE">
                                     <block type="math_arithmetic" id="a~M@jfr:!6f]{Kv=MQ4a">
                                       <field name="OP">MINUS</field>
                                       <value name="A">
                                         <shadow type="math_number" id="9po+dy+[pSTU[^?A4]U[">
                                           <field name="NUM">1</field>
                                         </shadow>
                                         <block type="math_arithmetic" id="$YAffKJ?Q2,6TYM(KaX;">
                                           <field name="OP">MULTIPLY</field>
                                           <value name="A">
                                             <shadow type="math_number" id="%]4E[ERn_r=dESM}fzVz">
                                               <field name="NUM">99.4708025861</field>
                                             </shadow>
                                           </value>
                                           <value name="B">
                                             <shadow type="math_number" id="hFw*ZwBFlg(S:iE)B9aJ">
                                               <field name="NUM">1</field>
                                             </shadow>
                                             <block type="math_single" id=":xYntvoP]6)XeH01BOyO">
                                               <field name="OP">LN</field>
                                               <value name="NUM">
                                                 <shadow type="math_number" id="i_W._ve)Mm:pXOvs}R4+">
                                                   <field name="NUM">9</field>
                                                 </shadow>
                                                 <block type="variables_get" id="CjRwEKShDPD-x,?M75Ad">
                                                   <field name="VAR" id="=WTuAAM~J!AqW{Mip-iE" variabletype="">Gruen</field>
                                                 </block>
                                               </value>
                                             </block>
                                           </value>
                                         </block>
                                       </value>
                                       <value name="B">
                                         <shadow type="math_number" id="U!}l??zvoN~(o4,yQ%)u">
                                           <field name="NUM">161.1195681661</field>
                                         </shadow>
                                       </value>
                                     </block>
                                   </value>
                                   <next>
                                     <block type="controls_if" id="6HlUDW]Js^re!6tD*ECK">
                                       <mutation elseif="1"></mutation>
                                       <value name="IF0">
                                         <block type="logic_compare" id="Fe`imQN,9Jr:r4COz}7{">
                                           <field name="OP">LT</field>
                                           <value name="A">
                                             <block type="variables_get" id="Jli+$y2dI)gJ$V@~%S$/">
                                               <field name="VAR" id="=WTuAAM~J!AqW{Mip-iE" variabletype="">Gruen</field>
                                             </block>
                                           </value>
                                           <value name="B">
                                             <block type="math_number" id="tQ.r]%Ijr+{7iotRy?5Y">
                                               <field name="NUM">0</field>
                                             </block>
                                           </value>
                                         </block>
                                       </value>
                                       <statement name="DO0">
                                         <block type="variables_set" id=".jF8[AnY,}AG]}4LP:i~">
                                           <field name="VAR" id="=WTuAAM~J!AqW{Mip-iE" variabletype="">Gruen</field>
                                           <value name="VALUE">
                                             <block type="math_number" id="/o@*dDK0jo|B^}W!-uaM">
                                               <field name="NUM">0</field>
                                             </block>
                                           </value>
                                         </block>
                                       </statement>
                                       <value name="IF1">
                                         <block type="logic_compare" id=":[dPT(dNPQ-W#6rhRi{6">
                                           <field name="OP">GT</field>
                                           <value name="A">
                                             <block type="variables_get" id="aB[kzy9YT0=Pk/P4;-kN">
                                               <field name="VAR" id="=WTuAAM~J!AqW{Mip-iE" variabletype="">Gruen</field>
                                             </block>
                                           </value>
                                           <value name="B">
                                             <block type="math_number" id="Z40W}nvFYj1mJv6,trVU">
                                               <field name="NUM">255</field>
                                             </block>
                                           </value>
                                         </block>
                                       </value>
                                       <statement name="DO1">
                                         <block type="variables_set" id="EMzPK_q#5m[w3u-iUO(]">
                                           <field name="VAR" id="=WTuAAM~J!AqW{Mip-iE" variabletype="">Gruen</field>
                                           <value name="VALUE">
                                             <block type="math_number" id="Sl2}aU:HIEvPO*M|7(A|">
                                               <field name="NUM">255</field>
                                             </block>
                                           </value>
                                         </block>
                                       </statement>
                                     </block>
                                   </next>
                                 </block>
                               </next>
                             </block>
                           </statement>
                           <statement name="ELSE">
                             <block type="variables_set" id="]~J1qe+I3nnZKS~//8JW">
                               <field name="VAR" id="=WTuAAM~J!AqW{Mip-iE" variabletype="">Gruen</field>
                               <value name="VALUE">
                                 <block type="math_arithmetic" id="%hI2lRBesx+CobW`[0ak">
                                   <field name="OP">MINUS</field>
                                   <value name="A">
                                     <shadow type="math_number" id="P-_Ar,m{YC}a`m0hO)0L">
                                       <field name="NUM">1</field>
                                     </shadow>
                                     <block type="variables_get" id="0AK`U;UaYaZm9C34WKAl">
                                       <field name="VAR" id="7f!o%6Cy~_`gAc[yI4Vn" variabletype="">Temperatur</field>
                                     </block>
                                   </value>
                                   <value name="B">
                                     <shadow type="math_number" id="ZT]BW7Ka_@I-!k;XLlbY">
                                       <field name="NUM">60</field>
                                     </shadow>
                                   </value>
                                 </block>
                               </value>
                               <next>
                                 <block type="variables_set" id=")^#kLvyX/+}fgEWb1gRq">
                                   <field name="VAR" id="=WTuAAM~J!AqW{Mip-iE" variabletype="">Gruen</field>
                                   <value name="VALUE">
                                     <block type="math_arithmetic" id="NAZ!8699*v]Fm1-n).4^">
                                       <field name="OP">MULTIPLY</field>
                                       <value name="A">
                                         <shadow type="math_number" id="fI+fMAIpe]i$YZWS`R$Z">
                                           <field name="NUM">288.1221695283</field>
                                         </shadow>
                                       </value>
                                       <value name="B">
                                         <shadow type="math_number" id="6G,/N}IN@o76MsM1-D:/">
                                           <field name="NUM">60</field>
                                         </shadow>
                                         <block type="math_arithmetic" id="b`%*#i`7j!gz%(jh9k0H">
                                           <field name="OP">POWER</field>
                                           <value name="A">
                                             <shadow type="math_number" id=":Rrk%.$yA0.5oz=XsBhF">
                                               <field name="NUM">1</field>
                                             </shadow>
                                             <block type="variables_get" id="hi,9ff*=M=w%#LX/+wR|">
                                               <field name="VAR" id="=WTuAAM~J!AqW{Mip-iE" variabletype="">Gruen</field>
                                             </block>
                                           </value>
                                           <value name="B">
                                             <shadow type="math_number" id="|fUX!oP!o=3:;bYZ)f@k">
                                               <field name="NUM">-0.0755148492</field>
                                             </shadow>
                                           </value>
                                         </block>
                                       </value>
                                     </block>
                                   </value>
                                   <next>
                                     <block type="controls_if" id="D{3=L6PyH;^fu3SpR2?b">
                                       <mutation elseif="1"></mutation>
                                       <value name="IF0">
                                         <block type="logic_compare" id="Zar$iTs~f0TLaUnO_5f)">
                                           <field name="OP">LT</field>
                                           <value name="A">
                                             <block type="variables_get" id="j{R%QDr^)r?w|M)lMUCh">
                                               <field name="VAR" id="=WTuAAM~J!AqW{Mip-iE" variabletype="">Gruen</field>
                                             </block>
                                           </value>
                                           <value name="B">
                                             <block type="math_number" id="AkvwHXgkQUntyIv6CnbF">
                                               <field name="NUM">0</field>
                                             </block>
                                           </value>
                                         </block>
                                       </value>
                                       <statement name="DO0">
                                         <block type="variables_set" id="|:dk{wi1=(}ZH2wD8a$m">
                                           <field name="VAR" id="=WTuAAM~J!AqW{Mip-iE" variabletype="">Gruen</field>
                                           <value name="VALUE">
                                             <block type="math_number" id="GX};i]`thCgKizf6(xRu">
                                               <field name="NUM">0</field>
                                             </block>
                                           </value>
                                         </block>
                                       </statement>
                                       <value name="IF1">
                                         <block type="logic_compare" id="y1STeOVz1!R^n8E1m$`n">
                                           <field name="OP">GT</field>
                                           <value name="A">
                                             <block type="variables_get" id="]k0zx5ewOIQ+_=%aSwTh">
                                               <field name="VAR" id="=WTuAAM~J!AqW{Mip-iE" variabletype="">Gruen</field>
                                             </block>
                                           </value>
                                           <value name="B">
                                             <block type="math_number" id="3OdU22yMVTrdo0BJ|jaG">
                                               <field name="NUM">255</field>
                                             </block>
                                           </value>
                                         </block>
                                       </value>
                                       <statement name="DO1">
                                         <block type="variables_set" id="p#0{Wd@59zbTVajlO{Bt">
                                           <field name="VAR" id="=WTuAAM~J!AqW{Mip-iE" variabletype="">Gruen</field>
                                           <value name="VALUE">
                                             <block type="math_number" id="dWs7D:!g(TsdFwrdMGj0">
                                               <field name="NUM">255</field>
                                             </block>
                                           </value>
                                         </block>
                                       </statement>
                                     </block>
                                   </next>
                                 </block>
                               </next>
                             </block>
                           </statement>
                           <next>
                             <block type="comment" id="K%=U1U^.+eDm]8DD+#p$">
                               <field name="COMMENT">Berechne Blau</field>
                               <next>
                                 <block type="controls_if" id="Y+.EO#i{o0l9]6}1%#Re">
                                   <mutation else="1"></mutation>
                                   <value name="IF0">
                                     <block type="logic_compare" id="B1U%Z)0@.o%%CU28.n]b">
                                       <field name="OP">LTE</field>
                                       <value name="A">
                                         <block type="variables_get" id="?fTr+!TwkzJZZL=4XTpx">
                                           <field name="VAR" id="7f!o%6Cy~_`gAc[yI4Vn" variabletype="">Temperatur</field>
                                         </block>
                                       </value>
                                       <value name="B">
                                         <block type="math_number" id="b25rSSmQ`ZvwP+d7?_$0">
                                           <field name="NUM">19</field>
                                         </block>
                                       </value>
                                     </block>
                                   </value>
                                   <statement name="DO0">
                                     <block type="variables_set" id="n#ZrFi+.Dzv?y{5VLSs]">
                                       <field name="VAR" id="3D5Wh[6Yys[QzLHmrE}T" variabletype="">Blau</field>
                                       <value name="VALUE">
                                         <block type="math_number" id="seo%)=oT!MOw,a]}frPm">
                                           <field name="NUM">0</field>
                                         </block>
                                       </value>
                                     </block>
                                   </statement>
                                   <statement name="ELSE">
                                     <block type="variables_set" id="#b-QPf)Ye;^||P[jW/i|">
                                       <field name="VAR" id="3D5Wh[6Yys[QzLHmrE}T" variabletype="">Blau</field>
                                       <value name="VALUE">
                                         <block type="math_arithmetic" id="D(ebAN*,-iYfMYrNrHC^">
                                           <field name="OP">MINUS</field>
                                           <value name="A">
                                             <shadow type="math_number" id="P-_Ar,m{YC}a`m0hO)0L">
                                               <field name="NUM">1</field>
                                             </shadow>
                                             <block type="variables_get" id="CE93oWnHSTjdLqmV/SO]">
                                               <field name="VAR" id="7f!o%6Cy~_`gAc[yI4Vn" variabletype="">Temperatur</field>
                                             </block>
                                           </value>
                                           <value name="B">
                                             <shadow type="math_number" id="A3AYsz8Z`+nyXI}316[U">
                                               <field name="NUM">10</field>
                                             </shadow>
                                           </value>
                                         </block>
                                       </value>
                                       <next>
                                         <block type="variables_set" id=";r_iicD3H6~(VzK[Xg:5">
                                           <field name="VAR" id="3D5Wh[6Yys[QzLHmrE}T" variabletype="">Blau</field>
                                           <value name="VALUE">
                                             <block type="math_arithmetic" id="iWDSL.{)q~DRe6w/e=I@">
                                               <field name="OP">MINUS</field>
                                               <value name="A">
                                                 <shadow type="math_number" id=":L*Q@ZkimsDiS#|5AK~P">
                                                   <field name="NUM">1</field>
                                                 </shadow>
                                                 <block type="math_arithmetic" id="?85na@NN^[~g(fH`n0K.">
                                                   <field name="OP">MULTIPLY</field>
                                                   <value name="A">
                                                     <shadow type="math_number" id=",3wn,iV[P7#*b1MJZ=#k">
                                                       <field name="NUM">138.5177312231</field>
                                                     </shadow>
                                                   </value>
                                                   <value name="B">
                                                     <shadow type="math_number" id="6G,/N}IN@o76MsM1-D:/">
                                                       <field name="NUM">60</field>
                                                     </shadow>
                                                     <block type="math_single" id="oAYMjKS%g$}B$?qGTS%v">
                                                       <field name="OP">LN</field>
                                                       <value name="NUM">
                                                         <shadow type="math_number" id="B#JY$0o?hje]H1tYuimU">
                                                           <field name="NUM">9</field>
                                                         </shadow>
                                                         <block type="variables_get" id="n8mGZ96;P2-d6agw*uXx">
                                                           <field name="VAR" id="3D5Wh[6Yys[QzLHmrE}T" variabletype="">Blau</field>
                                                         </block>
                                                       </value>
                                                     </block>
                                                   </value>
                                                 </block>
                                               </value>
                                               <value name="B">
                                                 <shadow type="math_number" id=",1LT:=~rD[#K(!1X@t`J">
                                                   <field name="NUM">305.0447927307</field>
                                                 </shadow>
                                               </value>
                                             </block>
                                           </value>
                                           <next>
                                             <block type="controls_if" id="e;S6`GGs.aQbJ9^K[G#B">
                                               <mutation elseif="1"></mutation>
                                               <value name="IF0">
                                                 <block type="logic_compare" id="O$*ZJfwsvd^TTjq*_/1t">
                                                   <field name="OP">LT</field>
                                                   <value name="A">
                                                     <block type="variables_get" id="6?x/lQ2%9-CBY=tyN;n-">
                                                       <field name="VAR" id="3D5Wh[6Yys[QzLHmrE}T" variabletype="">Blau</field>
                                                     </block>
                                                   </value>
                                                   <value name="B">
                                                     <block type="math_number" id="^%},|4maQiMIaVRJQEr4">
                                                       <field name="NUM">0</field>
                                                     </block>
                                                   </value>
                                                 </block>
                                               </value>
                                               <statement name="DO0">
                                                 <block type="variables_set" id="W)9=;8!-[[+DB9sl+1@N">
                                                   <field name="VAR" id="3D5Wh[6Yys[QzLHmrE}T" variabletype="">Blau</field>
                                                   <value name="VALUE">
                                                     <block type="math_number" id="O1ltUalf=QI2Tb9.zJm8">
                                                       <field name="NUM">0</field>
                                                     </block>
                                                   </value>
                                                 </block>
                                               </statement>
                                               <value name="IF1">
                                                 <block type="logic_compare" id="R#|ieTV2%8JduzpG?:$_">
                                                   <field name="OP">GT</field>
                                                   <value name="A">
                                                     <block type="variables_get" id="0tAjblYZ1hCypg;Ui$)*">
                                                       <field name="VAR" id="3D5Wh[6Yys[QzLHmrE}T" variabletype="">Blau</field>
                                                     </block>
                                                   </value>
                                                   <value name="B">
                                                     <block type="math_number" id="u2BO1j,jG8#BG7g`m4CR">
                                                       <field name="NUM">255</field>
                                                     </block>
                                                   </value>
                                                 </block>
                                               </value>
                                               <statement name="DO1">
                                                 <block type="variables_set" id="Pe_IF_Z^5oBjoL|Z]Erj">
                                                   <field name="VAR" id="3D5Wh[6Yys[QzLHmrE}T" variabletype="">Blau</field>
                                                   <value name="VALUE">
                                                     <block type="math_number" id="I%YVvE@nbXJNyj:fA6`J">
                                                       <field name="NUM">255</field>
                                                     </block>
                                                   </value>
                                                 </block>
                                               </statement>
                                             </block>
                                           </next>
                                         </block>
                                       </next>
                                     </block>
                                   </statement>
                                   <next>
                                     <block type="control" id="qTKpQ|)C#x%deeg;jf%%">
                                       <mutation delay_input="false"></mutation>
                                       <field name="OID">zigbee.0.ccccccfffe5c48af.color</field>
                                       <field name="WITH_DELAY">FALSE</field>
                                       <value name="VALUE">
                                         <block type="procedures_callcustomreturn" id="wh[0dyvg*]sVBx$uSpis">
                                           <mutation name="hex">
                                             <arg name="r"></arg>
                                             <arg name="g"></arg>
                                             <arg name="b"></arg>
                                           </mutation>
                                           <value name="ARG0">
                                             <block type="math_round" id="Cp;D5:,wFud--sOtkB5B">
                                               <field name="OP">ROUND</field>
                                               <value name="NUM">
                                                 <shadow type="math_number" id="4o3Rl+L[EC^~c$gIYhLn">
                                                   <field name="NUM">3.1</field>
                                                 </shadow>
                                                 <block type="variables_get" id="_e0(B7*:$s5W;$FPL?MF">
                                                   <field name="VAR" id="dla`2-rtPLqv[/PhBvYX" variabletype="">Rot</field>
                                                 </block>
                                               </value>
                                             </block>
                                           </value>
                                           <value name="ARG1">
                                             <block type="math_round" id="$TDna?O4ObDcKo2t5toJ">
                                               <field name="OP">ROUND</field>
                                               <value name="NUM">
                                                 <shadow type="math_number" id="cDOh;Y?T/L1iB]ovD0?b">
                                                   <field name="NUM">3.1</field>
                                                 </shadow>
                                                 <block type="variables_get" id="*hqGF5Cr*Q*y}uI8gQhU">
                                                   <field name="VAR" id="=WTuAAM~J!AqW{Mip-iE" variabletype="">Gruen</field>
                                                 </block>
                                               </value>
                                             </block>
                                           </value>
                                           <value name="ARG2">
                                             <block type="math_round" id="Od7gM;%:@W3{rJ9:3VRG">
                                               <field name="OP">ROUND</field>
                                               <value name="NUM">
                                                 <shadow type="math_number" id="cDOh;Y?T/L1iB]ovD0?b">
                                                   <field name="NUM">3.1</field>
                                                 </shadow>
                                                 <block type="variables_get" id="+o;7QA=?!Pl3SH$,wbd3">
                                                   <field name="VAR" id="3D5Wh[6Yys[QzLHmrE}T" variabletype="">Blau</field>
                                                 </block>
                                               </value>
                                             </block>
                                           </value>
                                         </block>
                                       </value>
                                     </block>
                                   </next>
                                 </block>
                               </next>
                             </block>
                           </next>
                         </block>
                       </next>
                     </block>
                   </next>
                 </block>
               </next>
             </block>
           </next>
         </block>
       </statement>
     </block>
     <block type="procedures_defcustomreturn" id="nkVsMQBUd_=f)e)(*u6o" x="113" y="1538">
       <mutation statements="false">
         <arg name="r" varid="!?xYTn#CRXWU$Z1iOiz~"></arg>
         <arg name="g" varid="bx{w{l!Vi{!:JDx,b`55"></arg>
         <arg name="b" varid="yIwLxE8=W;z,W3?g]r{{"></arg>
       </mutation>
       <field name="NAME">hex</field>
       <field name="SCRIPT">ICByID0gci50b1N0cmluZygxNik7DQogIGcgPSBnLnRvU3RyaW5nKDE2KTsNCiAgYiA9IGIudG9TdHJpbmcoMTYpOw0KDQogIGlmIChyLmxlbmd0aCA9PSAxKXsNCiAgICByID0gIjAiICsgcn07DQogIGlmIChnLmxlbmd0aCA9PSAxKXsNCiAgICBnID0gIjAiICsgZ307DQogIGlmIChiLmxlbmd0aCA9PSAxKXsNCiAgICBiID0gIjAiICsgYn07DQoNCiAgcmV0dXJuICIjIiArIHIgKyBnICsgYjs=</field>
       <comment pinned="false" h="80" w="160">Beschreibe diese Funktion …</comment>
     </block>
    </xml>
    

    Vielleicht ist es für den ein oder anderen nützlich, für Verbesserungsvorschläge bin ich offen.

    LG Marcus

    Host: Intel Nuc6cayh (16GB Ram, 240GB SSD) mit Proxmox.

    Iobroker VM, InfluxDB LXC, Pihole LXC, Tasmoadmin LXC, Easy2connect VM

    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

    364

    Online

    32.6k

    Benutzer

    82.3k

    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