- ioBroker Community Home
- Deutsch
- Skripten / Logik
- Zigbee Device Default nach Stromausfall
NEWS
Zigbee Device Default nach Stromausfall
Zigbee Device Default nach Stromausfall
-
@crunchip sagte in Zigbee Device Default nach Stromausfall:
generell gehen Zigbee Lampen an, nach einer Stromunterbrechung
ausser HueGeht bei IKEA Tradfri auch.
-
@thomas-braun ok, hab weder hue noch ikea, wusste nur von hue
@crunchip und @Thomas-Braun , danke für Eure Rückmeldungen!
Ich habe hier Osram- und Ledvance-Spots (soweit ich weiß baugleich). Die haben eigentlich im Adapter so einen Schalter/Datenpunkt, bzgl. ‚Zustand nach powerloss‘, aber wie gesagt der scheint nicht zu funzen.
Die Gartenbulbs sind, meine ich, Philipps. Die haben dazu im ioBroker aber keinen Datenpunkt. Müsste ich dass dann über die Hue-App einstellen?Per Blockly hatte ich mir auch schon überlegt, hatte aber auf etwas gaaanz einfaches spekuliert

Pedder
All @Proxmox/Bookworm auf HP Elitedesk 800 G4; Zigbee: ZigStar (LAN), ~110Devices
Unifi, Motioneye/3Reolinks, PiHole, Bosch 7800i via BBQKees/EMS-ESP, Fronius/BYD 11kWp via Modbus -
@crunchip und @Thomas-Braun , danke für Eure Rückmeldungen!
Ich habe hier Osram- und Ledvance-Spots (soweit ich weiß baugleich). Die haben eigentlich im Adapter so einen Schalter/Datenpunkt, bzgl. ‚Zustand nach powerloss‘, aber wie gesagt der scheint nicht zu funzen.
Die Gartenbulbs sind, meine ich, Philipps. Die haben dazu im ioBroker aber keinen Datenpunkt. Müsste ich dass dann über die Hue-App einstellen?Per Blockly hatte ich mir auch schon überlegt, hatte aber auf etwas gaaanz einfaches spekuliert

