@tt-tom sagte in Update Proxmox schief gegangen was nun?:
rein aus in Interesse, wie schaltest du den 2. Server ein/aus?
Mit einer Tasmota-Steckdose und dem Proxmox-Adapter per ioBroker mit einem Blockly-Skript:
Spoiler
<xml xmlns="https://developers.google.com/blockly/xml">
<variables>
<variable id="O{qHe]n;4CbCJ8:egSfa">Replizierung_abgeschlossen</variable>
<variable id="+sjbh3Y-~_MRIZFIWm=B">Abfrageergebnis</variable>
<variable id="=I:Pjv@EhS.Ws7NE[G|e">Listenpunkt</variable>
<variable id="1v^(Qe$tzwgT%IVQkXb;">Differenz</variable>
</variables>
<block type="comment" id="e@%@BV4:!_bV~qe0t{0]" x="137" y="13">
<field name="COMMENT">Für Replizierung ein- und ausschalten</field>
<next>
<block type="schedule" id="(nUK8RO8;V6~^QRclPOE">
<field name="SCHEDULE">0 */4 * * *</field>
<statement name="STATEMENT">
<block type="control" id="%Wcw!QWF?y_lWh9.@t+y">
<mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
<field name="OID">sonoff.0.Steckdose_Proxmox-2.POWER</field>
<field name="WITH_DELAY">FALSE</field>
<value name="VALUE">
<block type="logic_boolean" id="!XD@B.Ob%6}fd6kfW7nR">
<field name="BOOL">TRUE</field>
</block>
</value>
<next>
<block type="timeouts_wait" id="tnPz}~55w~A$eRnYZ?8w">
<field name="DELAY">30</field>
<field name="UNIT">sec</field>
<next>
<block type="comment" id="0m5p)Ufqh0P]]~eolHMD">
<field name="COMMENT">Solange Replizierung läuft,&#10;regelmäßig prüfen ob sie läuft</field>
<next>
<block type="controls_whileUntil" id="L:}s6IwKQUq=#^}05nS9">
<field name="MODE">WHILE</field>
<value name="BOOL">
<block type="get_value" id="#3jR^w8QomOFp=P4fP.5">
<field name="ATTR">val</field>
<field name="OID">sonoff.0.Steckdose_Proxmox-2.POWER</field>
</block>
</value>
<statement name="DO">
<block type="comment" id="C|g$d#*Cps04-F)`x[}G">
<field name="COMMENT">Abfrage aktualisieren</field>
<next>
<block type="toggle" id="8zA5:G.XK5.gA-[N@l?S">
<mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
<field name="OID">linux-control.0.proxmox.refresh</field>
<field name="WITH_DELAY">FALSE</field>
<next>
<block type="timeouts_wait" id="PoGeT64y@#T$0^;,E:q,">
<field name="DELAY">15</field>
<field name="UNIT">sec</field>
<next>
<block type="variables_set" id="f5pJ]Y^@^F!]QcdBe@Oq">
<field name="VAR" id="O{qHe]n;4CbCJ8:egSfa">Replizierung_abgeschlossen</field>
<value name="VALUE">
<block type="logic_boolean" id="OQ1DV(zNxQLz)=L?Xs*V">
<field name="BOOL">TRUE</field>
</block>
</value>
<next>
<block type="comment" id="Oz0dA1d@}--ag5!mld$w">
<field name="COMMENT">Jede aktive Replizierung in eine Liste schreiben</field>
<next>
<block type="variables_set" id="gj,FkhIzcK]v+?0nhRY/">
<field name="VAR" id="+sjbh3Y-~_MRIZFIWm=B">Abfrageergebnis</field>
<value name="VALUE">
<block type="lists_split" id="R$.%S|hs/zmR~{dkdk1|">
<mutation mode="SPLIT"></mutation>
<field name="MODE">SPLIT</field>
<value name="INPUT">
<block type="get_value" id="_rkBO9M4|kxc$W7r3T)b">
<field name="ATTR">val</field>
<field name="OID">linux-control.0.proxmox.replizierung</field>
</block>
</value>
<value name="DELIM">
<shadow type="text" id="B,*(KBv*)u,e]B;Jb:%j">
<field name="TEXT"> </field>
</shadow>
<block type="text_newline" id="d1eZLxbF5mP7bb)(Rw;/">
<field name="Type">\n</field>
</block>
</value>
</block>
</value>
<next>
<block type="comment" id="WtL.svVnMjOexTCQN9AV">
<field name="COMMENT">Liste abarbeiten</field>
<next>
<block type="controls_forEach" id="8YXKTWsIF2RS?IJv$E=`">
<field name="VAR" id="=I:Pjv@EhS.Ws7NE[G|e">Listenpunkt</field>
<value name="LIST">
<block type="variables_get" id="`Q]ACt[Ni0Y!3r^e}M9Y">
<field name="VAR" id="+sjbh3Y-~_MRIZFIWm=B">Abfrageergebnis</field>
</block>
</value>
<statement name="DO">
<block type="comment" id="u[}fYo{%lPO5Dn!n|sX:">
<field name="COMMENT">Zeitunterschied zwischen jetzt&#10;und der nächsten geplanten Replizierung</field>
<next>
<block type="variables_set" id="h..jR8EWR`^2n3YhAFI9">
<field name="VAR" id="1v^(Qe$tzwgT%IVQkXb;">Differenz</field>
<value name="VALUE">
<block type="math_arithmetic" id="JsJRvZeEKAY(blVrAAG;">
<field name="OP">MINUS</field>
<value name="A">
<shadow type="math_number" id="(iG~S,a6XKxq-XdzdR*a">
<field name="NUM">1</field>
</shadow>
<block type="time_get" id="~pc%,*ks+nU=g_i?fApP">
<mutation xmlns="http://www.w3.org/1999/xhtml" format="false" language="false"></mutation>
<field name="OPTION">object</field>
</block>
</value>
<value name="B">
<shadow type="math_number" id="4H,V%=BW$kvbo(JAGLJK">
<field name="NUM">1</field>
</shadow>
<block type="convert_from_date" id="q4Yhk66VVg$l@Gl-H^X6">
<mutation xmlns="http://www.w3.org/1999/xhtml" format="false" language="false"></mutation>
<field name="OPTION">object</field>
<value name="VALUE">
<block type="text_replace" id=":F)OPkQP1I+Ba`xQttwS">
<value name="FROM">
<shadow type="text" id="pytW@F,J8[`~1H:NKCf}">
<field name="TEXT">_</field>
</shadow>
</value>
<value name="TO">
<shadow type="text" id="|t2!96a]nJh7:6:T;A)A">
<field name="TEXT"> </field>
</shadow>
</value>
<value name="TEXT">
<shadow type="text" id="~h{j@sJ+vjKRSif:*X!G">
<field name="TEXT">text</field>
</shadow>
<block type="variables_get" id="BZ]/n/P3M8Pdx4xN#oVb">
<field name="VAR" id="=I:Pjv@EhS.Ws7NE[G|e">Listenpunkt</field>
</block>
</value>
</block>
</value>
</block>
</value>
</block>
</value>
<next>
<block type="comment" id="{:.@!QP]ym7mT/EqIV!N">
<field name="COMMENT">Wenn gerade eine Replizierung läuft&#10;oder in den nächsten 15 Minuten ansteht</field>
<next>
<block type="controls_if" id="UVvClD8A,l#4KN6#K#7%">
<value name="IF0">
<block type="logic_multi_or" id="q|t@*mp4lTogZ@CE0qxg">
<mutation xmlns="http://www.w3.org/1999/xhtml" items="2"></mutation>
<value name="OR0">
<block type="logic_compare" id="jE=/1D-94~wUt0IwFEPw">
<field name="OP">EQ</field>
<value name="A">
<block type="convert_tostring" id="@4PO2jmsXAt{U/gZ~Mho">
<value name="VALUE">
<block type="variables_get" id="PT7{ojy}mRKbsyors:!W">
<field name="VAR" id="1v^(Qe$tzwgT%IVQkXb;">Differenz</field>
</block>
</value>
</block>
</value>
<value name="B">
<block type="text" id="iv2aUMCpkyyiN#Yup]~y">
<field name="TEXT">NaN</field>
</block>
</value>
</block>
</value>
<value name="OR1">
<block type="logic_compare" id="ER%E#N9Pl-`T#R~2^JH8">
<field name="OP">GT</field>
<value name="A">
<block type="variables_get" id="0,(^eO!/o=bezUH05;;=">
<field name="VAR" id="1v^(Qe$tzwgT%IVQkXb;">Differenz</field>
</block>
</value>
<value name="B">
<block type="math_number" id="zjs+S9G?-0H64R(fdu)p">
<field name="NUM">-900000</field>
</block>
</value>
</block>
</value>
</block>
</value>
<statement name="DO0">
<block type="comment" id="~{62#;-zhEJ~6/Y#0!Uq">
<field name="COMMENT">Replizierung NICHT abgeschlossen</field>
<next>
<block type="variables_set" id="Vqt2S]*(q}gXW8ROF[h?">
<field name="VAR" id="O{qHe]n;4CbCJ8:egSfa">Replizierung_abgeschlossen</field>
<value name="VALUE">
<block type="logic_boolean" id="36ITEHP}JTbNdrqj0!,$">
<field name="BOOL">FALSE</field>
</block>
</value>
</block>
</next>
</block>
</statement>
</block>
</next>
</block>
</next>
</block>
</next>
</block>
</statement>
<next>
<block type="comment" id="4g+QzGLa^J@j.;[wX4;x">
<field name="COMMENT">Wenn alle Replizierungen beendet sind,&#10;2. Server ausschalten und Schleife beenden.</field>
<next>
<block type="controls_if" id="Ly7spl31%3L$GpNwt!KM">
<value name="IF0">
<block type="variables_get" id="tR!gR;RCNHh$ZbG}i`5i">
<field name="VAR" id="O{qHe]n;4CbCJ8:egSfa">Replizierung_abgeschlossen</field>
</block>
</value>
<statement name="DO0">
<block type="toggle" id="]Cc]V-T^QVx]y,q]g8IG">
<mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="true"></mutation>
<field name="OID">linux-control.0.proxmox-2.herunterfahren</field>
<field name="WITH_DELAY">TRUE</field>
<field name="DELAY_MS">15</field>
<field name="UNIT">sec</field>
<field name="CLEAR_RUNNING">FALSE</field>
<next>
<block type="controls_flow_statements" id="8zg%Cb#ZUwoAgA?(*@HN">
<field name="FLOW">BREAK</field>
</block>
</next>
</block>
</statement>
</block>
</next>
</block>
</next>
</block>
</next>
</block>
</next>
</block>
</next>
</block>
</next>
</block>
</next>
</block>
</next>
</block>
</next>
</block>
</statement>
</block>
</next>
</block>
</next>
</block>
</next>
</block>
</statement>
<next>
<block type="comment" id="0RkM=kg0Aj90(r:3$O[#">
<field name="COMMENT">Steckdose ausschalten&#10;nachdem der Rechner heruntergefahren ist</field>
<next>
<block type="on_ext" id="j-PC~n!ywEOjW(OdaIwy">
<mutation xmlns="http://www.w3.org/1999/xhtml" items="1"></mutation>
<field name="CONDITION">ne</field>
<field name="ACK_CONDITION"></field>
<value name="OID0">
<shadow type="field_oid" id="!~?jCk`a~Ahw.MKXh]7g">
<field name="oid">sonoff.0.Steckdose_Proxmox-2.ENERGY_Power</field>
</shadow>
</value>
<statement name="STATEMENT">
<block type="controls_if" id="G.abt?98IzvbV!uw$CEu">
<value name="IF0">
<block type="logic_compare" id=",ZPxLT3v5~E$FGR%+1(N">
<field name="OP">LT</field>
<value name="A">
<block type="on_source" id="`txz?Wx*;kP[|?1`f{E;">
<field name="ATTR">state.val</field>
</block>
</value>
<value name="B">
<block type="math_number" id="sZVfprFdoK*tP13qby~f">
<field name="NUM">2</field>
</block>
</value>
</block>
</value>
<statement name="DO0">
<block type="control" id="GeHABl8q=q}1L7I0hIBE">
<mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
<field name="OID">sonoff.0.Steckdose_Proxmox-2.POWER</field>
<field name="WITH_DELAY">FALSE</field>
<value name="VALUE">
<block type="logic_boolean" id="0o]!S927g4ng(Gn9_$2L">
<field name="BOOL">FALSE</field>
</block>
</value>
</block>
</statement>
</block>
</statement>
<next>
<block type="comment" id="@TPb~`zmVZ5JI_ieIi96">
<field name="COMMENT">Rechner mit VIS-Schalter ein- und ausschalten</field>
<next>
<block type="on_ext" id="IXiDYkgc6%g1=R2MYG)~">
<mutation xmlns="http://www.w3.org/1999/xhtml" items="1"></mutation>
<field name="CONDITION">ne</field>
<field name="ACK_CONDITION">false</field>
<value name="OID0">
<shadow type="field_oid" id="][!Qs@^NgjOc7c2IHdF%">
<field name="oid">0_userdata.0.Schalter.proxmox-2</field>
</shadow>
</value>
<statement name="STATEMENT">
<block type="controls_if" id="oS9Mh@u*XZYGdkXm/;Ok">
<mutation else="1"></mutation>
<value name="IF0">
<block type="get_value" id="0n{@VawRqsxuYw!M-i^b">
<field name="ATTR">val</field>
<field name="OID">sonoff.0.Steckdose_Proxmox-2.POWER</field>
</block>
</value>
<statement name="DO0">
<block type="toggle" id="Vi^UfI?.+Ma[4ludILV2">
<mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
<field name="OID">linux-control.0.proxmox-2.herunterfahren</field>
<field name="WITH_DELAY">FALSE</field>
</block>
</statement>
<statement name="ELSE">
<block type="control" id="d9N}F9dvRnyKh-ZgHHp{">
<mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
<field name="OID">sonoff.0.Steckdose_Proxmox-2.POWER</field>
<field name="WITH_DELAY">FALSE</field>
<value name="VALUE">
<block type="logic_boolean" id="=MC:4;6/-lMB;438J/5|">
<field name="BOOL">TRUE</field>
</block>
</value>
</block>
</statement>
</block>
</statement>
<next>
<block type="on_ext" id="Z.Epq5BqdxHPz)u;JlM-">
<mutation xmlns="http://www.w3.org/1999/xhtml" items="1"></mutation>
<field name="CONDITION">ne</field>
<field name="ACK_CONDITION"></field>
<value name="OID0">
<shadow type="field_oid" id="5jE]JUqi7fHpE798_lAv">
<field name="oid">sonoff.0.Steckdose_Proxmox-2.POWER</field>
</shadow>
</value>
<statement name="STATEMENT">
<block type="controls_if" id="HPb|HgKfS3ZE^?Z1nl8P">
<mutation else="1"></mutation>
<value name="IF0">
<block type="on_source" id="lm12W7|rT#u1a5mu|C}K">
<field name="ATTR">state.val</field>
</block>
</value>
<statement name="DO0">
<block type="update" id="6*H,gyilO;is?+HRr.FJ">
<mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
<field name="OID">0_userdata.0.Schalter.proxmox-2</field>
<field name="WITH_DELAY">FALSE</field>
<value name="VALUE">
<block type="logic_boolean" id="F2M9^NUwhng;kNnS#~A4">
<field name="BOOL">TRUE</field>
</block>
</value>
</block>
</statement>
<statement name="ELSE">
<block type="update" id="zmQjB4s)H@wduADHt36r">
<mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
<field name="OID">0_userdata.0.Schalter.proxmox-2</field>
<field name="WITH_DELAY">FALSE</field>
<value name="VALUE">
<block type="logic_boolean" id="25G]}$M/UbQwq)JegjMM">
<field name="BOOL">FALSE</field>
</block>
</value>
</block>
</statement>
</block>
</statement>
</block>
</next>
</block>
</next>
</block>
</next>
</block>
</next>
</block>
</next>
</block>
</next>
</block>
</xml>
blockly.png