Navigation

    Logo
    • Register
    • Login
    • Search
    • Recent
    • Tags
    • Unread
    • Categories
    • Unreplied
    • Popular
    • GitHub
    • Docu
    • Hilfe
    1. Home
    2. Deutsch
    3. ioBroker Allgemein
    4. 3 Shelly RGBW Terrassenbeleuchtung synchronisieren

    NEWS

    • Wir empfehlen: Node.js 22.x

    • Neuer Blog: Fotos und Eindrücke aus Solingen

    • ioBroker goes Matter ... Matter Adapter in Stable

    3 Shelly RGBW Terrassenbeleuchtung synchronisieren

    This topic has been deleted. Only users with topic management privileges can see it.
    • siggi85
      siggi85 @maniac last edited by siggi85

      @maniac Wegen der Gruppierung:
      Ich habe sowas mit 4 RGBW2 am laufen und funktioniert gut. Ich habe die Datenpunkte eines Shellys exportiert und den JSON export etwas angepasst (Datenstruktur in custom.0.XXX geändert) und wieder importiert. Alternativ kann man sich die Gruppendatenpunkte auch per Hand erstellen.
      Dann habe ich in Blockly die Regeln erstellt. Hierbei habe ich meine Vorstellungen der Abhängigkeiten einfließen lassen (wenn bspw. 1 von 4 RGBW2 Switch auf true steht, ist der Gruppen Switch Datenpunkt bereits auf true, wenn die einzelnen Helligkeiten sich unterscheiden, wird ein Durchschnitt auf dem Gain Gruppen Datenpunkt gebildet, etc). Vielleicht kannst du diese ja nutzen um sie auf deine Bedürfnisse anzupassen.

      Anbei die Exporte der beiden Blocklys.


      <xml xmlns="http://www.w3.org/1999/xhtml">
      <variables>
      <variable type="undefined" id="timeout">timeout</variable>
      <variable type="undefined" id="timeout2">timeout2</variable>
      <variable type="undefined" id="timeout3">timeout3</variable>
      <variable type="undefined" id="timeout4">timeout4</variable>
      </variables>
      <block type="on_ext" id="jW;@r2mW)MO4xvzQZK%|" x="138" y="-362">
      <mutation items="1"></mutation>
      <field name="CONDITION">any</field>
      <field name="ACK_CONDITION">false</field>
      <value name="OID0">
      <shadow type="field_oid" id="V3e316_DoYC1c/=iHo|">
      <field name="oid">custom.0.licht.wohnzimmer.Vouten.Switch</field>
      </shadow>
      </value>
      <statement name="STATEMENT">
      <block type="control" id="pN10HTPZ^C95S`?I}5"> <mutation delay_input="false"></mutation> <field name="OID">shelly.0.SHRGBW2#2B8EBC#1.color.Switch</field> <field name="WITH_DELAY">FALSE</field> <value name="VALUE"> <block type="on_source" id="URK#f9No;Obp,mcQiv]p"> <field name="ATTR">state.val</field> </block> </value> <next> <block type="control" id="`y,Bjsr/OlI!8cT!h7.|"> <mutation delay_input="false"></mutation> <field name="OID">shelly.0.SHRGBW2#2B8EEB#1.color.Switch</field> <field name="WITH_DELAY">FALSE</field> <value name="VALUE"> <block type="on_source" id="oW-1Pv_(4W*`Eu[nvYVw"> <field name="ATTR">state.val</field> </block> </value> <next> <block type="control" id="0VjWC=ay}nZFr{m0(N.o"> <mutation delay_input="false"></mutation> <field name="OID">shelly.0.SHRGBW2#2B8F05#1.color.Switch</field> <field name="WITH_DELAY">FALSE</field> <value name="VALUE"> <block type="on_source" id=";!z*?5wCw!Hch7/.PG!n"> <field name="ATTR">state.val</field> </block> </value> <next> <block type="control" id="cdjr_fdVha+%_]VcH7(/"> <mutation delay_input="false"></mutation> <field name="OID">shelly.0.SHRGBW2#2B92FB#1.color.Switch</field> <field name="WITH_DELAY">FALSE</field> <value name="VALUE"> <block type="on_source" id="U@O(E_XvU#5_TMAD.[k^"> <field name="ATTR">state.val</field> </block> </value> </block> </next> </block> </next> </block> </next> </block> </statement> <next> <block type="on_ext" id="`Yr#y%X_Lt?,Fa)ZbEk5"> <mutation items="1"></mutation> <field name="CONDITION">any</field> <field name="ACK_CONDITION">false</field> <value name="OID0"> <shadow type="field_oid" id="d#W2;h5%HQZ+qB1pWuI1"> <field name="oid">custom.0.licht.wohnzimmer.Vouten.gain</field> </shadow> </value> <statement name="STATEMENT"> <block type="controls_if" id="6k!x8fyRL/1A.JFmZ)oo" disabled="true"> <mutation else="1"></mutation> <value name="IF0"> <block type="logic_operation" id="K5;ex/URGt|#s+ArLC!#"> <field name="OP">AND</field> <value name="A"> <block type="logic_compare" id="3][!J4f)SN?B;YZ92P_("> <field name="OP">NEQ</field> <value name="A"> <block type="get_value" id="{*y:vMXc@i6z7#ba|*WZ"> <field name="ATTR">val</field> <field name="OID">custom.0.licht.wohnzimmer.Vouten_White</field> </block> </value> <value name="B"> <block type="logic_boolean" id="|p:-nMdf|yu{@sDX|Cu2"> <field name="BOOL">FALSE</field> </block> </value> </block> </value> <value name="B"> <block type="logic_compare" id="4=QKJ.pd/XR5@.Br.A()"> <field name="OP">GT</field> <value name="A"> <block type="get_value" id=":%N1[^g,)bN[yX7~R@{m"> <field name="ATTR">val</field> <field name="OID">custom.0.licht.wohnzimmer.Vouten_White</field> </block> </value> <value name="B"> <block type="math_number" id="zr!^JKz2l9mpYTCTh`6b"> <field name="NUM">0</field> </block> </value> </block> </value> </block> </value> <statement name="DO0"> <block type="control" id="t{--7(55==l^~O,QDhP4"> <mutation delay_input="false"></mutation> <field name="OID">custom.0.licht.wohnzimmer.Vouten_White</field> <field name="WITH_DELAY">FALSE</field> <value name="VALUE"> <block type="math_round" id="8^`DT.hxrYU)K8aDK9Qp"> <field name="OP">ROUND</field> <value name="NUM"> <shadow type="math_number" id="^o-}Zk3p+GBeC]C_9qin"> <field name="NUM">3.1</field> </shadow> <block type="math_arithmetic" id="HZMTIeoE_Ku.h2{SgHS:"> <field name="OP">MULTIPLY</field> <value name="A"> <shadow type="math_number" id="+AU`n94)2Fj36o6vC/!~"> <field name="NUM">1</field> </shadow> <block type="on_source" id="]8X[I7xS*8|aY*0JzJLv"> <field name="ATTR">state.val</field> </block> </value> <value name="B"> <shadow type="math_number" id="U!5tvgzaAxvnqyo=.Eg."> <field name="NUM">2.54</field> </shadow> </value> </block> </value> </block> </value> </block> </statement> <statement name="ELSE"> <block type="control" id="7iKt,U%RGq({w]p-SVJy"> <mutation delay_input="false"></mutation> <field name="OID">shelly.0.SHRGBW2#2B8EBC#1.color.gain</field> <field name="WITH_DELAY">FALSE</field> <value name="VALUE"> <block type="on_source" id="..8;PfeJYpQJFtAgxA;k"> <field name="ATTR">state.val</field> </block> </value> <next> <block type="control" id="*xjiWudWW.H00gQ3rWTi"> <mutation delay_input="false"></mutation> <field name="OID">shelly.0.SHRGBW2#2B8EEB#1.color.gain</field> <field name="WITH_DELAY">FALSE</field> <value name="VALUE"> <block type="on_source" id="fJcb}lc`on~X.vggWVfn"> <field name="ATTR">state.val</field> </block> </value> <next> <block type="control" id="cT?AGtdXP-zW;0G_c]NB"> <mutation delay_input="false"></mutation> <field name="OID">shelly.0.SHRGBW2#2B8F05#1.color.gain</field> <field name="WITH_DELAY">FALSE</field> <value name="VALUE"> <block type="on_source" id="w.gOYv5/3KPKavP,E,Pz"> <field name="ATTR">state.val</field> </block> </value> <next> <block type="control" id="XaOL)SlW[hzNk*NrRI(}"> <mutation delay_input="false"></mutation> <field name="OID">shelly.0.SHRGBW2#2B92FB#1.color.gain</field> <field name="WITH_DELAY">FALSE</field> <value name="VALUE"> <block type="on_source" id="D7{h_3([`.|jx^|D#
      ">
      <field name="ATTR">state.val</field>
      </block>
      </value>
      </block>
      </next>
      </block>
      </next>
      </block>
      </next>
      </block>
      </statement>
      <next>
      <block type="control" id=";8y#?{Mk.VAHH,EhK5bj">
      <mutation delay_input="false"></mutation>
      <field name="OID">shelly.0.SHRGBW2#2B8EBC#1.color.gain</field>
      <field name="WITH_DELAY">FALSE</field>
      <value name="VALUE">
      <block type="on_source" id="I|)k6]0PbX[rBxB%F(XZ">
      <field name="ATTR">state.val</field>
      </block>
      </value>
      <next>
      <block type="control" id="w/gskIJr|U/GKsF6@AzA">
      <mutation delay_input="false"></mutation>
      <field name="OID">shelly.0.SHRGBW2#2B8EEB#1.color.gain</field>
      <field name="WITH_DELAY">FALSE</field>
      <value name="VALUE">
      <block type="on_source" id="WZt+(ioeIChDR?aR6^Y"> <field name="ATTR">state.val</field> </block> </value> <next> <block type="control" id="VedxVX%K6(/f741~JOfk"> <mutation delay_input="false"></mutation> <field name="OID">shelly.0.SHRGBW2#2B8F05#1.color.gain</field> <field name="WITH_DELAY">FALSE</field> <value name="VALUE"> <block type="on_source" id="knfC{PsAmG1eRs}V3h26"> <field name="ATTR">state.val</field> </block> </value> <next> <block type="control" id="Z3bGj;ABqL,$S{B(g+it"> <mutation delay_input="false"></mutation> <field name="OID">shelly.0.SHRGBW2#2B92FB#1.color.gain</field> <field name="WITH_DELAY">FALSE</field> <value name="VALUE"> <block type="on_source" id="p.UW*Z74]nD[W$o_Ui(!"> <field name="ATTR">state.val</field> </block> </value> <next> <block type="controls_if" id="Elo7}Wn20[~lUfd+fzB."> <mutation elseif="1"></mutation> <value name="IF0"> <block type="logic_compare" id="7tEian~6HG#^8~XpC]BA"> <field name="OP">GT</field> <value name="A"> <block type="on_source" id="67bEaB)|,GVz~sqUxWnl"> <field name="ATTR">state.val</field> </block> </value> <value name="B"> <block type="math_number" id="Z]+Qy{diC/0#SS]/PM=x"> <field name="NUM">0</field> </block> </value> </block> </value> <statement name="DO0"> <block type="timeouts_settimeout" id="G98l/bk7J#Cvb|8f,vBt"> <field name="NAME">timeout</field> <field name="DELAY">1000</field> <field name="UNIT">ms</field> <statement name="STATEMENT"> <block type="control" id="m/kkz.FvrI-#r3Mv)">
      <mutation delay_input="false"></mutation>
      <field name="OID">custom.0.licht.wohnzimmer.Vouten.Switch</field>
      <field name="WITH_DELAY">FALSE</field>
      <value name="VALUE">
      <block type="logic_boolean" id=",R_rTxr_7.:mWOxgIEm?">
      <field name="BOOL">TRUE</field>
      </block>
      </value>
      </block>
      </statement>
      </block>
      </statement>
      <value name="IF1">
      <block type="logic_compare" id="{Bu%q;0pNGALF]W,0VxO">
      <field name="OP">EQ</field>
      <value name="A">
      <block type="get_value" id="aH_Np};tNSG6Q+=KCGH}">
      <field name="ATTR">val</field>
      <field name="OID">custom.0.licht.wohnzimmer.Vouten_White</field>
      </block>
      </value>
      <value name="B">
      <block type="math_number" id=")K-fTS~4fC~:0@pWE
      b)">
      <field name="NUM">0</field>
      </block>
      </value>
      </block>
      </value>
      <statement name="DO1">
      <block type="timeouts_settimeout" id="Ijf?~IHXAtE2]S}M3:G">
      <field name="NAME">timeout2</field>
      <field name="DELAY">1000</field>
      <field name="UNIT">ms</field>
      <statement name="STATEMENT">
      <block type="control" id="G-A3b;y0s(y2oZM%d87^">
      <mutation delay_input="false"></mutation>
      <field name="OID">custom.0.licht.wohnzimmer.Vouten.Switch</field>
      <field name="WITH_DELAY">FALSE</field>
      <value name="VALUE">
      <block type="logic_boolean" id="X3~v)E^{[f(x;=2ssNS"> <field name="BOOL">FALSE</field> </block> </value> </block> </statement> </block> </statement> </block> </next> </block> </next> </block> </next> </block> </next> </block> </next> </block> </statement> <next> <block type="on_ext" id="|q6b3Q9;1xAgM_1ln%^">
      <mutation items="1"></mutation>
      <field name="CONDITION">any</field>
      <field name="ACK_CONDITION">false</field>
      <value name="OID0">
      <shadow type="field_oid" id="P4x]Xw!B60W{%G)p(!lx">
      <field name="oid">custom.0.licht.wohnzimmer.Vouten.white</field>
      </shadow>
      </value>
      <statement name="STATEMENT">
      <block type="control" id="60(nS/bvo!q///@=j9Dn">
      <mutation delay_input="false"></mutation>
      <field name="OID">shelly.0.SHRGBW2#2B8EBC#1.color.white</field>
      <field name="WITH_DELAY">FALSE</field>
      <value name="VALUE">
      <block type="on_source" id="Vjvw8lV%-0K0G!;WINlW">
      <field name="ATTR">state.val</field>
      </block>
      </value>
      <next>
      <block type="control" id="A{65F(QvC-/tY2T(KD-F">
      <mutation delay_input="false"></mutation>
      <field name="OID">shelly.0.SHRGBW2#2B8EEB#1.color.white</field>
      <field name="WITH_DELAY">FALSE</field>
      <value name="VALUE">
      <block type="on_source" id="TXEvkRCrX2GTr6+*S0hp">
      <field name="ATTR">state.val</field>
      </block>
      </value>
      <next>
      <block type="control" id="6|3hY6,w-k9r3^epKjqJ">
      <mutation delay_input="false"></mutation>
      <field name="OID">shelly.0.SHRGBW2#2B8F05#1.color.white</field>
      <field name="WITH_DELAY">FALSE</field>
      <value name="VALUE">
      <block type="on_source" id="oPe3d9LNko_FE2
      #Fn~T">
      <field name="ATTR">state.val</field>
      </block>
      </value>
      <next>
      <block type="control" id=",v|@#5wsyMb#mAG8yV6)">
      <mutation delay_input="false"></mutation>
      <field name="OID">shelly.0.SHRGBW2#2B92FB#1.color.white</field>
      <field name="WITH_DELAY">FALSE</field>
      <value name="VALUE">
      <block type="on_source" id="Y3)W.925|*LR
      [W~~PY{">
      <field name="ATTR">state.val</field>
      </block>
      </value>
      <next>
      <block type="controls_if" id="inC@0bi:}q=B6r{q=05o">
      <mutation elseif="1" else="1"></mutation>
      <value name="IF0">
      <block type="logic_compare" id="mXoHT]3Qh9TYGCexjT4M">
      <field name="OP">GT</field>
      <value name="A">
      <block type="on_source" id="LN8VNUy]|2DC4wUdxzr">
      <field name="ATTR">state.val</field>
      </block>
      </value>
      <value name="B">
      <block type="math_number" id="gzl{-zu6cg#VqFbdxn#8">
      <field name="NUM">0</field>
      </block>
      </value>
      </block>
      </value>
      <statement name="DO0">
      <block type="timeouts_settimeout" id="i;n[X@MA}BpoBFkvRZvh">
      <field name="NAME">timeout3</field>
      <field name="DELAY">1000</field>
      <field name="UNIT">ms</field>
      <statement name="STATEMENT">
      <block type="control" id="JN3D,tOFdp;d0/7Uh3=u">
      <mutation delay_input="false"></mutation>
      <field name="OID">custom.0.licht.wohnzimmer.Vouten.Switch</field>
      <field name="WITH_DELAY">FALSE</field>
      <value name="VALUE">
      <block type="logic_boolean" id="@T,2.DNIjCHYy+tMMGw"> <field name="BOOL">TRUE</field> </block> </value> </block> </statement> </block> </statement> <value name="IF1"> <block type="logic_compare" id="_Jl*=lA+wRQ+o14O#|41"> <field name="OP">EQ</field> <value name="A"> <block type="get_value" id="J(O,T.)YiTXuqmTUEfl#"> <field name="ATTR">val</field> <field name="OID">custom.0.licht.wohnzimmer.Vouten_Helligkeit</field> </block> </value> <value name="B"> <block type="math_number" id="vY0%pf)Nx9}dO7fNCJ92"> <field name="NUM">0</field> </block> </value> </block> </value> <statement name="DO1"> <block type="timeouts_settimeout" id="Yy6b7|q[zu5SCh5Rrl.F"> <field name="NAME">timeout4</field> <field name="DELAY">1000</field> <field name="UNIT">ms</field> <statement name="STATEMENT"> <block type="control" id="MF!(}#PLV--CPX=cSs~)"> <mutation delay_input="false"></mutation> <field name="OID">custom.0.licht.wohnzimmer.Vouten.Switch</field> <field name="WITH_DELAY">FALSE</field> <value name="VALUE"> <block type="logic_boolean" id="O;bkJ/86J6(v.~,A0:iT"> <field name="BOOL">FALSE</field> </block> </value> </block> </statement> </block> </statement> </block> </next> </block> </next> </block> </next> </block> </next> </block> </statement> <next> <block type="on_ext" id="pz^HWHavB5O)U=,qe0~h"> <mutation items="1"></mutation> <field name="CONDITION">any</field> <field name="ACK_CONDITION">false</field> <value name="OID0"> <shadow type="field_oid" id="Q5b{hYqABSfi(fKoyg_e"> <field name="oid">custom.0.licht.wohnzimmer.Vouten.rgbw</field> </shadow> </value> <statement name="STATEMENT"> <block type="control" id="||YhG|S^0eJ}UQ{_lkyJ"> <mutation delay_input="false"></mutation> <field name="OID">shelly.0.SHRGBW2#2B8EBC#1.color.rgbw</field> <field name="WITH_DELAY">FALSE</field> <value name="VALUE"> <block type="on_source" id="-IOYU46{HY9~wYp==rCd"> <field name="ATTR">state.val</field> </block> </value> <next> <block type="control" id="z+rxti_IABZJo!:@.Bw9"> <mutation delay_input="false"></mutation> <field name="OID">shelly.0.SHRGBW2#2B8EEB#1.color.rgbw</field> <field name="WITH_DELAY">FALSE</field> <value name="VALUE"> <block type="on_source" id="v}hxGpJsb5=SZ=;q6kd">
      <field name="ATTR">state.val</field>
      </block>
      </value>
      <next>
      <block type="control" id="}kp%IKg~V@]8mO^1gk:"> <mutation delay_input="false"></mutation> <field name="OID">shelly.0.SHRGBW2#2B8F05#1.color.rgbw</field> <field name="WITH_DELAY">FALSE</field> <value name="VALUE"> <block type="on_source" id="y0O;m*b[lbmU,.,fv9*g"> <field name="ATTR">state.val</field> </block> </value> <next> <block type="control" id="-My*RI*?Yg*HSz}5J+_7"> <mutation delay_input="false"></mutation> <field name="OID">shelly.0.SHRGBW2#2B92FB#1.color.rgbw</field> <field name="WITH_DELAY">FALSE</field> <value name="VALUE"> <block type="on_source" id="wGUHDi64i.JjCNQgx_{q"> <field name="ATTR">state.val</field> </block> </value> </block> </next> </block> </next> </block> </next> </block> </statement> <next> <block type="on_ext" id="Jglkfv=wrAM%GgdqEt^">
      <mutation items="1"></mutation>
      <field name="CONDITION">any</field>
      <field name="ACK_CONDITION">false</field>
      <value name="OID0">
      <shadow type="field_oid" id="5k7hJFX9nT2-@IYuV9N9">
      <field name="oid">custom.0.licht.wohnzimmer.Vouten.red</field>
      </shadow>
      </value>
      <statement name="STATEMENT">
      <block type="control" id="}KQO2^I[Knuo5Kzc{w">
      <mutation delay_input="false"></mutation>
      <field name="OID">shelly.0.SHRGBW2#2B8EBC#1.color.red</field>
      <field name="WITH_DELAY">FALSE</field>
      <value name="VALUE">
      <block type="on_source" id="4!u_+pmWzB-5)T_;;fcM">
      <field name="ATTR">state.val</field>
      </block>
      </value>
      <next>
      <block type="control" id="?c^:QRar8hV
      .U6rU{2%">
      <mutation delay_input="false"></mutation>
      <field name="OID">shelly.0.SHRGBW2#2B8EEB#1.color.red</field>
      <field name="WITH_DELAY">FALSE</field>
      <value name="VALUE">
      <block type="on_source" id="7m(zzu!;2TjsqUIMD9zd">
      <field name="ATTR">state.val</field>
      </block>
      </value>
      <next>
      <block type="control" id="8SJ5CV;lrJqUYjOACg-x">
      <mutation delay_input="false"></mutation>
      <field name="OID">shelly.0.SHRGBW2#2B8F05#1.color.red</field>
      <field name="WITH_DELAY">FALSE</field>
      <value name="VALUE">
      <block type="on_source" id="f0W/b0to8r!W+E}@Jg!{">
      <field name="ATTR">state.val</field>
      </block>
      </value>
      <next>
      <block type="control" id="B(OyJrB~3Jw#@;2KHnsa">
      <mutation delay_input="false"></mutation>
      <field name="OID">shelly.0.SHRGBW2#2B92FB#1.color.red</field>
      <field name="WITH_DELAY">FALSE</field>
      <value name="VALUE">
      <block type="on_source" id="VQiSLnnhd96v%6t?lz%"> <field name="ATTR">state.val</field> </block> </value> </block> </next> </block> </next> </block> </next> </block> </statement> <next> <block type="on_ext" id="GLsZrcwF*}9j#R;{Tjp:"> <mutation items="1"></mutation> <field name="CONDITION">any</field> <field name="ACK_CONDITION">false</field> <value name="OID0"> <shadow type="field_oid" id="aP,?6ljge5IC[w1wOL:z"> <field name="oid">custom.0.licht.wohnzimmer.Vouten.green</field> </shadow> </value> <statement name="STATEMENT"> <block type="control" id="aDg6eg,gA}Ld-#xxafIu"> <mutation delay_input="false"></mutation> <field name="OID">shelly.0.SHRGBW2#2B8EBC#1.color.green</field> <field name="WITH_DELAY">FALSE</field> <value name="VALUE"> <block type="on_source" id="2+VyvAn,!zKzsN*6+g}#"> <field name="ATTR">state.val</field> </block> </value> <next> <block type="control" id="Ad8T6iPg;KOq^NUbkx0v"> <mutation delay_input="false"></mutation> <field name="OID">shelly.0.SHRGBW2#2B8EEB#1.color.green</field> <field name="WITH_DELAY">FALSE</field> <value name="VALUE"> <block type="on_source" id="Gkj4-HW;z?YM@=HjAWx)"> <field name="ATTR">state.val</field> </block> </value> <next> <block type="control" id="Njry+)/[!r24%zR/nCc9"> <mutation delay_input="false"></mutation> <field name="OID">shelly.0.SHRGBW2#2B8F05#1.color.green</field> <field name="WITH_DELAY">FALSE</field> <value name="VALUE"> <block type="on_source" id="?lOICZ@G^LunV=5jSjAk"> <field name="ATTR">state.val</field> </block> </value> <next> <block type="control" id="OW(|q@e4oU/Oe~{+Pq">
      <mutation delay_input="false"></mutation>
      <field name="OID">shelly.0.SHRGBW2#2B92FB#1.color.green</field>
      <field name="WITH_DELAY">FALSE</field>
      <value name="VALUE">
      <block type="on_source" id="[9aC5pCSnm2x1#l?SM]x">
      <field name="ATTR">state.val</field>
      </block>
      </value>
      </block>
      </next>
      </block>
      </next>
      </block>
      </next>
      </block>
      </statement>
      <next>
      <block type="on_ext" id="dITn3])-Q{rA_gf;_iCt">
      <mutation items="1"></mutation>
      <field name="CONDITION">any</field>
      <field name="ACK_CONDITION">false</field>
      <value name="OID0">
      <shadow type="field_oid" id="@:GF=cir;cL^CC|b5t3@">
      <field name="oid">custom.0.licht.wohnzimmer.Vouten.blue</field>
      </shadow>
      </value>
      <statement name="STATEMENT">
      <block type="control" id=")xZViePn:KjPNEbU:P5E">
      <mutation delay_input="false"></mutation>
      <field name="OID">shelly.0.SHRGBW2#2B8EBC#1.color.blue</field>
      <field name="WITH_DELAY">FALSE</field>
      <value name="VALUE">
      <block type="on_source" id="-fOv):E,[5vGTe
      5)KiE">
      <field name="ATTR">state.val</field>
      </block>
      </value>
      <next>
      <block type="control" id="EM*ij8+q)=xZ1yhCP#fX">
      <mutation delay_input="false"></mutation>
      <field name="OID">shelly.0.SHRGBW2#2B8EEB#1.color.blue</field>
      <field name="WITH_DELAY">FALSE</field>
      <value name="VALUE">
      <block type="on_source" id="2Cht@BjYFaJ?fhP+R06Y">
      <field name="ATTR">state.val</field>
      </block>
      </value>
      <next>
      <block type="control" id=".Urka+g?%/d.X5@Tg2s@">
      <mutation delay_input="false"></mutation>
      <field name="OID">shelly.0.SHRGBW2#2B8F05#1.color.blue</field>
      <field name="WITH_DELAY">FALSE</field>
      <value name="VALUE">
      <block type="on_source" id="~:tE/uUswjY7,53Cl+:d">
      <field name="ATTR">state.val</field>
      </block>
      </value>
      <next>
      <block type="control" id="B{Fz)6d#}4(b5)YeA[vx">
      <mutation delay_input="false"></mutation>
      <field name="OID">shelly.0.SHRGBW2#2B92FB#1.color.blue</field>
      <field name="WITH_DELAY">FALSE</field>
      <value name="VALUE">
      <block type="on_source" id="o?Jo%^QE=3a#%upm:*0(">
      <field name="ATTR">state.val</field>
      </block>
      </value>
      </block>
      </next>
      </block>
      </next>
      </block>
      </next>
      </block>
      </statement>
      </block>
      </next>
      </block>
      </next>
      </block>
      </next>
      </block>
      </next>
      </block>
      </next>
      </block>
      </next>
      </block>
      </xml>

      M 2 Replies Last reply Reply Quote 0
      • siggi85
        siggi85 @maniac last edited by

        @maniac
        Part 2


        <xml xmlns="http://www.w3.org/1999/xhtml">
        <variables>
        <variable type="undefined" id="timeout2">timeout2</variable>
        <variable type="undefined" id="timeout3">timeout3</variable>
        <variable type="" id="h9?X+.Gy8cN{olpdW4[I">vouten_helligkeit</variable>
        <variable type="" id="gSytXDc9,kaZ.zEUPL5W">value</variable>
        <variable type="undefined" id="timeout4">timeout4</variable>
        </variables>
        <block type="on_ext" id="U7c0]cC+0]1aG_94[ht" x="363" y="-237"> <mutation items="4"></mutation> <field name="CONDITION">ne</field> <field name="ACK_CONDITION"></field> <value name="OID0"> <shadow type="field_oid" id="wcQh.xc^uyQ0YXmnEh:["> <field name="oid">shelly.0.SHRGBW2#2B8EBC#1.color.white</field> </shadow> </value> <value name="OID1"> <shadow type="field_oid" id="4Bd4Qd:?+%xI,+gUuVV">
        <field name="oid">shelly.0.SHRGBW2#2B8EEB#1.color.white</field>
        </shadow>
        </value>
        <value name="OID2">
        <shadow type="field_oid" id="%2M9qpzVHrY.kXxAQf,"> <field name="oid">shelly.0.SHRGBW2#2B8F05#1.color.white</field> </shadow> </value> <value name="OID3"> <shadow type="field_oid" id="QDLlf+{z2e1}O:W1b7"> <field name="oid">shelly.0.SHRGBW2#2B92FB#1.color.white</field> </shadow> </value> <statement name="STATEMENT"> <block type="timeouts_settimeout" id="^o/HxTfxw1b{m8Ayx0!-"> <field name="NAME">timeout2</field> <field name="DELAY">2</field> <field name="UNIT">sec</field> <statement name="STATEMENT"> <block type="controls_if" id="2o5y(?l04GCYAVhoLUt("> <mutation else="1"></mutation> <value name="IF0"> <block type="logic_operation" id="h~pXX:0BBI5_xMun.9Dh" inline="false"> <field name="OP">AND</field> <value name="A"> <block type="logic_operation" id="uYHAO]vR9=P+17w@mSGH" inline="false"> <field name="OP">AND</field> <value name="A"> <block type="logic_compare" id="z7uA]];5yR@G2KM+=@0,"> <field name="OP">EQ</field> <value name="A"> <block type="get_value" id="LlA1Jg-I=EM2mqJ-fhI^"> <field name="ATTR">val</field> <field name="OID">shelly.0.SHRGBW2#2B8EBC#1.color.white</field> </block> </value> <value name="B"> <block type="get_value" id="12#)c0L_(?)ZRnvb(#8^"> <field name="ATTR">val</field> <field name="OID">shelly.0.SHRGBW2#2B8EEB#1.color.white</field> </block> </value> </block> </value> <value name="B"> <block type="logic_compare" id="8/kD@$)_~pG!)069C=%B"> <field name="OP">EQ</field> <value name="A"> <block type="get_value" id="YAZiZnyP~,nv1FP51Jv_"> <field name="ATTR">val</field> <field name="OID">shelly.0.SHRGBW2#2B8EBC#1.color.white</field> </block> </value> <value name="B"> <block type="get_value" id="z+*hpfq3ouErM!d(:Vs,"> <field name="ATTR">val</field> <field name="OID">shelly.0.SHRGBW2#2B8F05#1.color.white</field> </block> </value> </block> </value> </block> </value> <value name="B"> <block type="logic_compare" id="9p?K@7j9sJzqaZ{6hBOs"> <field name="OP">EQ</field> <value name="A"> <block type="get_value" id="{]e)sW{0p^dc#g)og_O3"> <field name="ATTR">val</field> <field name="OID">shelly.0.SHRGBW2#2B8EBC#1.color.white</field> </block> </value> <value name="B"> <block type="get_value" id="LW+yox]eoG9p(lrg)cXa"> <field name="ATTR">val</field> <field name="OID">shelly.0.SHRGBW2#2B92FB#1.color.white</field> </block> </value> </block> </value> </block> </value> <statement name="DO0"> <block type="update" id="x0l-{x50NF*8g6cxBl$?"> <mutation delay_input="false"></mutation> <field name="OID">custom.0.licht.wohnzimmer.Vouten.white</field> <field name="WITH_DELAY">FALSE</field> <value name="VALUE"> <block type="get_value" id="NJ1rw_ur*P=LykkSs^}T"> <field name="ATTR">val</field> <field name="OID">shelly.0.SHRGBW2#2B8EBC#1.color.white</field> </block> </value> </block> </statement> <statement name="ELSE"> <block type="update" id="O:*o8U?w~1S+!ZI@Kf-L"> <mutation delay_input="false"></mutation> <field name="OID">custom.0.licht.wohnzimmer.Vouten.white</field> <field name="WITH_DELAY">FALSE</field> <value name="VALUE"> <block type="logic_boolean" id="cvyGUMDCu76)T-wIA:yd"> <field name="BOOL">FALSE</field> </block> </value> </block> </statement> </block> </statement> </block> </statement> <next> <block type="on_ext" id=")UanL*sxd1BdHu_AQa7|"> <mutation items="4"></mutation> <field name="CONDITION">ne</field> <field name="ACK_CONDITION"></field> <value name="OID0"> <shadow type="field_oid" id="}857p+}PC)9?t,H@~/@F"> <field name="oid">shelly.0.SHRGBW2#2B8EBC#1.color.rgbw</field> </shadow> </value> <value name="OID1"> <shadow type="field_oid" id="_8:{;p.A.1Ny1EH!f]MR"> <field name="oid">shelly.0.SHRGBW2#2B8EEB#1.color.rgbw</field> </shadow> </value> <value name="OID2"> <shadow type="field_oid" id="0(sZf0=oNtaJHvoxs~=*"> <field name="oid">shelly.0.SHRGBW2#2B8F05#1.color.rgbw</field> </shadow> </value> <value name="OID3"> <shadow type="field_oid" id="0%yPgAW;}iGv4tv/AHd">
        <field name="oid">shelly.0.SHRGBW2#2B92FB#1.color.rgbw</field>
        </shadow>
        </value>
        <statement name="STATEMENT">
        <block type="timeouts_cleartimeout" id="X_:,,?woz_n[Qriwb!!p">
        <field name="NAME">timeout4</field>
        <next>
        <block type="variables_set" id="cTk[-;jEh}rt~[yF/r16">
        <field name="VAR" id="gSytXDc9,kaZ.zEUPL5W" variabletype="">value</field>
        <value name="VALUE">
        <block type="math_number" id="o~e{R$ZL1oD:-;E~eoF"> <field name="NUM">0</field> </block> </value> <next> <block type="controls_if" id="(8~v7*$+C.$vBF6v1-vP"> <value name="IF0"> <block type="logic_compare" id="wqWOtr7(GN,VD2Vfr}j6"> <field name="OP">EQ</field> <value name="A"> <block type="get_value" id="{rTX}vxS0qY#R%h,yR]:"> <field name="ATTR">val</field> <field name="OID">shelly.0.SHRGBW2#2B8EBC#1.color.rgbw</field> </block> </value> <value name="B"> <block type="get_value" id="RxV*Shj~/yzI%Z|z~7a4"> <field name="ATTR">val</field> <field name="OID">shelly.0.SHRGBW2#2B8EEB#1.color.rgbw</field> </block> </value> </block> </value> <statement name="DO0"> <block type="variables_set" id="=9K24$7|)H;Zuo4Pm6w">
        <field name="VAR" id="gSytXDc9,kaZ.zEUPL5W" variabletype="">value</field>
        <value name="VALUE">
        <block type="math_arithmetic" id="SON~,o?x!oN23CqOsY?p">
        <field name="OP">ADD</field>
        <value name="A">
        <shadow type="math_number" id="hiTyxesyvWu~jT.(*t^"> <field name="NUM">1</field> </shadow> <block type="variables_get" id="UA#]6eL%/-i?@yt{?LDS"> <field name="VAR" id="gSytXDc9,kaZ.zEUPL5W" variabletype="">value</field> </block> </value> <value name="B"> <shadow type="math_number" id="hP}$9?~~QDUR{3DVd%q">
        <field name="NUM">1</field>
        </shadow>
        </value>
        </block>
        </value>
        </block>
        </statement>
        <next>
        <block type="controls_if" id="/e)8J^~!.R=@6ON;IoIq">
        <value name="IF0">
        <block type="logic_compare" id="3d[a^.PnG,T7+5Dh=5o"> <field name="OP">EQ</field> <value name="A"> <block type="get_value" id="#?L)E?6ZbMlJa;qVm/~">
        <field name="ATTR">val</field>
        <field name="OID">shelly.0.SHRGBW2#2B8EBC#1.color.rgbw</field>
        </block>
        </value>
        <value name="B">
        <block type="get_value" id=".Enrjd.UI3B|qeIkxYed">
        <field name="ATTR">val</field>
        <field name="OID">shelly.0.SHRGBW2#2B8F05#1.color.rgbw</field>
        </block>
        </value>
        </block>
        </value>
        <statement name="DO0">
        <block type="variables_set" id="nFrP{JHp=8!=vo)]}z)"> <field name="VAR" id="gSytXDc9,kaZ.zEUPL5W" variabletype="">value</field> <value name="VALUE"> <block type="math_arithmetic" id="JIM2u}#CWjawas3{dU-g"> <field name="OP">ADD</field> <value name="A"> <shadow type="math_number" id="hiTyxesyvWu~jT.(t^">
        <field name="NUM">1</field>
        </shadow>
        <block type="variables_get" id="Dj]=dEa5sKmnm^hqAH)">
        <field name="VAR" id="gSytXDc9,kaZ.zEUPL5W" variabletype="">value</field>
        </block>
        </value>
        <value name="B">
        <shadow type="math_number" id=".thX!ZSi:N1e(p_LkOSV">
        <field name="NUM">1</field>
        </shadow>
        </value>
        </block>
        </value>
        </block>
        </statement>
        <next>
        <block type="controls_if" id="@{AW]6{.hrs@?VL]|tqw">
        <value name="IF0">
        <block type="logic_compare" id="!gH;%gz.5%7fxeO6g+Cp">
        <field name="OP">EQ</field>
        <value name="A">
        <block type="get_value" id="OZxh$NW5BI3fdL].ZDc"> <field name="ATTR">val</field> <field name="OID">shelly.0.SHRGBW2#2B8EBC#1.color.rgbw</field> </block> </value> <value name="B"> <block type="get_value" id="r~j?k8u#?aCvW7^^-uTa"> <field name="ATTR">val</field> <field name="OID">shelly.0.SHRGBW2#2B92FB#1.color.rgbw</field> </block> </value> </block> </value> <statement name="DO0"> <block type="variables_set" id=",tJ@)deIV#4]X@Cd@Oa7"> <field name="VAR" id="gSytXDc9,kaZ.zEUPL5W" variabletype="">value</field> <value name="VALUE"> <block type="math_arithmetic" id=".B8$ITB-iQ$incY;j|og"> <field name="OP">ADD</field> <value name="A"> <shadow type="math_number" id="hiTyxesyvWu~jT.(t^">
        <field name="NUM">1</field>
        </shadow>
        <block type="variables_get" id="W}Psq2Vj=Y7Y:Hu8D7?w">
        <field name="VAR" id="gSytXDc9,kaZ.zEUPL5W" variabletype="">value</field>
        </block>
        </value>
        <value name="B">
        <shadow type="math_number" id="(!J=g?-=p3Mhu0ZM8,O|">
        <field name="NUM">1</field>
        </shadow>
        </value>
        </block>
        </value>
        </block>
        </statement>
        <next>
        <block type="timeouts_settimeout" id="WzK_Jc]7_wVg77-=KS#F">
        <field name="NAME">timeout4</field>
        <field name="DELAY">1</field>
        <field name="UNIT">sec</field>
        <statement name="STATEMENT">
        <block type="controls_if" id="yJcZ82
        H|Qz+;Z0Di=!-">
        <mutation else="1"></mutation>
        <value name="IF0">
        <block type="logic_compare" id="px~JA{(:O4LRs6qaX}JE">
        <field name="OP">EQ</field>
        <value name="A">
        <block type="variables_get" id="(R,9!IZQNUklQ5R
        IZH=">
        <field name="VAR" id="gSytXDc9,kaZ.zEUPL5W" variabletype="">value</field>
        </block>
        </value>
        <value name="B">
        <block type="math_number" id="5/yHwu/bIVFWqa%:OKeE">
        <field name="NUM">3</field>
        </block>
        </value>
        </block>
        </value>
        <statement name="DO0">
        <block type="update" id="A_4o
        }4q+lY~69ql8,r[">
        <mutation delay_input="false"></mutation>
        <field name="OID">custom.0.licht.wohnzimmer.Vouten.rgbw</field>
        <field name="WITH_DELAY">FALSE</field>
        <value name="VALUE">
        <block type="get_value" id="plkXZ,tXC$$4+Hyv--x"> <field name="ATTR">val</field> <field name="OID">shelly.0.SHRGBW2#2B8EBC#1.color.rgbw</field> </block> </value> </block> </statement> <statement name="ELSE"> <block type="update" id="BF,~=(v%U[9cDRslvTZ4"> <mutation delay_input="false"></mutation> <field name="OID">custom.0.licht.wohnzimmer.Vouten.rgbw</field> <field name="WITH_DELAY">FALSE</field> <value name="VALUE"> <block type="logic_boolean" id="Xmoeq.]+C({_YPaTbjbE"> <field name="BOOL">FALSE</field> </block> </value> </block> </statement> </block> </statement> </block> </next> </block> </next> </block> </next> </block> </next> </block> </next> </block> </statement> </block> </next> </block> <block type="on_ext" id="yVS#abWBTFX~_6IPFp)E" x="1013" y="-237"> <mutation items="4"></mutation> <field name="CONDITION">any</field> <field name="ACK_CONDITION"></field> <value name="OID0"> <shadow type="field_oid" id="o1RmLjZXVE%[Z_ceh_As"> <field name="oid">shelly.0.SHRGBW2#2B8EBC#1.color.gain</field> </shadow> </value> <value name="OID1"> <shadow type="field_oid" id=".lDIoSWXuI-~s0j6Idzg"> <field name="oid">shelly.0.SHRGBW2#2B8EEB#1.color.gain</field> </shadow> </value> <value name="OID2"> <shadow type="field_oid" id="R#,q{F#KS0vFWVVFHd2Q"> <field name="oid">shelly.0.SHRGBW2#2B8F05#1.color.gain</field> </shadow> </value> <value name="OID3"> <shadow type="field_oid" id="IfE2Q00Udy_[P(nEE"> <field name="oid">shelly.0.SHRGBW2#2B92FB#1.color.gain</field> </shadow> </value> <statement name="STATEMENT"> <block type="timeouts_settimeout" id="S9:$bW(;6hBNyjo_])">
        <field name="NAME">timeout3</field>
        <field name="DELAY">500</field>
        <field name="UNIT">ms</field>
        <statement name="STATEMENT">
        <block type="variables_set" id="X[~EsBEd}vlhNo!+}RPA">
        <field name="VAR" id="h9?X+.Gy8cN{olpdW4[I" variabletype="">vouten_helligkeit</field>
        <value name="VALUE">
        <block type="lists_create_with" id="l,(xq]0!.F*]KLqZ)5C!">
        <mutation items="4"></mutation>
        <value name="ADD0">
        <block type="get_value" id="pp)@f]ItpDl22p;]PE_M">
        <field name="ATTR">val</field>
        <field name="OID">shelly.0.SHRGBW2#2B8EBC#1.color.gain</field>
        </block>
        </value>
        <value name="ADD1">
        <block type="get_value" id="0%iH6Q}Y#eq?E#AcxDZ"> <field name="ATTR">val</field> <field name="OID">shelly.0.SHRGBW2#2B8EEB#1.color.gain</field> </block> </value> <value name="ADD2"> <block type="get_value" id="}pnD@?EJKkvt8;fQj?!?"> <field name="ATTR">val</field> <field name="OID">shelly.0.SHRGBW2#2B8F05#1.color.gain</field> </block> </value> <value name="ADD3"> <block type="get_value" id="y.}Z{.Ln|c;xb:wa?~Ns"> <field name="ATTR">val</field> <field name="OID">shelly.0.SHRGBW2#2B92FB#1.color.gain</field> </block> </value> </block> </value> <next> <block type="update" id=".yTie3|RmPUeUFPfR_6t"> <mutation delay_input="false"></mutation> <field name="OID">custom.0.licht.wohnzimmer.Vouten.gain</field> <field name="WITH_DELAY">FALSE</field> <value name="VALUE"> <block type="math_round" id="PO4nvR_[uoN{wpJ1L8a!"> <field name="OP">ROUND</field> <value name="NUM"> <shadow type="math_number" id="BOFrQZV4_M2CEJmW=%;">
        <field name="NUM">3.1</field>
        </shadow>
        <block type="math_on_list" id="UrKQ.}^y1M/sb?5@lO#"> <mutation op="AVERAGE"></mutation> <field name="OP">AVERAGE</field> <value name="LIST"> <block type="variables_get" id="^W.^^:yKI77|CHEvepn7"> <field name="VAR" id="h9?X+.Gy8cN{olpdW4[I" variabletype="">vouten_helligkeit</field> </block> </value> </block> </value> </block> </value> </block> </next> </block> </statement> </block> </statement> <next> <block type="on_ext" id="x-N*C_!Dp;w7Ja{9Ujj">
        <mutation items="4"></mutation>
        <field name="CONDITION">ne</field>
        <field name="ACK_CONDITION"></field>
        <value name="OID0">
        <shadow type="field_oid" id="4749MvC:Bbm+{W{K6U/K">
        <field name="oid">shelly.0.SHRGBW2#2B8EBC#1.color.Switch</field>
        </shadow>
        </value>
        <value name="OID1">
        <shadow type="field_oid" id="FpCvc;58,DU_SDqRUzP{">
        <field name="oid">shelly.0.SHRGBW2#2B8EEB#1.color.Switch</field>
        </shadow>
        </value>
        <value name="OID2">
        <shadow type="field_oid" id="dcV|!3?J)UpdQh[^WR^u">
        <field name="oid">shelly.0.SHRGBW2#2B8F05#1.color.Switch</field>
        </shadow>
        </value>
        <value name="OID3">
        <shadow type="field_oid" id="~AY,^891Q3}diU8zxE#E">
        <field name="oid">shelly.0.SHRGBW2#2B92FB#1.color.Switch</field>
        </shadow>
        </value>
        <statement name="STATEMENT">
        <block type="variables_set" id="kD2Zs#3ku5MU?!nfoc[O">
        <field name="VAR" id="gSytXDc9,kaZ.zEUPL5W" variabletype="">value</field>
        <value name="VALUE">
        <block type="math_number" id="gE^V?DZYEWWaA:ZfQSrn">
        <field name="NUM">0</field>
        </block>
        </value>
        <next>
        <block type="controls_if" id="pkZ#VlW=-%Ag@LYx!npE">
        <mutation elseif="3"></mutation>
        <value name="IF0">
        <block type="logic_compare" id="}BxF!%8pCm8GsRU2]YP)">
        <field name="OP">EQ</field>
        <value name="A">
        <block type="get_value" id="Vd^!}Ul5Z8=604[wy~L">
        <field name="ATTR">val</field>
        <field name="OID">shelly.0.SHRGBW2#2B8EBC#1.color.Switch</field>
        </block>
        </value>
        <value name="B">
        <block type="logic_boolean" id="7)z~wmqe{]J_7kjM;kn1">
        <field name="BOOL">TRUE</field>
        </block>
        </value>
        </block>
        </value>
        <statement name="DO0">
        <block type="variables_set" id="MBiY9qOQhFWqK8d8:0_3">
        <field name="VAR" id="gSytXDc9,kaZ.zEUPL5W" variabletype="">value</field>
        <value name="VALUE">
        <block type="math_number" id="680N24i7XXm44nAa5vi0">
        <field name="NUM">1</field>
        </block>
        </value>
        </block>
        </statement>
        <value name="IF1">
        <block type="logic_compare" id="Oego%xRTtr|jJePbNVd(">
        <field name="OP">EQ</field>
        <value name="A">
        <block type="get_value" id=";1?rB0omwHH9|R-(!)cK">
        <field name="ATTR">val</field>
        <field name="OID">shelly.0.SHRGBW2#2B8EEB#1.color.Switch</field>
        </block>
        </value>
        <value name="B">
        <block type="logic_boolean" id="Rl~9D;a5s3588a?L12
        ~">
        <field name="BOOL">TRUE</field>
        </block>
        </value>
        </block>
        </value>
        <statement name="DO1">
        <block type="variables_set" id="UG(+sfGFG?ynP*.6f1m;">
        <field name="VAR" id="gSytXDc9,kaZ.zEUPL5W" variabletype="">value</field>
        <value name="VALUE">
        <block type="math_number" id="FTZq?CIa#!1f_J-P%07"> <field name="NUM">1</field> </block> </value> </block> </statement> <value name="IF2"> <block type="logic_compare" id="J%,0OiO#Q[UQN/*e8;]x"> <field name="OP">EQ</field> <value name="A"> <block type="get_value" id="h[0lv_Hv0;Jd)+KAN.gV"> <field name="ATTR">val</field> <field name="OID">shelly.0.SHRGBW2#2B8F05#1.color.Switch</field> </block> </value> <value name="B"> <block type="logic_boolean" id="Z7zZak%@d-rEn1NfKBY)"> <field name="BOOL">TRUE</field> </block> </value> </block> </value> <statement name="DO2"> <block type="variables_set" id="MJfZ6byLyc7BV2Kx[h"> <field name="VAR" id="gSytXDc9,kaZ.zEUPL5W" variabletype="">value</field> <value name="VALUE"> <block type="math_number" id="g!GBhwmol-qYnaDqRcvb"> <field name="NUM">1</field> </block> </value> </block> </statement> <value name="IF3"> <block type="logic_compare" id="JM+Q-{5H~1ImVynAa,!l"> <field name="OP">EQ</field> <value name="A"> <block type="get_value" id="u?~bO^G(#SJ0Rtnt;O,("> <field name="ATTR">val</field> <field name="OID">shelly.0.SHRGBW2#2B92FB#1.color.Switch</field> </block> </value> <value name="B"> <block type="logic_boolean" id="k!/Nj)/y}]o:xbIxsaHZ"> <field name="BOOL">TRUE</field> </block> </value> </block> </value> <statement name="DO3"> <block type="variables_set" id="=8UTP|w4l1ltkG2]7_+">
        <field name="VAR" id="gSytXDc9,kaZ.zEUPL5W" variabletype="">value</field>
        <value name="VALUE">
        <block type="math_number" id="eT4Nq0dy%k!vLH=Z~ENO">
        <field name="NUM">1</field>
        </block>
        </value>
        </block>
        </statement>
        <next>
        <block type="controls_if" id="G:7Se8I[eGZPO-|X(xX">
        <mutation elseif="1"></mutation>
        <value name="IF0">
        <block type="logic_compare" id="F~s(.TrTkbyS8]Pvq[!{">
        <field name="OP">EQ</field>
        <value name="A">
        <block type="variables_get" id="cIXAgCpyOM~,#lQ|E~|w">
        <field name="VAR" id="gSytXDc9,kaZ.zEUPL5W" variabletype="">value</field>
        </block>
        </value>
        <value name="B">
        <block type="math_number" id="FEF0{|/p^h722q,C;S=H">
        <field name="NUM">1</field>
        </block>
        </value>
        </block>
        </value>
        <statement name="DO0">
        <block type="update" id="]n%5o[?0-%4]tOqly?fv">
        <mutation delay_input="false"></mutation>
        <field name="OID">custom.0.licht.wohnzimmer.Vouten.Switch</field>
        <field name="WITH_DELAY">FALSE</field>
        <value name="VALUE">
        <block type="logic_boolean" id="~124yF#S[`FdmwV5fd3J">
        <field name="BOOL">TRUE</field>
        </block>
        </value>
        </block>
        </statement>
        <value name="IF1">
        <block type="logic_compare" id="g@ci5E154LsEwS?[|{5U">
        <field name="OP">EQ</field>
        <value name="A">
        <block type="variables_get" id="-APf8/X};}.k)#HQb8(K">
        <field name="VAR" id="gSytXDc9,kaZ.zEUPL5W" variabletype="">value</field>
        </block>
        </value>
        <value name="B">
        <block type="math_number" id="]-Bx!-TuqK8KEJ;px{6c">
        <field name="NUM">0</field>
        </block>
        </value>
        </block>
        </value>
        <statement name="DO1">
        <block type="update" id="OZ)mtSganjc!~{H4y
        0v">
        <mutation delay_input="false"></mutation>
        <field name="OID">custom.0.licht.wohnzimmer.Vouten.Switch</field>
        <field name="WITH_DELAY">FALSE</field>
        <value name="VALUE">
        <block type="logic_boolean" id="t1d5f@|^QZt;(@_c.E:-">
        <field name="BOOL">FALSE</field>
        </block>
        </value>
        </block>
        </statement>
        </block>
        </next>
        </block>
        </next>
        </block>
        </statement>
        </block>
        </next>
        </block>
        </xml>

        1 Reply Last reply Reply Quote 0
        • M
          maniac @siggi85 last edited by

          @siggi85 sagte in 3 Shelly RGBW Terrassenbeleuchtung synchronisieren:

          @maniac Wegen der Gruppierung:
          Ich habe sowas mit 4 RGBW2 am laufen und funktioniert gut. Ich habe die Datenpunkte eines Shellys exportiert und den JSON export etwas angepasst (Datenstruktur in custom.0.XXX geändert) und wieder importiert. Alternativ kann man sich die Gruppendatenpunkte auch per Hand erstellen.
          Dann habe ich in Blockly die Regeln erstellt. Hierbei habe ich meine Vorstellungen der Abhängigkeiten einfließen lassen (wenn bspw. 1 von 4 RGBW2 Switch auf true steht, ist der Gruppen Switch Datenpunkt bereits auf true, wenn die einzelnen Helligkeiten sich unterscheiden, wird ein Durchschnitt auf dem Gain Gruppen Datenpunkt gebildet, etc). Vielleicht kannst du diese ja nutzen um sie auf deine Bedürfnisse anzupassen.

          Anbei die Exporte der beiden Blocklys.

          Danke. Das schaue ich mir mal an.

          Steuerst Du das ganze auch über VIS? Wenn ja, wie?
          Wie schon gesagt, mit den vorhandenen ColorPicker bekommen ich es nicht hin.

          siggi85 1 Reply Last reply Reply Quote 0
          • siggi85
            siggi85 @maniac last edited by

            @maniac Nein aktuell nur über Hap Panel und Sprache (google home per iot). Aber auch im HapPanel habe ich einfach ein paar feste Farbwerte in Buttons gepackt, die dann den rgbw und gain Wert setzen. Wie man in VIS eine dynamische Farbauswahl baut für den RBGW2 weiß ich leider nicht.

            M 1 Reply Last reply Reply Quote 0
            • M
              maniac @siggi85 last edited by

              @siggi85 sagte in 3 Shelly RGBW Terrassenbeleuchtung synchronisieren:

              @maniac Nein aktuell nur über Hap Panel und Sprache (google home per iot). Aber auch im HapPanel habe ich einfach ein paar feste Farbwerte in Buttons gepackt, die dann den rgbw und gain Wert setzen. Wie man in VIS eine dynamische Farbauswahl baut für den RBGW2 weiß ich leider nicht.

              Feste RGBW Werte gehen natürlich auch, aber vielleicht findet sich ja noch jemand der es mit einem Picker umgesetzt hat.

              1 Reply Last reply Reply Quote 0
              • M
                maniac @siggi85 last edited by

                @siggi85 sagte in 3 Shelly RGBW Terrassenbeleuchtung synchronisieren:

                Dann habe ich in Blockly die Regeln erstellt. Hierbei habe ich meine Vorstellungen der Abhängigkeiten einfließen lassen (wenn bspw. 1 von 4 RGBW2 Switch auf true steht, ist der Gruppen Switch Datenpunkt bereits auf true, wenn die einzelnen Helligkeiten sich unterscheiden, wird ein Durchschnitt auf dem Gain Gruppen Datenpunkt gebildet, etc). Vielleicht kannst du diese ja nutzen um sie auf deine Bedürfnisse anzupassen.

                Ich habe das jetzt soweit angepasst auf meine Objekte. Eines ist mir noch nicht ganz klar.
                Welchen "Wert" setzt das Script denn? Bezieht das auf den Wert aus dem "Falls Objekt"?
                Also wenn dieser Wert geändert wird, setze die Objekte auf diesen neuen Wert?
                b250a408-518a-45e8-a7be-19425a6edde8-grafik.png

                Ich hatte das bisher immer noch so gemacht.

                7aa0c566-e093-4cb0-b28e-59631f6f7743-grafik.png

                siggi85 1 Reply Last reply Reply Quote 0
                • siggi85
                  siggi85 @maniac last edited by siggi85

                  @maniac
                  Der grünmarkierte Datenpunkt in deiner Grafik ist der Gruppen White Datenpunkt.
                  Das eine Skript setzte die Werte der einzelnen Shellys, wenn der Gruppenwert gesetzt wird. Das andere Skript setzt die Gruppenwerte, wenn eines der einzelnen Werte verändert wird. (ohne dass der Gruppenwert ausgeführt sind)

                  Beispiel:
                  Ausgangszustand 1: Alle Shellys sind aus
                  einer Shelly wird separat an gemacht. Dann geht der Switchdatenpunkt der Gruppe auf true. die anderen beiden Shelly bleiben aber auf false.
                  Ausgangszustand 2: Alle Shellys sind aus.
                  Der Gruppendatenpunkt Switch wird auf true geschaltet. Alle 3 Shellys gehen bei switch auf true.

                  EDIT: Bei dir wird anscheinend jedes Mal alles gesetzt wenn sich einer der Gruppen-Datenpunkte ändert. Ich habe für jeden Datenpunkt einen einzelnen Trigger, die sich dann auch nur um die jeweils geänderten Datenpunkte kümmern.

                  1 Reply Last reply Reply Quote 0
                  • M
                    maniac last edited by

                    Ich habe es jetzt soweit hinbekommen. Allerdings hab ich manchmal noch das Problem, dass die LEDs resetten, bzw. die Shelly. Kann es sein, dass die Shelly manchmal etwas träge sind?
                    Wenn ich mehrfach direkt nacheinander Farbe oder Helligkeit wechsle, gehen die LED aus und kurz danach wieder an mit einem Farb-/Helligkeitswert den ich nicht zuordnen kann.

                    Als Beispiel möchte ich ein "Lauflicht" erstellen. Dazu habe ich jetzt eine Verzögerung von 100ms eingebaut:
                    cfc36e77-b0e6-4ff2-936d-4866ec9b21aa-grafik.png

                    Damit funktioniert es meistens, aber ab und an bekomme ich im Script die Warnung:

                    07:31:03.179	warn	javascript.0 at Object.<anonymous> (script.js.Licht.Terrasse.Lauflicht1:95:7)
                    07:31:11.518	warn	javascript.0 at Object.<anonymous> (script.js.Licht.Terrasse.Lauflicht1:95:7)
                    

                    Danach kann ich auch in der VIS den Datenpunkt "White" nicht mehr ändern. Ich muss VIS neu laden.

                    Frage: Was bedeutet die Warnung?

                    siggi85 1 Reply Last reply Reply Quote 0
                    • siggi85
                      siggi85 @maniac last edited by

                      @maniac sagte in 3 Shelly RGBW Terrassenbeleuchtung synchronisieren:

                      Ich habe es jetzt soweit hinbekommen. Allerdings hab ich manchmal noch das Problem, dass die LEDs resetten, bzw. die Shelly. Kann es sein, dass die Shelly manchmal etwas träge sind?
                      Wenn ich mehrfach direkt nacheinander Farbe oder Helligkeit wechsle, gehen die LED aus und kurz danach wieder an mit einem Farb-/Helligkeitswert den ich nicht zuordnen kann.

                      So ein ähnliches Verhalten habe ich auch. Da es bisher relativ selten passiert, kann ich aktuell damit leben.
                      Ob hier das Skript optimiert werden kann, oder ob ggf. der Shelly Adapter sowas abfangen sollte, habe ich bisher nicht weiter verfolgt.

                      1 Reply Last reply Reply Quote 0
                      • M
                        maniac last edited by

                        So langsam läuft es wie es soll. Brauche aber bitte einen Denkanstoß.

                        Ich habe mal versucht die LED mit einer anderen(kürzeren) Funktion langsam heller werden zu lassen.

                        Mein Ansatz sieht jetzt so aus.
                        2723413d-f710-4afe-b9e8-33d5516bce2b-grafik.png

                        Das funktioniert aber aber nicht 😞

                        Ich hatte jetzt angenommen, dass die Variable "gainblau" so lange erhöht wird bis sie 100 erreicht hat und dadurch die LED in 10% Schritten heller werden.
                        Es passiert aber gar nichts innerhalb der Schleife. Switch und xx-Blue werden richtig gesetzt wenn ich den Trigger auslöse.

                        Wo liegt mein Fehler?

                        siggi85 E 2 Replies Last reply Reply Quote 0
                        • siggi85
                          siggi85 @maniac last edited by

                          @maniac Bau Mal einen Timeout Block innerhalb deiner Schleife, statt der Verzögerungen. Lass den Timeout mal auf min. 1sek konfiguriert. Funktioniert das besser? (Erstmal unabhängig ob der 10sek Fade erst Mal zu lange dauert)

                          1 Reply Last reply Reply Quote 0
                          • E
                            el_malto @maniac last edited by

                            @maniac sagte in 3 Shelly RGBW Terrassenbeleuchtung synchronisieren:

                            So langsam läuft es wie es soll. Brauche aber bitte einen Denkanstoß.

                            Ich habe mal versucht die LED mit einer anderen(kürzeren) Funktion langsam heller werden zu lassen.

                            Mein Ansatz sieht jetzt so aus.
                            2723413d-f710-4afe-b9e8-33d5516bce2b-grafik.png

                            Das funktioniert aber aber nicht 😞

                            Ich hatte jetzt angenommen, dass die Variable "gainblau" so lange erhöht wird bis sie 100 erreicht hat und dadurch die LED in 10% Schritten heller werden.
                            Es passiert aber gar nichts innerhalb der Schleife. Switch und xx-Blue werden richtig gesetzt wenn ich den Trigger auslöse.

                            Wo liegt mein Fehler?

                            Du hast einen Denkfehler wie das „wiederhole solange“ funktioniert. Du musst <= 100 wählen. Du setzt „gainblau“ davor ja auf 0 und dann wiederholt der das so lange wie „gainblue“ <= 100 ist. Bei dir würde er das jetzt so lange machen wie „gainblue“ >= 100 ist. Da du aber vorher „gainblue“ auf 0 setzt wiederholt der nichts.

                            1 Reply Last reply Reply Quote 1
                            • M
                              maniac last edited by maniac

                              @el_malto sagte in 3 Shelly RGBW Terrassenbeleuchtung synchronisieren:

                              nen De

                              Danke Euch.

                              Ich habe es jetzt ganz anders gelöst hoffe ich. Zumindest funktioniert es meistens.
                              Irgendwie spinnen die Shelly aber ab und zu und gehen einfach ganz aus und stellen nicht definierbare Farben ein.

                              Ich triggere jetzt auf ein Objekt und wenn dieses true ist, setze ich XXX_Verzögerung auf einen bestimmten Wert (dieser ist dann die Geschwingkeit mit der das ganze abläuft)
                              Dann wird gainXXX auf 0 gesetzt und um einen bestimmten Wert erhöht (Dies sind dann die Stufen mit denen es heller wird).
                              So lange die Helligkeit keine 100 erreicht hat, wird der Block neu aufgerufen.
                              Beim ausschalten praktisch das Gleiche nur anders herum.

                              825cea41-4c86-4ee8-bab0-9934166666f5-grafik.png

                              Aber wie gesagt, manchmal klappt es nicht und die Shelly spinnen. Da bin ich noch nicht ganz zufrieden.

                              siggi85 1 Reply Last reply Reply Quote 0
                              • siggi85
                                siggi85 @maniac last edited by

                                @maniac Nutzt du http oder mqtt über den Shelly Adapter? Ich nutze http und habe manchmal ähnliche Probleme. Ggf. Könnte mqtt hier besser funktionieren?!

                                1 Reply Last reply Reply Quote 0
                                • M
                                  maniac last edited by

                                  70de94ed-8e70-4dbb-b1ad-a79bb6f047fe-grafik.png

                                  CoAP

                                  siggi85 1 Reply Last reply Reply Quote 0
                                  • siggi85
                                    siggi85 @maniac last edited by

                                    @maniac sagte in 3 Shelly RGBW Terrassenbeleuchtung synchronisieren:

                                    70de94ed-8e70-4dbb-b1ad-a79bb6f047fe-grafik.png

                                    CoAP

                                    Ich auch. Ggf. ist mqtt hier etwas performanter und wird von den Shelly besser verarbeitet?!? 🤔

                                    1 Reply Last reply Reply Quote 0
                                    • SKB
                                      SKB Developer Most Active last edited by

                                      Hallo, sollte dieses Thema noch aktuell sein, so habe ich hier eine Anleitung verfasst 🙂

                                      https://www.kreyenborg.koeln/shelly-rgbw2-synchronisieren/

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

                                      Support us

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

                                      889
                                      Online

                                      32.0k
                                      Users

                                      80.4k
                                      Topics

                                      1.3m
                                      Posts

                                      shelly rgbw
                                      4
                                      18
                                      4016
                                      Loading More Posts
                                      • Oldest to Newest
                                      • Newest to Oldest
                                      • Most Votes
                                      Reply
                                      • Reply as topic
                                      Log in to reply
                                      Community
                                      Impressum | Datenschutz-Bestimmungen | Nutzungsbedingungen
                                      The ioBroker Community 2014-2023
                                      logo