@pedder007 sagte in Zigbee Device Default nach Stromausfall:
Die haben eigentlich im Adapter so einen Schalter/Datenpunkt, bzgl. ‚Zustand nach powerloss‘, aber wie gesagt der scheint nicht zu funzen.
power_on_behaviordies funktioniert aber nur, wenn die Lampe/Marke das auch unterstützt
umgestiegen von Proxmox auf Unraid
-
@pedder007 sagte in Zigbee Device Default nach Stromausfall:
Die haben eigentlich im Adapter so einen Schalter/Datenpunkt, bzgl. ‚Zustand nach powerloss‘, aber wie gesagt der scheint nicht zu funzen.
power_on_behaviordies funktioniert aber nur, wenn die Lampe/Marke das auch unterstützt
@crunchip, hmhm ok, ich war davon ausgegangen, dass bei der Integration eines Devices nur Datenpunkte angelegt werden, welche auch einen Zweck erfüllen.
Verständnisfrage noch zum Blockly:
Das müsste ja eigentlich nur ein simples ‚Falls‘ auf einen entsprechenden Datenpunkt (Stromausfall) sein, ohne Trigger, da der die Funktion ja sonst beim setzen des DP auslösen würde.
Richtig? Das ‚Falls‘ würde aber ja durch den Neustart aller Scripte auf jeden Fall ausgelöst.
Muss ich dann nur entsprechend verzögert ausführen lassen, da ich ja sicher sein muss, dass der Zigbee Adapter nach dem Neustart ebenfalls schon läuft.Pedder
All @Proxmox/Bookworm auf HP Elitedesk 800 G4; Zigbee: ZigStar (LAN), ~110Devices
Unifi, Motioneye/3Reolinks, PiHole, Bosch 7800i via BBQKees/EMS-ESP, Fronius/BYD 11kWp via Modbus -
@crunchip, hmhm ok, ich war davon ausgegangen, dass bei der Integration eines Devices nur Datenpunkte angelegt werden, welche auch einen Zweck erfüllen.
Verständnisfrage noch zum Blockly:
Das müsste ja eigentlich nur ein simples ‚Falls‘ auf einen entsprechenden Datenpunkt (Stromausfall) sein, ohne Trigger, da der die Funktion ja sonst beim setzen des DP auslösen würde.
Richtig? Das ‚Falls‘ würde aber ja durch den Neustart aller Scripte auf jeden Fall ausgelöst.
Muss ich dann nur entsprechend verzögert ausführen lassen, da ich ja sicher sein muss, dass der Zigbee Adapter nach dem Neustart ebenfalls schon läuft.@pedder007 sagte in Zigbee Device Default nach Stromausfall:
da ich ja sicher sein muss, dass der Zigbee Adapter nach dem Neustart ebenfalls schon läuft.
z.b.
on({id:'system.adapter.zigbee.0.alive', val: true, oldVal: false}, function() { setTimeout(function() { //Code wird nach 150s ausgeführt //hier die Zigbee Lampen ausschalten }, 150000); });umgestiegen von Proxmox auf Unraid
-
@pedder007 sagte in Zigbee Device Default nach Stromausfall:
da ich ja sicher sein muss, dass der Zigbee Adapter nach dem Neustart ebenfalls schon läuft.
z.b.
on({id:'system.adapter.zigbee.0.alive', val: true, oldVal: false}, function() { setTimeout(function() { //Code wird nach 150s ausgeführt //hier die Zigbee Lampen ausschalten }, 150000); }); -
Hallo Gemeinde!
Da wir hier heute Nacht mal einen echten Stromausfall hatten (gut 4 Std.!), war das eine schöne Gelegenheit zu sehen, wie die ganzen theoretische Konzepte so funktionieren
USV hat, wie per Blockly (NUT Adapter) gesteuert, gut funktioniert, bzw. nach 30 Minuten den Raspi (Master) heruntergefahren, welcher nach dem Stromausfall auch wieder erreichbar war (habe ich jetzt mal auf 60 Minuten erhöht, da noch genug Kapazität da war).
Mein HP Elite Mini-PC (3 Slaves auf Proxmox, inkl. Motioneye, PiHole, etc) kam natürlich nicht mehr hoch, weil ich Schussel
im Bios kein Autoboot nach Powerloss eingestellt hatte 
Nun aber zu meiner Frage

Wie habt ihr es ggf. gelöst, dass diverse Zigbee Lampen sich nach Wiederherstellung der Stromversorgung per Default einschalten?
Das tun bei mir sogar diejenigen, welche im Zigbee Adapter dazu einen Schalter haben, der auch definitiv auf OFF steht.Bei mir läuft für diese Fälle ein Skript. Bevor nut das Runterfahren durchführt, werden alle zigbee und hue stati in eine Liste geschrieben. Bei Neustart werden sie nach Liste wieder hergestellt.
Das Skript hat @Asgothian einst dankenswerterweise geschrieben.Proxmox und HA
-
Bei mir läuft für diese Fälle ein Skript. Bevor nut das Runterfahren durchführt, werden alle zigbee und hue stati in eine Liste geschrieben. Bei Neustart werden sie nach Liste wieder hergestellt.
Das Skript hat @Asgothian einst dankenswerterweise geschrieben.@meister-mopper Soetwas ähnliches habe ich auch gelegentlich, und zwar ohne Stromausfall! Da gehen verschiedene Zigbee's (Hue, Ikea, Paulmann) ungefragt an. Hat da jemand eine Idee, wie ich diese Lampen dann wieder ausgeschaltet bekomme?
Host: Fujitsu Intel(R) Pentium(R) CPU G4560T, 32 GB RAM, Proxmox 8.x + lxc Ubuntu 22.04
ioBroker (8 GB RAM) Node.js: 20.19.1, NPM: 10.8.2, js-Controller: 7.0.6, Admin: 7.6.3
Wetterstation: Froggit WH3000SE V1.6.6 -
@pedder007 sagte in Zigbee Device Default nach Stromausfall:
da ich ja sicher sein muss, dass der Zigbee Adapter nach dem Neustart ebenfalls schon läuft.
z.b.
on({id:'system.adapter.zigbee.0.alive', val: true, oldVal: false}, function() { setTimeout(function() { //Code wird nach 150s ausgeführt //hier die Zigbee Lampen ausschalten }, 150000); }); -
Bei mir läuft für diese Fälle ein Skript. Bevor nut das Runterfahren durchführt, werden alle zigbee und hue stati in eine Liste geschrieben. Bei Neustart werden sie nach Liste wieder hergestellt.
Das Skript hat @Asgothian einst dankenswerterweise geschrieben.@meister-mopper wäre es möglich, dass du das Script mal hier rein schickst?
-
@meister-mopper wäre es möglich, dass du das Script mal hier rein schickst?
@mennix187 sagte in Zigbee Device Default nach Stromausfall:
@meister-mopper wäre es möglich, dass du das Script mal hier rein schickst?
Ist zwar mit Hue-Lampen, sollte aber mit Zigbee auch funktionieren.

<xml xmlns="https://developers.google.com/blockly/xml"> <variables> <variable id="v)ThBW#6*Lwc?/vI,1M2">Liste</variable> <variable id="ZIackd:1cVfq+^O~SCHh">LampenID</variable> <variable id="gTnwbHh{jaMH2Wc,ZJyb">SingleLamp</variable> <variable id="`6fxSgAi_*c!=]CkYML9">StatusVorStromausfall</variable> <variable id="#V`U~..X){!wj7g%RO:S">Index</variable> <variable id="3EuyA}D`Aya}`fF}^k8M">Status</variable> <variable id="4lY1[T_Z6iE@v,UU.ci8">RestoreFromObjectList</variable> <variable id="P`@Z_Qg9hccZE^-7m.Qe">ID</variable> <variable id="aCDz+_:?M/v3g|}He0w@">i</variable> </variables> <block type="procedures_defnoreturn" id="lBCxR(H?$F=0@7N%}2M2" x="187" y="-462"> <mutation> <arg name="Liste" varid="v)ThBW#6*Lwc?/vI,1M2"></arg> </mutation> <field name="NAME">SetObjectsFromList</field> <comment pinned="false" h="80" w="160">Describe this function...</comment> <statement name="STACK"> <block type="debug" id="OcF1YAdl@6ri|KkjK;X!"> <field name="Severity">log</field> <value name="TEXT"> <shadow type="text" id="sW7iQ^nj}.19HjMwz/fR"> <field name="TEXT">test</field> </shadow> <block type="text_join" id="LkxArFuL1Y4I-Lf3AO]f"> <mutation items="2"></mutation> <value name="ADD0"> <block type="text" id="JVHXuizh1OdsLyOct3,~"> <field name="TEXT">SetObjectsFromList</field> </block> </value> <value name="ADD1"> <block type="convert_object2json" id="l{3!klvuwGv#QSYCy^l|"> <field name="PRETTIFY">FALSE</field> <value name="VALUE"> <block type="variables_get" id="cpHzin3Klgc%J@FoM9Ma"> <field name="VAR" id="v)ThBW#6*Lwc?/vI,1M2">Liste</field> </block> </value> </block> </value> </block> </value> <next> <block type="controls_forEach" id="7]d~.LGS1{N*},HUGuj5"> <field name="VAR" id="gTnwbHh{jaMH2Wc,ZJyb">SingleLamp</field> <value name="LIST"> <block type="variables_get" id="Z^a0~N~l*$aJsHv|6Ff^"> <field name="VAR" id="v)ThBW#6*Lwc?/vI,1M2">Liste</field> </block> </value> <statement name="DO"> <block type="variables_set" id="A6we{Tn^x{@_hkFhJ|qc"> <field name="VAR" id="#V`U~..X){!wj7g%RO:S">Index</field> <value name="VALUE"> <block type="text_indexOf" id="nlp_kmY5Q|=@lkxYaM]_"> <field name="END">FIRST</field> <value name="VALUE"> <block type="variables_get" id="1wKVE!%d_#ZMSA8gf#Z$"> <field name="VAR" id="gTnwbHh{jaMH2Wc,ZJyb">SingleLamp</field> </block> </value> <value name="FIND"> <shadow type="text" id="j~tZGKXAc4u~7UsKfEG!"> <field name="TEXT">:</field> </shadow> </value> </block> </value> <next> <block type="variables_set" id="T1k34:Vy!vv9px/:]y2@"> <field name="VAR" id="3EuyA}D`Aya}`fF}^k8M">Status</field> <value name="VALUE"> <block type="text_getSubstring" id="~.,#?Bz8Xbl(SYp_ST%A"> <mutation at1="true" at2="true"></mutation> <field name="WHERE1">FROM_START</field> <field name="WHERE2">FROM_START</field> <value name="STRING"> <block type="variables_get" id="uk!W-7Z,^GQi(g2zyG2c"> <field name="VAR" id="gTnwbHh{jaMH2Wc,ZJyb">SingleLamp</field> </block> </value> <value name="AT1"> <block type="math_arithmetic" id="ydiNynl2-f224pjn.HH#"> <field name="OP">ADD</field> <value name="A"> <shadow type="math_number" id="1k3?M;v+ta0A8EIB)Nbd"> <field name="NUM">1</field> </shadow> <block type="variables_get" id="HWMJ}Nd6S5RyCH1RXgi)"> <field name="VAR" id="#V`U~..X){!wj7g%RO:S">Index</field> </block> </value> <value name="B"> <shadow type="math_number" id="0}6Ql|fh|md/]@ZhLZ?f"> <field name="NUM">1</field> </shadow> </value> </block> </value> <value name="AT2"> <block type="text_length" id="}m+lmIJi[+s*[1JTqN1Z"> <value name="VALUE"> <shadow type="text" id="_%vNVR3VtqZilAp2}3Qd"> <field name="TEXT">abc</field> </shadow> <block type="variables_get" id="8c?gvT~A*74az_T.Z`75"> <field name="VAR" id="gTnwbHh{jaMH2Wc,ZJyb">SingleLamp</field> </block> </value> </block> </value> </block> </value> <next> <block type="variables_set" id="t%%m(c[(f;=nTpI4cV5]"> <field name="VAR" id="P`@Z_Qg9hccZE^-7m.Qe">ID</field> <value name="VALUE"> <block type="text_getSubstring" id="@|jyU}5h5!Hdi},X.+c+"> <mutation at1="true" at2="true"></mutation> <field name="WHERE1">FROM_START</field> <field name="WHERE2">FROM_START</field> <value name="STRING"> <block type="variables_get" id="}MO?_nm0f[IX0j{T:ooW"> <field name="VAR" id="gTnwbHh{jaMH2Wc,ZJyb">SingleLamp</field> </block> </value> <value name="AT1"> <block type="math_number" id="{_j)K%Y/y*7^~Y(*KbLJ"> <field name="NUM">1</field> </block> </value> <value name="AT2"> <block type="math_arithmetic" id="8/}teXcdlyaQ|Dfu9[HJ"> <field name="OP">MINUS</field> <value name="A"> <shadow type="math_number" id="~Yt=g-3fY?TbI,k)!!{a"> <field name="NUM">1</field> </shadow> <block type="variables_get" id="v}O=26xs?D1itwTvk6wv"> <field name="VAR" id="#V`U~..X){!wj7g%RO:S">Index</field> </block> </value> <value name="B"> <shadow type="math_number" id="D,XkBU.6z1Lf?{b`|.@@"> <field name="NUM">1</field> </shadow> </value> </block> </value> </block> </value> <next> <block type="controls_if" id="Bi8AbRX*#G}Qy|CHLD1["> <value name="IF0"> <block type="logic_compare" id="-fBNRt=W)%K9QpB;eh4l"> <field name="OP">EQ</field> <value name="A"> <block type="text_indexOf" id="=xNl;;X49VVLc$79@Ee}"> <field name="END">FIRST</field> <value name="VALUE"> <block type="variables_get" id="-vryYngryr71D/!GTcD6"> <field name="VAR" id="P`@Z_Qg9hccZE^-7m.Qe">ID</field> </block> </value> <value name="FIND"> <shadow type="text" id="miq!{.RDij8M[K02B)Lj"> <field name="TEXT">group</field> </shadow> </value> </block> </value> <value name="B"> <block type="math_number" id="dhF7l(h*=m,7_-)NAK^="> <field name="NUM">0</field> </block> </value> </block> </value> <statement name="DO0"> <block type="control_ex" id="a3v8$}$0umJyO,RB[D/o"> <field name="TYPE">false</field> <field name="CLEAR_RUNNING">FALSE</field> <value name="OID"> <shadow type="field_oid" id="}e7qGNVvAIcQkYInD%kE"> <field name="oid">Object ID</field> </shadow> <block type="variables_get" id="HP6:AF5CwZvAH`k_@mIQ"> <field name="VAR" id="P`@Z_Qg9hccZE^-7m.Qe">ID</field> </block> </value> <value name="VALUE"> <shadow type="logic_boolean" id="AZz:7#;Q4+4!,u7N4V44"> <field name="BOOL">TRUE</field> </shadow> <block type="convert_toboolean" id="Yxq9go*s203.+F.$K]q^"> <value name="VALUE"> <block type="variables_get" id="~C6?3}qGF5duTytJ*Mls"> <field name="VAR" id="3EuyA}D`Aya}`fF}^k8M">Status</field> </block> </value> </block> </value> <value name="DELAY_MS"> <shadow type="math_number" id="{j6McaL:r/z4d`c$nBb!"> <field name="NUM">0</field> </shadow> </value> <next> <block type="debug" id="=4g3JL;A1j?!J8}8:4G^"> <field name="Severity">log</field> <value name="TEXT"> <shadow type="text" id="CWRr^!51A.iVFG~T,eoY"> <field name="TEXT">test</field> </shadow> <block type="text_join" id="5K|8$m@9s|}Q,^cp;b1H"> <mutation items="4"></mutation> <value name="ADD0"> <block type="text" id="j|5,d~-k~W+?}pUP`sjS"> <field name="TEXT"> ID is </field> </block> </value> <value name="ADD1"> <block type="variables_get" id="+BLrTSG-w4wihOoik4LQ"> <field name="VAR" id="P`@Z_Qg9hccZE^-7m.Qe">ID</field> </block> </value> <value name="ADD2"> <block type="text" id="q?ubUIiR;rA4RV~uW.Ax"> <field name="TEXT"> Status is </field> </block> </value> <value name="ADD3"> <block type="variables_get" id=":S{u@[a(T3V53aNsuCqR"> <field name="VAR" id="3EuyA}D`Aya}`fF}^k8M">Status</field> </block> </value> </block> </value> </block> </next> </block> </statement> </block> </next> </block> </next> </block> </next> </block> </statement> </block> </next> </block> </statement> </block> <block type="variables_set" id="bcc[YiKCKws9qzoCzYxM" x="188" y="263"> <field name="VAR" id="ZIackd:1cVfq+^O~SCHh">LampenID</field> <value name="VALUE"> <block type="selector" id="/)JC5[56*|q8,Nh,jh_b"> <field name="TEXT">state[id='hue.0.*.on']</field> </block> </value> <next> <block type="debug" id="%9qGizhF;(AqDEegXQ9."> <field name="Severity">log</field> <value name="TEXT"> <shadow type="text" id="QbA~ytWq]_J)MuEFTP8c"> <field name="TEXT">test</field> </shadow> <block type="text_join" id="4-LDSneQd~I`dsG9Ngn}"> <mutation items="2"></mutation> <value name="ADD0"> <block type="text" id="A+l]]88{m1:zCeatvlt?"> <field name="TEXT">Ids nach Selector</field> </block> </value> <value name="ADD1"> <block type="convert_object2json" id="_rDX3pS?@jH(Zkql*^wq"> <field name="PRETTIFY">FALSE</field> <value name="VALUE"> <block type="variables_get" id="L5zO`};G[Q^@;@HS^!*J"> <field name="VAR" id="ZIackd:1cVfq+^O~SCHh">LampenID</field> </block> </value> </block> </value> </block> </value> <next> <block type="variables_set" id="hKs]]R2+0F4ORZf8.-@j"> <field name="VAR" id="`6fxSgAi_*c!=]CkYML9">StatusVorStromausfall</field> <value name="VALUE"> <block type="lists_repeat" id=",;nsW3|9O2{$*5X7Z5TE"> <value name="NUM"> <shadow type="math_number" id="0ig!)FJZ/|1B2nAwMfG]"> <field name="NUM">5</field> </shadow> <block type="lists_length" id="2dV7/Gfm!v.h#iYn8@=K"> <value name="VALUE"> <block type="variables_get" id="]H({cZ0dRZ6i/z:h@I.="> <field name="VAR" id="ZIackd:1cVfq+^O~SCHh">LampenID</field> </block> </value> </block> </value> <value name="ITEM"> <block type="text" id="9v7qY=kCRqLwm,|ryu|K"> <field name="TEXT">:</field> </block> </value> </block> </value> <next> <block type="debug" id="EI[4FgZ^.Dp[k@rN^B0_"> <field name="Severity">log</field> <value name="TEXT"> <shadow type="text" id="VCIPZQ6%]eG+dlLeCY?:"> <field name="TEXT">test</field> </shadow> <block type="text_join" id="T,%.cuHw%=h%/wiTO{`g"> <mutation items="2"></mutation> <value name="ADD0"> <block type="text" id="G2?9wTZ,PjofkBmT/$_2"> <field name="TEXT">States vor Schreiben (C)</field> </block> </value> <value name="ADD1"> <block type="convert_object2json" id="f/7V@j#LJd;BO(pH42xD"> <field name="PRETTIFY">FALSE</field> <value name="VALUE"> <block type="variables_get" id="8c1kcNI^r?+Ac(YszqI+"> <field name="VAR" id="`6fxSgAi_*c!=]CkYML9">StatusVorStromausfall</field> </block> </value> </block> </value> </block> </value> <next> <block type="variables_set" id="AU{#!BgE-!d)BQ[5vjiB"> <field name="VAR" id="4lY1[T_Z6iE@v,UU.ci8">RestoreFromObjectList</field> <value name="VALUE"> <block type="convert_json2object" id="V-Era=pq)XSHHEL,(G=d"> <value name="VALUE"> <block type="get_value" id="Jt-j=gi[r+h`#U|M!f.Y"> <field name="ATTR">val</field> <field name="OID">0_userdata.0.Licht.Hue.Lampenstatus</field> </block> </value> </block> </value> <next> <block type="debug" id="#7MvP;xVTEIi2p?qzPQR"> <field name="Severity">log</field> <value name="TEXT"> <shadow type="text" id="Eww0Cn(Pie]8R~#;1+d="> <field name="TEXT">test</field> </shadow> <block type="text_join" id="0]kiB*j;u:P!JUIL?_6}"> <mutation items="2"></mutation> <value name="ADD0"> <block type="text" id="qc~OB]|4W_%n.S!qKOL*"> <field name="TEXT">States vor Schreiben (B)</field> </block> </value> <value name="ADD1"> <block type="convert_object2json" id="2CnAIs2kZ,]9B=b;s4gI"> <field name="PRETTIFY">FALSE</field> <value name="VALUE"> <block type="variables_get" id="7GC[UtvLEMiL{G6S,-Wm"> <field name="VAR" id="4lY1[T_Z6iE@v,UU.ci8">RestoreFromObjectList</field> </block> </value> </block> </value> </block> </value> <next> <block type="procedures_callnoreturn" id="GXPZT]7L/VB]khTg0yHa"> <mutation name="SetObjectsFromList"> <arg name="Liste"></arg> </mutation> <value name="ARG0"> <block type="variables_get" id="?pSo0lu]3}-vF%3kh[dY"> <field name="VAR" id="4lY1[T_Z6iE@v,UU.ci8">RestoreFromObjectList</field> </block> </value> <next> <block type="controls_for" id="0vP32[B@w6[t8kV6gNzO" collapsed="true"> <field name="VAR" id="aCDz+_:?M/v3g|}He0w@">i</field> <value name="FROM"> <shadow type="math_number" id="Iv,2{(uLGs_D3S8A(Lv`"> <field name="NUM">1</field> </shadow> </value> <value name="TO"> <shadow type="math_number" id="rWqyP{DMMYWD|@`cq=UQ"> <field name="NUM">10</field> </shadow> <block type="lists_length" id="@#Xy|BiK#@bPv|Dfxi:P"> <value name="VALUE"> <block type="variables_get" id="E=LyC~:GJ@9~mLyj6cF("> <field name="VAR" id="ZIackd:1cVfq+^O~SCHh">LampenID</field> </block> </value> </block> </value> <value name="BY"> <shadow type="math_number" id="86ic_(RvR4.aHr.jm[U/"> <field name="NUM">1</field> </shadow> </value> <statement name="DO"> <block type="debug" id="Fr5.s02e8vS64B{mD^;I"> <field name="Severity">log</field> <value name="TEXT"> <shadow type="text" id="iZ%Za/|SP~2n7w@1$g2G"> <field name="TEXT">test</field> </shadow> <block type="text_join" id=")f~j~Jg7h4;b?8Z1$%9Z"> <mutation items="2"></mutation> <value name="ADD0"> <block type="text" id="_~q[CFU);+lc)=K*n$A6"> <field name="TEXT">Element der Liste </field> </block> </value> <value name="ADD1"> <block type="lists_getIndex" id=".^ltk3G;lEV4[o?:ANZr"> <mutation statement="false" at="true"></mutation> <field name="MODE">GET</field> <field name="WHERE">FROM_START</field> <value name="VALUE"> <block type="variables_get" id="}2b3:RQp}0c.vOCxK_Vc"> <field name="VAR" id="ZIackd:1cVfq+^O~SCHh">LampenID</field> </block> </value> <value name="AT"> <block type="variables_get" id="wwQ1d|*MMT9E_G-@NBEU"> <field name="VAR" id="aCDz+_:?M/v3g|}He0w@">i</field> </block> </value> </block> </value> </block> </value> <next> <block type="variables_set" id="ll]`iihz@.)IE((+wwg+"> <field name="VAR" id="3EuyA}D`Aya}`fF}^k8M">Status</field> <value name="VALUE"> <block type="get_value_var" id="#t?S~MjW,5?R8+!ol$~v"> <field name="ATTR">val</field> <value name="OID"> <shadow type="text" id=";i0Ue6MxG!%R;h/-A?Z,"> <field name="TEXT"></field> </shadow> <block type="lists_getIndex" id="o7Pg8*pp?L42#yxtkQ,x"> <mutation statement="false" at="true"></mutation> <field name="MODE">GET</field> <field name="WHERE">FROM_START</field> <value name="VALUE"> <block type="variables_get" id="%1AlS{JCMB*fubv=9!8f"> <field name="VAR" id="ZIackd:1cVfq+^O~SCHh">LampenID</field> </block> </value> <value name="AT"> <block type="variables_get" id="_?567yOs_EYse-|F_yNG"> <field name="VAR" id="aCDz+_:?M/v3g|}He0w@">i</field> </block> </value> </block> </value> </block> </value> <next> <block type="lists_setIndex" id="FhK%wR33x9,aW{:=wruE"> <mutation at="true"></mutation> <field name="MODE">SET</field> <field name="WHERE">FROM_START</field> <value name="LIST"> <block type="variables_get" id="-.c2@76~/t,EEqk`~MG0"> <field name="VAR" id="`6fxSgAi_*c!=]CkYML9">StatusVorStromausfall</field> </block> </value> <value name="AT"> <block type="variables_get" id="T5%{.FQwcRgDOEQcTjWu"> <field name="VAR" id="aCDz+_:?M/v3g|}He0w@">i</field> </block> </value> <value name="TO"> <block type="text_join" id="]eE2nfaIDN~BV2b0HRKk"> <mutation items="3"></mutation> <value name="ADD0"> <block type="lists_getIndex" id="nTdIF;ODA2F*x(WVQ]O)" inline="false"> <mutation statement="false" at="true"></mutation> <field name="MODE">GET</field> <field name="WHERE">FROM_START</field> <value name="VALUE"> <block type="variables_get" id="fsghM`PU1?^Pe!Z;d68:"> <field name="VAR" id="ZIackd:1cVfq+^O~SCHh">LampenID</field> </block> </value> <value name="AT"> <block type="variables_get" id="jpaACpbKb,D)0}T;5On4"> <field name="VAR" id="aCDz+_:?M/v3g|}He0w@">i</field> </block> </value> </block> </value> <value name="ADD1"> <block type="text" id="B#a3Vnx;LTO{x{i$.3SV"> <field name="TEXT">:</field> </block> </value> <value name="ADD2"> <block type="variables_get" id="UAo--tXrG4~3:(VB416m"> <field name="VAR" id="3EuyA}D`Aya}`fF}^k8M">Status</field> </block> </value> </block> </value> </block> </next> </block> </next> </block> </statement> <next> <block type="control" id="vh(8p[!pW*ed|*q{oR00"> <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation> <field name="OID">0_userdata.0.Licht.Hue.Lampenstatus</field> <field name="WITH_DELAY">FALSE</field> <value name="VALUE"> <block type="convert_object2json" id="(rgrKD|=M=O/NA9WfVJV"> <field name="PRETTIFY">FALSE</field> <value name="VALUE"> <block type="variables_get" id="!}g4^Y1$OR*Dg4gED5;9"> <field name="VAR" id="`6fxSgAi_*c!=]CkYML9">StatusVorStromausfall</field> </block> </value> </block> </value> <next> <block type="control" id=".ybpDlK.V(OzW;4ub#GB"> <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation> <field name="OID">0_userdata.0.Licht.Hue.Lampenstatus</field> <field name="WITH_DELAY">FALSE</field> <value name="VALUE"> <block type="convert_object2json" id="Fb+D8I^PNONhR~W4a#gK"> <field name="PRETTIFY">FALSE</field> <value name="VALUE"> <block type="lists_create_with" id="6!km.pJ-=$}-|:(o,S_$"> <mutation items="0"></mutation> </block> </value> </block> </value> <next> <block type="on" id="H:[ZR08R_=uS-U=3o=PE"> <field name="OID">nut.0.status.onbattery</field> <field name="CONDITION">ne</field> <field name="ACK_CONDITION"></field> <statement name="STATEMENT"> <block type="comment" id="79pzzKtk_bLFks=v{j}!"> <field name="COMMENT">True: USV auf Batterie, False: </field> <next> <block type="controls_if" id="Wt^_LK+|TQTf5Xs5HSc6"> <mutation else="1"></mutation> <value name="IF0"> <block type="on_source" id="(YWgUdbkcu^dVS[Jw!Nw"> <field name="ATTR">state.val</field> </block> </value> <statement name="DO0"> <block type="controls_for" id="TDg?UKs,xH[uTksG,o^W"> <field name="VAR" id="aCDz+_:?M/v3g|}He0w@">i</field> <value name="FROM"> <shadow type="math_number" id="=9AIS0BQjt31[}0rVl*_"> <field name="NUM">1</field> </shadow> </value> <value name="TO"> <shadow type="math_number" id="81|Fx9_;#ZvJtpAOa$wp"> <field name="NUM">10</field> </shadow> <block type="lists_length" id="CAW1qY6$oJY;67PulJS`"> <value name="VALUE"> <block type="variables_get" id="Q6w6A.q1#_@nPAD3C1R_"> <field name="VAR" id="ZIackd:1cVfq+^O~SCHh">LampenID</field> </block> </value> </block> </value> <value name="BY"> <shadow type="math_number" id="M,J4$L0!}T+r@rBGdI~n"> <field name="NUM">1</field> </shadow> </value> <statement name="DO"> <block type="debug" id="o@n3G2TI8d**7YfHY3$i"> <field name="Severity">log</field> <value name="TEXT"> <shadow type="text" id="$9u5D9G4%z;CCdc%Mc=a"> <field name="TEXT">test</field> </shadow> <block type="text_join" id="sl#09+/d(@w#2B{{5a^g"> <mutation items="2"></mutation> <value name="ADD0"> <block type="text" id="uCK0ne@HAS3.V%frJU[x"> <field name="TEXT">Element der Liste </field> </block> </value> <value name="ADD1"> <block type="lists_getIndex" id="(7ngt{6By=Tc6uz(KRrw"> <mutation statement="false" at="true"></mutation> <field name="MODE">GET</field> <field name="WHERE">FROM_START</field> <value name="VALUE"> <block type="variables_get" id="`.,~#WkV?fbqi%%`T}!S"> <field name="VAR" id="ZIackd:1cVfq+^O~SCHh">LampenID</field> </block> </value> <value name="AT"> <block type="variables_get" id="i7(gMmK,4)KQE04vqUNs"> <field name="VAR" id="aCDz+_:?M/v3g|}He0w@">i</field> </block> </value> </block> </value> </block> </value> <next> <block type="variables_set" id="6mR{XO..VjRi/brC5-=w"> <field name="VAR" id="3EuyA}D`Aya}`fF}^k8M">Status</field> <value name="VALUE"> <block type="get_value_var" id="kph5NEr,9;Q(dOj;,p4f"> <field name="ATTR">val</field> <value name="OID"> <shadow type="text" id="!$WV.?$gl:O}Eeh$wuhl"> <field name="TEXT"></field> </shadow> <block type="lists_getIndex" id=".[SAYYng4-7X}~?@%MBA"> <mutation statement="false" at="true"></mutation> <field name="MODE">GET</field> <field name="WHERE">FROM_START</field> <value name="VALUE"> <block type="variables_get" id="b%x0MBMdW+5~H;dDZeE]"> <field name="VAR" id="ZIackd:1cVfq+^O~SCHh">LampenID</field> </block> </value> <value name="AT"> <block type="variables_get" id="4=g[5-jE`OvY;@L0d4Tj"> <field name="VAR" id="aCDz+_:?M/v3g|}He0w@">i</field> </block> </value> </block> </value> </block> </value> <next> <block type="lists_setIndex" id=".bXJ^^G]Qb5Q,/X`O{Oa"> <mutation at="true"></mutation> <field name="MODE">SET</field> <field name="WHERE">FROM_START</field> <value name="LIST"> <block type="variables_get" id="1HtNy]GMpt/Mxb]9d(_f"> <field name="VAR" id="`6fxSgAi_*c!=]CkYML9">StatusVorStromausfall</field> </block> </value> <value name="AT"> <block type="variables_get" id="}^/?K_V,fpV?peTALfU("> <field name="VAR" id="aCDz+_:?M/v3g|}He0w@">i</field> </block> </value> <value name="TO"> <block type="text_join" id="2V]92`csR[[^:o40:cY}"> <mutation items="3"></mutation> <value name="ADD0"> <block type="lists_getIndex" id="Yd%}V(v|g,?U/*.+saqW" inline="false"> <mutation statement="false" at="true"></mutation> <field name="MODE">GET</field> <field name="WHERE">FROM_START</field> <value name="VALUE"> <block type="variables_get" id=")H$iN)-%zK7+J(:klOd,"> <field name="VAR" id="ZIackd:1cVfq+^O~SCHh">LampenID</field> </block> </value> <value name="AT"> <block type="variables_get" id="eiio?P,ADl$w6u0K#7e^"> <field name="VAR" id="aCDz+_:?M/v3g|}He0w@">i</field> </block> </value> </block> </value> <value name="ADD1"> <block type="text" id=")+7jxZx)2!v_`0|gphyG"> <field name="TEXT">:</field> </block> </value> <value name="ADD2"> <block type="variables_get" id="a;itq:R:5mz/dpw(Z2Es"> <field name="VAR" id="3EuyA}D`Aya}`fF}^k8M">Status</field> </block> </value> </block> </value> </block> </next> </block> </next> </block> </statement> <next> <block type="debug" id="pb,X9kzK:*wo;-P?JO]h"> <field name="Severity">log</field> <value name="TEXT"> <shadow type="text" id="*j@w37(v@9M;_:+Q,?6L"> <field name="TEXT">test</field> </shadow> <block type="text_join" id=".rg?.[c!E`yV}:9{Uhi*"> <mutation items="2"></mutation> <value name="ADD0"> <block type="text" id="*prP~X$U*10doE@M:cox"> <field name="TEXT">States nach Lesen</field> </block> </value> <value name="ADD1"> <block type="convert_object2json" id="-3?VGCw7(S7EhMz.eBzo"> <field name="PRETTIFY">FALSE</field> <value name="VALUE"> <block type="variables_get" id="~4.6%qS!uVi1LMA}:_z3"> <field name="VAR" id="`6fxSgAi_*c!=]CkYML9">StatusVorStromausfall</field> </block> </value> </block> </value> </block> </value> <next> <block type="control" id="w{R$3to}E#v1!Urf)U;M"> <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation> <field name="OID">0_userdata.0.Licht.Hue.Lampenstatus</field> <field name="WITH_DELAY">FALSE</field> <value name="VALUE"> <block type="convert_object2json" id="M-1u,Dl0]VKZqFEiPq4g"> <field name="PRETTIFY">FALSE</field> <value name="VALUE"> <block type="variables_get" id="dY|cb$DXH|V=zuc{a`4E"> <field name="VAR" id="`6fxSgAi_*c!=]CkYML9">StatusVorStromausfall</field> </block> </value> </block> </value> </block> </next> </block> </next> </block> </statement> <statement name="ELSE"> <block type="debug" id="x!FL{jT[Yc|nnyC;5*Nz"> <field name="Severity">log</field> <value name="TEXT"> <shadow type="text" id="2gVkGnow*FY*Tmt1qAeL"> <field name="TEXT">test</field> </shadow> <block type="text_join" id="X`:,{4/;/{G:dF,!8Ho("> <mutation items="2"></mutation> <value name="ADD0"> <block type="text" id="o5Lt3N-)giP:=8L:7$PB"> <field name="TEXT">States vor Schreiben (A)</field> </block> </value> <value name="ADD1"> <block type="convert_object2json" id="Fo?Fn{.WSCHEnfODi+Fn"> <field name="PRETTIFY">FALSE</field> <value name="VALUE"> <block type="variables_get" id="e_Eyrjv[X:`.dA#ja]jA"> <field name="VAR" id="`6fxSgAi_*c!=]CkYML9">StatusVorStromausfall</field> </block> </value> </block> </value> </block> </value> <next> <block type="procedures_callnoreturn" id="]W2T8~5=5|x$sm3mn~uu"> <mutation name="SetObjectsFromList"> <arg name="Liste"></arg> </mutation> <value name="ARG0"> <block type="variables_get" id="*+5WQd1WpP[8_5)%N}+Q"> <field name="VAR" id="`6fxSgAi_*c!=]CkYML9">StatusVorStromausfall</field> </block> </value> <next> <block type="control" id="Ck|WfGBb=:f{,SPiL+Aj"> <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation> <field name="OID">0_userdata.0.Licht.Hue.Lampenstatus</field> <field name="WITH_DELAY">FALSE</field> <value name="VALUE"> <block type="convert_object2json" id="bGS9r#7n49{xJ9+K9I}G"> <field name="PRETTIFY">FALSE</field> <value name="VALUE"> <block type="lists_create_with" id="2%x*Fw0$Ln/4+.DeCpOw"> <mutation items="0"></mutation> </block> </value> </block> </value> </block> </next> </block> </next> </block> </statement> </block> </next> </block> </statement> </block> </next> </block> </next> </block> </next> </block> </next> </block> </next> </block> </next> </block> </next> </block> </next> </block> </next> </block> </next> </block> </xml>Proxmox und HA
-
@mennix187 sagte in Zigbee Device Default nach Stromausfall:
@meister-mopper wäre es möglich, dass du das Script mal hier rein schickst?
Ist zwar mit Hue-Lampen, sollte aber mit Zigbee auch funktionieren.

<xml xmlns="https://developers.google.com/blockly/xml"> <variables> <variable id="v)ThBW#6*Lwc?/vI,1M2">Liste</variable> <variable id="ZIackd:1cVfq+^O~SCHh">LampenID</variable> <variable id="gTnwbHh{jaMH2Wc,ZJyb">SingleLamp</variable> <variable id="`6fxSgAi_*c!=]CkYML9">StatusVorStromausfall</variable> <variable id="#V`U~..X){!wj7g%RO:S">Index</variable> <variable id="3EuyA}D`Aya}`fF}^k8M">Status</variable> <variable id="4lY1[T_Z6iE@v,UU.ci8">RestoreFromObjectList</variable> <variable id="P`@Z_Qg9hccZE^-7m.Qe">ID</variable> <variable id="aCDz+_:?M/v3g|}He0w@">i</variable> </variables> <block type="procedures_defnoreturn" id="lBCxR(H?$F=0@7N%}2M2" x="187" y="-462"> <mutation> <arg name="Liste" varid="v)ThBW#6*Lwc?/vI,1M2"></arg> </mutation> <field name="NAME">SetObjectsFromList</field> <comment pinned="false" h="80" w="160">Describe this function...</comment> <statement name="STACK"> <block type="debug" id="OcF1YAdl@6ri|KkjK;X!"> <field name="Severity">log</field> <value name="TEXT"> <shadow type="text" id="sW7iQ^nj}.19HjMwz/fR"> <field name="TEXT">test</field> </shadow> <block type="text_join" id="LkxArFuL1Y4I-Lf3AO]f"> <mutation items="2"></mutation> <value name="ADD0"> <block type="text" id="JVHXuizh1OdsLyOct3,~"> <field name="TEXT">SetObjectsFromList</field> </block> </value> <value name="ADD1"> <block type="convert_object2json" id="l{3!klvuwGv#QSYCy^l|"> <field name="PRETTIFY">FALSE</field> <value name="VALUE"> <block type="variables_get" id="cpHzin3Klgc%J@FoM9Ma"> <field name="VAR" id="v)ThBW#6*Lwc?/vI,1M2">Liste</field> </block> </value> </block> </value> </block> </value> <next> <block type="controls_forEach" id="7]d~.LGS1{N*},HUGuj5"> <field name="VAR" id="gTnwbHh{jaMH2Wc,ZJyb">SingleLamp</field> <value name="LIST"> <block type="variables_get" id="Z^a0~N~l*$aJsHv|6Ff^"> <field name="VAR" id="v)ThBW#6*Lwc?/vI,1M2">Liste</field> </block> </value> <statement name="DO"> <block type="variables_set" id="A6we{Tn^x{@_hkFhJ|qc"> <field name="VAR" id="#V`U~..X){!wj7g%RO:S">Index</field> <value name="VALUE"> <block type="text_indexOf" id="nlp_kmY5Q|=@lkxYaM]_"> <field name="END">FIRST</field> <value name="VALUE"> <block type="variables_get" id="1wKVE!%d_#ZMSA8gf#Z$"> <field name="VAR" id="gTnwbHh{jaMH2Wc,ZJyb">SingleLamp</field> </block> </value> <value name="FIND"> <shadow type="text" id="j~tZGKXAc4u~7UsKfEG!"> <field name="TEXT">:</field> </shadow> </value> </block> </value> <next> <block type="variables_set" id="T1k34:Vy!vv9px/:]y2@"> <field name="VAR" id="3EuyA}D`Aya}`fF}^k8M">Status</field> <value name="VALUE"> <block type="text_getSubstring" id="~.,#?Bz8Xbl(SYp_ST%A"> <mutation at1="true" at2="true"></mutation> <field name="WHERE1">FROM_START</field> <field name="WHERE2">FROM_START</field> <value name="STRING"> <block type="variables_get" id="uk!W-7Z,^GQi(g2zyG2c"> <field name="VAR" id="gTnwbHh{jaMH2Wc,ZJyb">SingleLamp</field> </block> </value> <value name="AT1"> <block type="math_arithmetic" id="ydiNynl2-f224pjn.HH#"> <field name="OP">ADD</field> <value name="A"> <shadow type="math_number" id="1k3?M;v+ta0A8EIB)Nbd"> <field name="NUM">1</field> </shadow> <block type="variables_get" id="HWMJ}Nd6S5RyCH1RXgi)"> <field name="VAR" id="#V`U~..X){!wj7g%RO:S">Index</field> </block> </value> <value name="B"> <shadow type="math_number" id="0}6Ql|fh|md/]@ZhLZ?f"> <field name="NUM">1</field> </shadow> </value> </block> </value> <value name="AT2"> <block type="text_length" id="}m+lmIJi[+s*[1JTqN1Z"> <value name="VALUE"> <shadow type="text" id="_%vNVR3VtqZilAp2}3Qd"> <field name="TEXT">abc</field> </shadow> <block type="variables_get" id="8c?gvT~A*74az_T.Z`75"> <field name="VAR" id="gTnwbHh{jaMH2Wc,ZJyb">SingleLamp</field> </block> </value> </block> </value> </block> </value> <next> <block type="variables_set" id="t%%m(c[(f;=nTpI4cV5]"> <field name="VAR" id="P`@Z_Qg9hccZE^-7m.Qe">ID</field> <value name="VALUE"> <block type="text_getSubstring" id="@|jyU}5h5!Hdi},X.+c+"> <mutation at1="true" at2="true"></mutation> <field name="WHERE1">FROM_START</field> <field name="WHERE2">FROM_START</field> <value name="STRING"> <block type="variables_get" id="}MO?_nm0f[IX0j{T:ooW"> <field name="VAR" id="gTnwbHh{jaMH2Wc,ZJyb">SingleLamp</field> </block> </value> <value name="AT1"> <block type="math_number" id="{_j)K%Y/y*7^~Y(*KbLJ"> <field name="NUM">1</field> </block> </value> <value name="AT2"> <block type="math_arithmetic" id="8/}teXcdlyaQ|Dfu9[HJ"> <field name="OP">MINUS</field> <value name="A"> <shadow type="math_number" id="~Yt=g-3fY?TbI,k)!!{a"> <field name="NUM">1</field> </shadow> <block type="variables_get" id="v}O=26xs?D1itwTvk6wv"> <field name="VAR" id="#V`U~..X){!wj7g%RO:S">Index</field> </block> </value> <value name="B"> <shadow type="math_number" id="D,XkBU.6z1Lf?{b`|.@@"> <field name="NUM">1</field> </shadow> </value> </block> </value> </block> </value> <next> <block type="controls_if" id="Bi8AbRX*#G}Qy|CHLD1["> <value name="IF0"> <block type="logic_compare" id="-fBNRt=W)%K9QpB;eh4l"> <field name="OP">EQ</field> <value name="A"> <block type="text_indexOf" id="=xNl;;X49VVLc$79@Ee}"> <field name="END">FIRST</field> <value name="VALUE"> <block type="variables_get" id="-vryYngryr71D/!GTcD6"> <field name="VAR" id="P`@Z_Qg9hccZE^-7m.Qe">ID</field> </block> </value> <value name="FIND"> <shadow type="text" id="miq!{.RDij8M[K02B)Lj"> <field name="TEXT">group</field> </shadow> </value> </block> </value> <value name="B"> <block type="math_number" id="dhF7l(h*=m,7_-)NAK^="> <field name="NUM">0</field> </block> </value> </block> </value> <statement name="DO0"> <block type="control_ex" id="a3v8$}$0umJyO,RB[D/o"> <field name="TYPE">false</field> <field name="CLEAR_RUNNING">FALSE</field> <value name="OID"> <shadow type="field_oid" id="}e7qGNVvAIcQkYInD%kE"> <field name="oid">Object ID</field> </shadow> <block type="variables_get" id="HP6:AF5CwZvAH`k_@mIQ"> <field name="VAR" id="P`@Z_Qg9hccZE^-7m.Qe">ID</field> </block> </value> <value name="VALUE"> <shadow type="logic_boolean" id="AZz:7#;Q4+4!,u7N4V44"> <field name="BOOL">TRUE</field> </shadow> <block type="convert_toboolean" id="Yxq9go*s203.+F.$K]q^"> <value name="VALUE"> <block type="variables_get" id="~C6?3}qGF5duTytJ*Mls"> <field name="VAR" id="3EuyA}D`Aya}`fF}^k8M">Status</field> </block> </value> </block> </value> <value name="DELAY_MS"> <shadow type="math_number" id="{j6McaL:r/z4d`c$nBb!"> <field name="NUM">0</field> </shadow> </value> <next> <block type="debug" id="=4g3JL;A1j?!J8}8:4G^"> <field name="Severity">log</field> <value name="TEXT"> <shadow type="text" id="CWRr^!51A.iVFG~T,eoY"> <field name="TEXT">test</field> </shadow> <block type="text_join" id="5K|8$m@9s|}Q,^cp;b1H"> <mutation items="4"></mutation> <value name="ADD0"> <block type="text" id="j|5,d~-k~W+?}pUP`sjS"> <field name="TEXT"> ID is </field> </block> </value> <value name="ADD1"> <block type="variables_get" id="+BLrTSG-w4wihOoik4LQ"> <field name="VAR" id="P`@Z_Qg9hccZE^-7m.Qe">ID</field> </block> </value> <value name="ADD2"> <block type="text" id="q?ubUIiR;rA4RV~uW.Ax"> <field name="TEXT"> Status is </field> </block> </value> <value name="ADD3"> <block type="variables_get" id=":S{u@[a(T3V53aNsuCqR"> <field name="VAR" id="3EuyA}D`Aya}`fF}^k8M">Status</field> </block> </value> </block> </value> </block> </next> </block> </statement> </block> </next> </block> </next> </block> </next> </block> </statement> </block> </next> </block> </statement> </block> <block type="variables_set" id="bcc[YiKCKws9qzoCzYxM" x="188" y="263"> <field name="VAR" id="ZIackd:1cVfq+^O~SCHh">LampenID</field> <value name="VALUE"> <block type="selector" id="/)JC5[56*|q8,Nh,jh_b"> <field name="TEXT">state[id='hue.0.*.on']</field> </block> </value> <next> <block type="debug" id="%9qGizhF;(AqDEegXQ9."> <field name="Severity">log</field> <value name="TEXT"> <shadow type="text" id="QbA~ytWq]_J)MuEFTP8c"> <field name="TEXT">test</field> </shadow> <block type="text_join" id="4-LDSneQd~I`dsG9Ngn}"> <mutation items="2"></mutation> <value name="ADD0"> <block type="text" id="A+l]]88{m1:zCeatvlt?"> <field name="TEXT">Ids nach Selector</field> </block> </value> <value name="ADD1"> <block type="convert_object2json" id="_rDX3pS?@jH(Zkql*^wq"> <field name="PRETTIFY">FALSE</field> <value name="VALUE"> <block type="variables_get" id="L5zO`};G[Q^@;@HS^!*J"> <field name="VAR" id="ZIackd:1cVfq+^O~SCHh">LampenID</field> </block> </value> </block> </value> </block> </value> <next> <block type="variables_set" id="hKs]]R2+0F4ORZf8.-@j"> <field name="VAR" id="`6fxSgAi_*c!=]CkYML9">StatusVorStromausfall</field> <value name="VALUE"> <block type="lists_repeat" id=",;nsW3|9O2{$*5X7Z5TE"> <value name="NUM"> <shadow type="math_number" id="0ig!)FJZ/|1B2nAwMfG]"> <field name="NUM">5</field> </shadow> <block type="lists_length" id="2dV7/Gfm!v.h#iYn8@=K"> <value name="VALUE"> <block type="variables_get" id="]H({cZ0dRZ6i/z:h@I.="> <field name="VAR" id="ZIackd:1cVfq+^O~SCHh">LampenID</field> </block> </value> </block> </value> <value name="ITEM"> <block type="text" id="9v7qY=kCRqLwm,|ryu|K"> <field name="TEXT">:</field> </block> </value> </block> </value> <next> <block type="debug" id="EI[4FgZ^.Dp[k@rN^B0_"> <field name="Severity">log</field> <value name="TEXT"> <shadow type="text" id="VCIPZQ6%]eG+dlLeCY?:"> <field name="TEXT">test</field> </shadow> <block type="text_join" id="T,%.cuHw%=h%/wiTO{`g"> <mutation items="2"></mutation> <value name="ADD0"> <block type="text" id="G2?9wTZ,PjofkBmT/$_2"> <field name="TEXT">States vor Schreiben (C)</field> </block> </value> <value name="ADD1"> <block type="convert_object2json" id="f/7V@j#LJd;BO(pH42xD"> <field name="PRETTIFY">FALSE</field> <value name="VALUE"> <block type="variables_get" id="8c1kcNI^r?+Ac(YszqI+"> <field name="VAR" id="`6fxSgAi_*c!=]CkYML9">StatusVorStromausfall</field> </block> </value> </block> </value> </block> </value> <next> <block type="variables_set" id="AU{#!BgE-!d)BQ[5vjiB"> <field name="VAR" id="4lY1[T_Z6iE@v,UU.ci8">RestoreFromObjectList</field> <value name="VALUE"> <block type="convert_json2object" id="V-Era=pq)XSHHEL,(G=d"> <value name="VALUE"> <block type="get_value" id="Jt-j=gi[r+h`#U|M!f.Y"> <field name="ATTR">val</field> <field name="OID">0_userdata.0.Licht.Hue.Lampenstatus</field> </block> </value> </block> </value> <next> <block type="debug" id="#7MvP;xVTEIi2p?qzPQR"> <field name="Severity">log</field> <value name="TEXT"> <shadow type="text" id="Eww0Cn(Pie]8R~#;1+d="> <field name="TEXT">test</field> </shadow> <block type="text_join" id="0]kiB*j;u:P!JUIL?_6}"> <mutation items="2"></mutation> <value name="ADD0"> <block type="text" id="qc~OB]|4W_%n.S!qKOL*"> <field name="TEXT">States vor Schreiben (B)</field> </block> </value> <value name="ADD1"> <block type="convert_object2json" id="2CnAIs2kZ,]9B=b;s4gI"> <field name="PRETTIFY">FALSE</field> <value name="VALUE"> <block type="variables_get" id="7GC[UtvLEMiL{G6S,-Wm"> <field name="VAR" id="4lY1[T_Z6iE@v,UU.ci8">RestoreFromObjectList</field> </block> </value> </block> </value> </block> </value> <next> <block type="procedures_callnoreturn" id="GXPZT]7L/VB]khTg0yHa"> <mutation name="SetObjectsFromList"> <arg name="Liste"></arg> </mutation> <value name="ARG0"> <block type="variables_get" id="?pSo0lu]3}-vF%3kh[dY"> <field name="VAR" id="4lY1[T_Z6iE@v,UU.ci8">RestoreFromObjectList</field> </block> </value> <next> <block type="controls_for" id="0vP32[B@w6[t8kV6gNzO" collapsed="true"> <field name="VAR" id="aCDz+_:?M/v3g|}He0w@">i</field> <value name="FROM"> <shadow type="math_number" id="Iv,2{(uLGs_D3S8A(Lv`"> <field name="NUM">1</field> </shadow> </value> <value name="TO"> <shadow type="math_number" id="rWqyP{DMMYWD|@`cq=UQ"> <field name="NUM">10</field> </shadow> <block type="lists_length" id="@#Xy|BiK#@bPv|Dfxi:P"> <value name="VALUE"> <block type="variables_get" id="E=LyC~:GJ@9~mLyj6cF("> <field name="VAR" id="ZIackd:1cVfq+^O~SCHh">LampenID</field> </block> </value> </block> </value> <value name="BY"> <shadow type="math_number" id="86ic_(RvR4.aHr.jm[U/"> <field name="NUM">1</field> </shadow> </value> <statement name="DO"> <block type="debug" id="Fr5.s02e8vS64B{mD^;I"> <field name="Severity">log</field> <value name="TEXT"> <shadow type="text" id="iZ%Za/|SP~2n7w@1$g2G"> <field name="TEXT">test</field> </shadow> <block type="text_join" id=")f~j~Jg7h4;b?8Z1$%9Z"> <mutation items="2"></mutation> <value name="ADD0"> <block type="text" id="_~q[CFU);+lc)=K*n$A6"> <field name="TEXT">Element der Liste </field> </block> </value> <value name="ADD1"> <block type="lists_getIndex" id=".^ltk3G;lEV4[o?:ANZr"> <mutation statement="false" at="true"></mutation> <field name="MODE">GET</field> <field name="WHERE">FROM_START</field> <value name="VALUE"> <block type="variables_get" id="}2b3:RQp}0c.vOCxK_Vc"> <field name="VAR" id="ZIackd:1cVfq+^O~SCHh">LampenID</field> </block> </value> <value name="AT"> <block type="variables_get" id="wwQ1d|*MMT9E_G-@NBEU"> <field name="VAR" id="aCDz+_:?M/v3g|}He0w@">i</field> </block> </value> </block> </value> </block> </value> <next> <block type="variables_set" id="ll]`iihz@.)IE((+wwg+"> <field name="VAR" id="3EuyA}D`Aya}`fF}^k8M">Status</field> <value name="VALUE"> <block type="get_value_var" id="#t?S~MjW,5?R8+!ol$~v"> <field name="ATTR">val</field> <value name="OID"> <shadow type="text" id=";i0Ue6MxG!%R;h/-A?Z,"> <field name="TEXT"></field> </shadow> <block type="lists_getIndex" id="o7Pg8*pp?L42#yxtkQ,x"> <mutation statement="false" at="true"></mutation> <field name="MODE">GET</field> <field name="WHERE">FROM_START</field> <value name="VALUE"> <block type="variables_get" id="%1AlS{JCMB*fubv=9!8f"> <field name="VAR" id="ZIackd:1cVfq+^O~SCHh">LampenID</field> </block> </value> <value name="AT"> <block type="variables_get" id="_?567yOs_EYse-|F_yNG"> <field name="VAR" id="aCDz+_:?M/v3g|}He0w@">i</field> </block> </value> </block> </value> </block> </value> <next> <block type="lists_setIndex" id="FhK%wR33x9,aW{:=wruE"> <mutation at="true"></mutation> <field name="MODE">SET</field> <field name="WHERE">FROM_START</field> <value name="LIST"> <block type="variables_get" id="-.c2@76~/t,EEqk`~MG0"> <field name="VAR" id="`6fxSgAi_*c!=]CkYML9">StatusVorStromausfall</field> </block> </value> <value name="AT"> <block type="variables_get" id="T5%{.FQwcRgDOEQcTjWu"> <field name="VAR" id="aCDz+_:?M/v3g|}He0w@">i</field> </block> </value> <value name="TO"> <block type="text_join" id="]eE2nfaIDN~BV2b0HRKk"> <mutation items="3"></mutation> <value name="ADD0"> <block type="lists_getIndex" id="nTdIF;ODA2F*x(WVQ]O)" inline="false"> <mutation statement="false" at="true"></mutation> <field name="MODE">GET</field> <field name="WHERE">FROM_START</field> <value name="VALUE"> <block type="variables_get" id="fsghM`PU1?^Pe!Z;d68:"> <field name="VAR" id="ZIackd:1cVfq+^O~SCHh">LampenID</field> </block> </value> <value name="AT"> <block type="variables_get" id="jpaACpbKb,D)0}T;5On4"> <field name="VAR" id="aCDz+_:?M/v3g|}He0w@">i</field> </block> </value> </block> </value> <value name="ADD1"> <block type="text" id="B#a3Vnx;LTO{x{i$.3SV"> <field name="TEXT">:</field> </block> </value> <value name="ADD2"> <block type="variables_get" id="UAo--tXrG4~3:(VB416m"> <field name="VAR" id="3EuyA}D`Aya}`fF}^k8M">Status</field> </block> </value> </block> </value> </block> </next> </block> </next> </block> </statement> <next> <block type="control" id="vh(8p[!pW*ed|*q{oR00"> <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation> <field name="OID">0_userdata.0.Licht.Hue.Lampenstatus</field> <field name="WITH_DELAY">FALSE</field> <value name="VALUE"> <block type="convert_object2json" id="(rgrKD|=M=O/NA9WfVJV"> <field name="PRETTIFY">FALSE</field> <value name="VALUE"> <block type="variables_get" id="!}g4^Y1$OR*Dg4gED5;9"> <field name="VAR" id="`6fxSgAi_*c!=]CkYML9">StatusVorStromausfall</field> </block> </value> </block> </value> <next> <block type="control" id=".ybpDlK.V(OzW;4ub#GB"> <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation> <field name="OID">0_userdata.0.Licht.Hue.Lampenstatus</field> <field name="WITH_DELAY">FALSE</field> <value name="VALUE"> <block type="convert_object2json" id="Fb+D8I^PNONhR~W4a#gK"> <field name="PRETTIFY">FALSE</field> <value name="VALUE"> <block type="lists_create_with" id="6!km.pJ-=$}-|:(o,S_$"> <mutation items="0"></mutation> </block> </value> </block> </value> <next> <block type="on" id="H:[ZR08R_=uS-U=3o=PE"> <field name="OID">nut.0.status.onbattery</field> <field name="CONDITION">ne</field> <field name="ACK_CONDITION"></field> <statement name="STATEMENT"> <block type="comment" id="79pzzKtk_bLFks=v{j}!"> <field name="COMMENT">True: USV auf Batterie, False: </field> <next> <block type="controls_if" id="Wt^_LK+|TQTf5Xs5HSc6"> <mutation else="1"></mutation> <value name="IF0"> <block type="on_source" id="(YWgUdbkcu^dVS[Jw!Nw"> <field name="ATTR">state.val</field> </block> </value> <statement name="DO0"> <block type="controls_for" id="TDg?UKs,xH[uTksG,o^W"> <field name="VAR" id="aCDz+_:?M/v3g|}He0w@">i</field> <value name="FROM"> <shadow type="math_number" id="=9AIS0BQjt31[}0rVl*_"> <field name="NUM">1</field> </shadow> </value> <value name="TO"> <shadow type="math_number" id="81|Fx9_;#ZvJtpAOa$wp"> <field name="NUM">10</field> </shadow> <block type="lists_length" id="CAW1qY6$oJY;67PulJS`"> <value name="VALUE"> <block type="variables_get" id="Q6w6A.q1#_@nPAD3C1R_"> <field name="VAR" id="ZIackd:1cVfq+^O~SCHh">LampenID</field> </block> </value> </block> </value> <value name="BY"> <shadow type="math_number" id="M,J4$L0!}T+r@rBGdI~n"> <field name="NUM">1</field> </shadow> </value> <statement name="DO"> <block type="debug" id="o@n3G2TI8d**7YfHY3$i"> <field name="Severity">log</field> <value name="TEXT"> <shadow type="text" id="$9u5D9G4%z;CCdc%Mc=a"> <field name="TEXT">test</field> </shadow> <block type="text_join" id="sl#09+/d(@w#2B{{5a^g"> <mutation items="2"></mutation> <value name="ADD0"> <block type="text" id="uCK0ne@HAS3.V%frJU[x"> <field name="TEXT">Element der Liste </field> </block> </value> <value name="ADD1"> <block type="lists_getIndex" id="(7ngt{6By=Tc6uz(KRrw"> <mutation statement="false" at="true"></mutation> <field name="MODE">GET</field> <field name="WHERE">FROM_START</field> <value name="VALUE"> <block type="variables_get" id="`.,~#WkV?fbqi%%`T}!S"> <field name="VAR" id="ZIackd:1cVfq+^O~SCHh">LampenID</field> </block> </value> <value name="AT"> <block type="variables_get" id="i7(gMmK,4)KQE04vqUNs"> <field name="VAR" id="aCDz+_:?M/v3g|}He0w@">i</field> </block> </value> </block> </value> </block> </value> <next> <block type="variables_set" id="6mR{XO..VjRi/brC5-=w"> <field name="VAR" id="3EuyA}D`Aya}`fF}^k8M">Status</field> <value name="VALUE"> <block type="get_value_var" id="kph5NEr,9;Q(dOj;,p4f"> <field name="ATTR">val</field> <value name="OID"> <shadow type="text" id="!$WV.?$gl:O}Eeh$wuhl"> <field name="TEXT"></field> </shadow> <block type="lists_getIndex" id=".[SAYYng4-7X}~?@%MBA"> <mutation statement="false" at="true"></mutation> <field name="MODE">GET</field> <field name="WHERE">FROM_START</field> <value name="VALUE"> <block type="variables_get" id="b%x0MBMdW+5~H;dDZeE]"> <field name="VAR" id="ZIackd:1cVfq+^O~SCHh">LampenID</field> </block> </value> <value name="AT"> <block type="variables_get" id="4=g[5-jE`OvY;@L0d4Tj"> <field name="VAR" id="aCDz+_:?M/v3g|}He0w@">i</field> </block> </value> </block> </value> </block> </value> <next> <block type="lists_setIndex" id=".bXJ^^G]Qb5Q,/X`O{Oa"> <mutation at="true"></mutation> <field name="MODE">SET</field> <field name="WHERE">FROM_START</field> <value name="LIST"> <block type="variables_get" id="1HtNy]GMpt/Mxb]9d(_f"> <field name="VAR" id="`6fxSgAi_*c!=]CkYML9">StatusVorStromausfall</field> </block> </value> <value name="AT"> <block type="variables_get" id="}^/?K_V,fpV?peTALfU("> <field name="VAR" id="aCDz+_:?M/v3g|}He0w@">i</field> </block> </value> <value name="TO"> <block type="text_join" id="2V]92`csR[[^:o40:cY}"> <mutation items="3"></mutation> <value name="ADD0"> <block type="lists_getIndex" id="Yd%}V(v|g,?U/*.+saqW" inline="false"> <mutation statement="false" at="true"></mutation> <field name="MODE">GET</field> <field name="WHERE">FROM_START</field> <value name="VALUE"> <block type="variables_get" id=")H$iN)-%zK7+J(:klOd,"> <field name="VAR" id="ZIackd:1cVfq+^O~SCHh">LampenID</field> </block> </value> <value name="AT"> <block type="variables_get" id="eiio?P,ADl$w6u0K#7e^"> <field name="VAR" id="aCDz+_:?M/v3g|}He0w@">i</field> </block> </value> </block> </value> <value name="ADD1"> <block type="text" id=")+7jxZx)2!v_`0|gphyG"> <field name="TEXT">:</field> </block> </value> <value name="ADD2"> <block type="variables_get" id="a;itq:R:5mz/dpw(Z2Es"> <field name="VAR" id="3EuyA}D`Aya}`fF}^k8M">Status</field> </block> </value> </block> </value> </block> </next> </block> </next> </block> </statement> <next> <block type="debug" id="pb,X9kzK:*wo;-P?JO]h"> <field name="Severity">log</field> <value name="TEXT"> <shadow type="text" id="*j@w37(v@9M;_:+Q,?6L"> <field name="TEXT">test</field> </shadow> <block type="text_join" id=".rg?.[c!E`yV}:9{Uhi*"> <mutation items="2"></mutation> <value name="ADD0"> <block type="text" id="*prP~X$U*10doE@M:cox"> <field name="TEXT">States nach Lesen</field> </block> </value> <value name="ADD1"> <block type="convert_object2json" id="-3?VGCw7(S7EhMz.eBzo"> <field name="PRETTIFY">FALSE</field> <value name="VALUE"> <block type="variables_get" id="~4.6%qS!uVi1LMA}:_z3"> <field name="VAR" id="`6fxSgAi_*c!=]CkYML9">StatusVorStromausfall</field> </block> </value> </block> </value> </block> </value> <next> <block type="control" id="w{R$3to}E#v1!Urf)U;M"> <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation> <field name="OID">0_userdata.0.Licht.Hue.Lampenstatus</field> <field name="WITH_DELAY">FALSE</field> <value name="VALUE"> <block type="convert_object2json" id="M-1u,Dl0]VKZqFEiPq4g"> <field name="PRETTIFY">FALSE</field> <value name="VALUE"> <block type="variables_get" id="dY|cb$DXH|V=zuc{a`4E"> <field name="VAR" id="`6fxSgAi_*c!=]CkYML9">StatusVorStromausfall</field> </block> </value> </block> </value> </block> </next> </block> </next> </block> </statement> <statement name="ELSE"> <block type="debug" id="x!FL{jT[Yc|nnyC;5*Nz"> <field name="Severity">log</field> <value name="TEXT"> <shadow type="text" id="2gVkGnow*FY*Tmt1qAeL"> <field name="TEXT">test</field> </shadow> <block type="text_join" id="X`:,{4/;/{G:dF,!8Ho("> <mutation items="2"></mutation> <value name="ADD0"> <block type="text" id="o5Lt3N-)giP:=8L:7$PB"> <field name="TEXT">States vor Schreiben (A)</field> </block> </value> <value name="ADD1"> <block type="convert_object2json" id="Fo?Fn{.WSCHEnfODi+Fn"> <field name="PRETTIFY">FALSE</field> <value name="VALUE"> <block type="variables_get" id="e_Eyrjv[X:`.dA#ja]jA"> <field name="VAR" id="`6fxSgAi_*c!=]CkYML9">StatusVorStromausfall</field> </block> </value> </block> </value> </block> </value> <next> <block type="procedures_callnoreturn" id="]W2T8~5=5|x$sm3mn~uu"> <mutation name="SetObjectsFromList"> <arg name="Liste"></arg> </mutation> <value name="ARG0"> <block type="variables_get" id="*+5WQd1WpP[8_5)%N}+Q"> <field name="VAR" id="`6fxSgAi_*c!=]CkYML9">StatusVorStromausfall</field> </block> </value> <next> <block type="control" id="Ck|WfGBb=:f{,SPiL+Aj"> <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation> <field name="OID">0_userdata.0.Licht.Hue.Lampenstatus</field> <field name="WITH_DELAY">FALSE</field> <value name="VALUE"> <block type="convert_object2json" id="bGS9r#7n49{xJ9+K9I}G"> <field name="PRETTIFY">FALSE</field> <value name="VALUE"> <block type="lists_create_with" id="2%x*Fw0$Ln/4+.DeCpOw"> <mutation items="0"></mutation> </block> </value> </block> </value> </block> </next> </block> </next> </block> </statement> </block> </next> </block> </statement> </block> </next> </block> </next> </block> </next> </block> </next> </block> </next> </block> </next> </block> </next> </block> </next> </block> </next> </block> </next> </block> </xml>@meister-mopper Das ging ja fix. Dankeschön

