<xml xmlns="https://developers.google.com/blockly/xml">
<variables>
<variable id=".DIu3]*Kn5iE$d{n+j-N">Fehler_Nachricht_Server</variable>
</variables>
<block type="schedule" id="#KzrbCB{qj,Cz2G8jZhd" x="69" y="-54">
<field name="SCHEDULE">*/5 * * * *</field>
<statement name="STATEMENT">
<block type="comment" id="sYr#E%,3;j%TK6/q%yQn">
<field name="COMMENT">MAServer überwachen ob online</field>
<next>
<block type="variables_set" id="MoEIP)Cp|G2Ce$sr{+0j">
<field name="VAR" id=".DIu3]*Kn5iE$d{n+j-N">Fehler_Nachricht_Server</field>
<value name="VALUE">
<block type="text" id="x{T7C#Ih1j4Ld/j|ijgy">
<field name="TEXT"></field>
</block>
</value>
<next>
<block type="comment" id="x%oiS%4|l?qv5p!36*n0">
<field name="COMMENT">MQTT Adapter auswerten ob MAServer Online</field>
<next>
<block type="comment" id="1_yyY6Ss/s_f(sRY9zjq">
<field name="COMMENT">mqtt.0.info.connection</field>
<next>
<block type="controls_if" id="[^`)^!ZVG9tI.yFP3Ww8">
<value name="IF0">
<block type="logic_compare" id="xh3zf4R#1_1d%4@gi546">
<field name="OP">EQ</field>
<value name="A">
<block type="math_number" id="fD%QS,l4^gMRp;KhH[(n">
<field name="NUM">0</field>
</block>
</value>
<value name="B">
<block type="text_indexOf" id="HgFZ],OGx8}g*bdF;pTB">
<field name="END">FIRST</field>
<value name="VALUE">
<block type="get_value" id="#!Ja:^u)j-wgIYePFdgM">
<field name="ATTR">val</field>
<field name="OID">mqtt.0.info.connection</field>
</block>
</value>
<value name="FIND">
<shadow type="text" id="2KX*d/pT4k3|F1N6^!k[">
<field name="TEXT">abc</field>
</shadow>
<block type="text" id="NQsov+wAhX(b.(W}$g-[">
<field name="TEXT">MABroker</field>
</block>
</value>
</block>
</value>
</block>
</value>
<statement name="DO0">
<block type="variables_set" id="SdtgQ/Danh]4jXe4Wj6!">
<field name="VAR" id=".DIu3]*Kn5iE$d{n+j-N">Fehler_Nachricht_Server</field>
<value name="VALUE">
<block type="text_join" id="mp:Pfg0]TQ+E-R_O^Azc">
<mutation items="3"></mutation>
<value name="ADD0">
<block type="variables_get" id="-o,M^ox=Cgc|z1x.BT?=">
<field name="VAR" id=".DIu3]*Kn5iE$d{n+j-N">Fehler_Nachricht_Server</field>
</block>
</value>
<value name="ADD1">
<block type="text_newline" id="hCw`vC^2L`,drPQLC.rd">
<field name="Type">\n</field>
</block>
</value>
<value name="ADD2">
<block type="text" id="KN48c9wyBVrXSW53L?4b">
<field name="TEXT">MQTT Server ist offline</field>
</block>
</value>
</block>
</value>
<next>
<block type="comment" id="@b7M,eXfo|)V@QjMH.@*">
<field name="COMMENT">System DP auswerten ob MQTT Adater online</field>
<next>
<block type="comment" id="mxT4wg}J`?Gj2nHxU/st">
<field name="COMMENT">system.adapter.mqtt.0.alive</field>
<next>
<block type="controls_if" id="I-(1F=JP.KgUlEsIZlsi">
<value name="IF0">
<block type="logic_compare" id="0Gm`/+bkv4+M@Wq7.O1w">
<field name="OP">EQ</field>
<value name="A">
<block type="get_value" id="Iqr)IIJmfTIRD6QdaA7!">
<field name="ATTR">val</field>
<field name="OID">system.adapter.mqtt.0.alive</field>
</block>
</value>
<value name="B">
<block type="logic_boolean" id="^a45FCNEO4o5-iC.+d+U">
<field name="BOOL">TRUE</field>
</block>
</value>
</block>
</value>
<statement name="DO0">
<block type="comment" id="$9z:*+t|KOLMLOcLFYiF">
<field name="COMMENT">Dienst im Linux Adapter neu starten</field>
<next>
<block type="comment" id="CQ_7P2x{-nux+$FclQ/}">
<field name="COMMENT">linux-control.0.HAUSAUTO-PI4.services.maserver.restart</field>
<next>
<block type="controls_if" id="~$W(QxM`)^!R6aP8#gzx">
<value name="IF0">
<block type="logic_compare" id=",IVC]b8VZx;!RI*rI2}v">
<field name="OP">EQ</field>
<value name="A">
<block type="math_number" id="0]){f!cV^%y#$+()P~@I">
<field name="NUM">1</field>
</block>
</value>
<value name="B">
<block type="math_number" id="mHLoYyIY4yehxsONxPtN">
<field name="NUM">1</field>
</block>
</value>
</block>
</value>
<statement name="DO0">
<block type="update" id="10LEPcff*5{fMJ]N%J11">
<mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
<field name="OID">linux-control.0.HAUSAUTO-PI4.services.maserver.restart</field>
<field name="WITH_DELAY">FALSE</field>
<value name="VALUE">
<block type="logic_boolean" id="8DwEynny58Ct]ixP#rr6">
<field name="BOOL">TRUE</field>
</block>
</value>
<next>
<block type="variables_set" id="{xx=Dxi.;Kh#YX[w1J@7">
<field name="VAR" id=".DIu3]*Kn5iE$d{n+j-N">Fehler_Nachricht_Server</field>
<value name="VALUE">
<block type="text_join" id="%pg8(hJ[ABd#+W1rCHd-">
<mutation items="3"></mutation>
<value name="ADD0">
<block type="variables_get" id="PYwnAI]urY]oaE0fls(D">
<field name="VAR" id=".DIu3]*Kn5iE$d{n+j-N">Fehler_Nachricht_Server</field>
</block>
</value>
<value name="ADD1">
<block type="text_newline" id="uEuR{ylJ:zY-z:nUn6$v">
<field name="Type">\n</field>
</block>
</value>
<value name="ADD2">
<block type="text" id="CJkgiQ*sr^K[|+-ktVA*">
<field name="TEXT">MA Server Neustart ausgelöst</field>
</block>
</value>
</block>
</value>
</block>
</next>
</block>
</statement>
</block>
</next>
</block>
</next>
</block>
</statement>
</block>
</next>
</block>
</next>
</block>
</next>
</block>
</statement>
<next>
<block type="comment" id="Z:9H0oa#F.O1Cocrb3$H">
<field name="COMMENT">Linux Adapter DP auswerten ob MAServer Aktiv</field>
<next>
<block type="comment" id="-!aT_Yl8S*#r{cEyyx%)">
<field name="COMMENT">linux-control.0.HAUSAUTO-PI4.services.maserver.active</field>
<next>
<block type="controls_if" id="@9;[([tCI#,5ET{SC*-i">
<value name="IF0">
<block type="logic_compare" id="NUxd,SPV1)cfLlDv|3m[">
<field name="OP">EQ</field>
<value name="A">
<block type="math_number" id="/0;Nlg/+y{ss.bs}msd@">
<field name="NUM">0</field>
</block>
</value>
<value name="B">
<block type="text_indexOf" id="CRRBuYA5w8N4*szU}-#E">
<field name="END">FIRST</field>
<value name="VALUE">
<block type="get_value" id="[9:2!4+}?t2j#3_*;V+#">
<field name="ATTR">val</field>
<field name="OID">linux-control.0.HAUSAUTO-PI4.services.maserver.active</field>
</block>
</value>
<value name="FIND">
<shadow type="text">
<field name="TEXT">abc</field>
</shadow>
<block type="text" id="cQB39D]J{2ZJl_W5%Rm?">
<field name="TEXT">active</field>
</block>
</value>
</block>
</value>
</block>
</value>
<statement name="DO0">
<block type="variables_set" id="oC}@-^0Z+8ZnZbu!-)SC">
<field name="VAR" id=".DIu3]*Kn5iE$d{n+j-N">Fehler_Nachricht_Server</field>
<value name="VALUE">
<block type="text_join" id="ryE4Z-58DcaA,e9Rz3bx">
<mutation items="3"></mutation>
<value name="ADD0">
<block type="variables_get" id="hk2S$p}2?Ly{njk5I-1]">
<field name="VAR" id=".DIu3]*Kn5iE$d{n+j-N">Fehler_Nachricht_Server</field>
</block>
</value>
<value name="ADD1">
<block type="text_newline" id="W/zHX2%liy-wS(-,Rmj7">
<field name="Type">\n</field>
</block>
</value>
<value name="ADD2">
<block type="text" id="7^60gGeI5KtpC5ee93[t">
<field name="TEXT">MAServer Service ist nicht aktive</field>
</block>
</value>
</block>
</value>
</block>
</statement>
<next>
<block type="comment" id="ip]Zy1zdUiZrD]b#]1]#">
<field name="COMMENT">Linux Adapter DP auswerten ob MAServer geladen</field>
<next>
<block type="comment" id="Y_OW,qH66/mfBTQPRED_">
<field name="COMMENT">linux-control.0.HAUSAUTO-PI4.services.maserver.load</field>
<next>
<block type="controls_if" id="s`Le=%+lm}9lU@H-p|2U">
<value name="IF0">
<block type="logic_compare" id="qTk1r~!W^ncN4.wVnf@z">
<field name="OP">EQ</field>
<value name="A">
<block type="math_number" id="UF+3hVka7@jVMot`hA^E">
<field name="NUM">0</field>
</block>
</value>
<value name="B">
<block type="text_indexOf" id="^:6`u-IKjt5lvpvk2bE#">
<field name="END">FIRST</field>
<value name="VALUE">
<block type="get_value" id="|73Hb_:@u3Q7%`KD1ck3">
<field name="ATTR">val</field>
<field name="OID">linux-control.0.HAUSAUTO-PI4.services.maserver.load</field>
</block>
</value>
<value name="FIND">
<shadow type="text">
<field name="TEXT">abc</field>
</shadow>
<block type="text" id="uyxRuKt8HCUapqf|VjX8">
<field name="TEXT">loaded</field>
</block>
</value>
</block>
</value>
</block>
</value>
<statement name="DO0">
<block type="variables_set" id="=kUwyb/|4d[K%QbhCQrJ">
<field name="VAR" id=".DIu3]*Kn5iE$d{n+j-N">Fehler_Nachricht_Server</field>
<value name="VALUE">
<block type="text_join" id="}8j+|#6VNq9CnJfnT:G%">
<mutation items="3"></mutation>
<value name="ADD0">
<block type="variables_get" id="z,0_E.Ai9r{(0W$ej2^C">
<field name="VAR" id=".DIu3]*Kn5iE$d{n+j-N">Fehler_Nachricht_Server</field>
</block>
</value>
<value name="ADD1">
<block type="text_newline" id="NtE~XbNo|NGHh^DCNv?_">
<field name="Type">\n</field>
</block>
</value>
<value name="ADD2">
<block type="text" id="$6NCjPK=)I%dq1:WL7Uh">
<field name="TEXT">MAServer Service ist nicht geladen</field>
</block>
</value>
</block>
</value>
</block>
</statement>
<next>
<block type="comment" id="Yn]c~_GxwjI-[OISL]c2">
<field name="COMMENT">Linux Adapter DP auswerten ob MAServer läuft</field>
<next>
<block type="comment" id="XA%NU1E0yq9u0rg`6?=,">
<field name="COMMENT">linux-control.0.HAUSAUTO-PI4.services.maserver.running</field>
<next>
<block type="controls_if" id="R@^$V+vWp[[E3Yj,{!cu">
<value name="IF0">
<block type="logic_compare" id="yo:P6!c44/aHdK+]#:V1">
<field name="OP">EQ</field>
<value name="A">
<block type="get_value" id="sr,dE2o_qH(Ct~uCpa*$">
<field name="ATTR">val</field>
<field name="OID">linux-control.0.HAUSAUTO-PI4.services.maserver.running</field>
</block>
</value>
<value name="B">
<block type="logic_boolean" id="~f5TZeEtPd];S:vcMv}B">
<field name="BOOL">FALSE</field>
</block>
</value>
</block>
</value>
<statement name="DO0">
<block type="variables_set" id="Wft[k|maKyXF*HufTGW.">
<field name="VAR" id=".DIu3]*Kn5iE$d{n+j-N">Fehler_Nachricht_Server</field>
<value name="VALUE">
<block type="text_join" id="HND|S%FCv8`z)VOUOdo]">
<mutation items="3"></mutation>
<value name="ADD0">
<block type="variables_get" id="46qNeDT{qFm#7$h8g@O-">
<field name="VAR" id=".DIu3]*Kn5iE$d{n+j-N">Fehler_Nachricht_Server</field>
</block>
</value>
<value name="ADD1">
<block type="text_newline" id="kOD6K4)npHAa4#=Q~,0v">
<field name="Type">\n</field>
</block>
</value>
<value name="ADD2">
<block type="text" id="2CkS/Z$|xy0.0]rK0#;K">
<field name="TEXT">MAServer Service Dienst läuft nicht</field>
</block>
</value>
</block>
</value>
</block>
</statement>
<next>
<block type="comment" id="L;}!oX{u@hL0zi}|=?W|">
<field name="COMMENT">Senoren Serverwarnung Nachricht Senden</field>
<next>
<block type="comment" id="6u*Y#qzrwot!S42pS}R]">
<field name="COMMENT">0_userdata.0.Warnung.Wettersensor_Server</field>
<next>
<block type="controls_if" id="P-vvDKJ}}Be9pn|.s7ZI">
<mutation else="1"></mutation>
<value name="IF0">
<block type="logic_negate" id="`gI]?Od{G,7,|ve)1%J?">
<value name="BOOL">
<block type="text_isEmpty" id="A3Id/TBI(SuxVAP+ofto">
<value name="VALUE">
<shadow type="text">
<field name="TEXT"></field>
</shadow>
<block type="variables_get" id="!8Xry$sMEi|B`@mA!T3$">
<field name="VAR" id=".DIu3]*Kn5iE$d{n+j-N">Fehler_Nachricht_Server</field>
</block>
</value>
</block>
</value>
</block>
</value>
<statement name="DO0">
<block type="controls_if" id="tYzM+HX:N)l:7_D^[=aK">
<value name="IF0">
<block type="logic_compare" id="DmTrFS6tJi82fJtLGV4x">
<field name="OP">EQ</field>
<value name="A">
<block type="get_value" id="J38~]7OH8TJNQO(:#4RU">
<field name="ATTR">val</field>
<field name="OID">0_userdata.0.Warnung.Wettersensor_Server</field>
</block>
</value>
<value name="B">
<block type="logic_boolean" id="G}Xg8(eVd}v~NxC(8xU,">
<field name="BOOL">FALSE</field>
</block>
</value>
</block>
</value>
<statement name="DO0">
<block type="comment" id="pG@/jdH%Y$,0v7-g7eV0">
<field name="COMMENT">DP Warnmeldung Server setzen</field>
<next>
<block type="comment" id="F`%[U|yaU?zKB1xTBe+m">
<field name="COMMENT">0_userdata.0.Warnung.Wettersensor_Server</field>
<next>
<block type="update" id="Ms_dE,Z8{;jD[lGWwny_">
<mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
<field name="OID">0_userdata.0.Warnung.Wettersensor_Server</field>
<field name="WITH_DELAY">FALSE</field>
<value name="VALUE">
<block type="logic_boolean" id="A-9PA=XbTm6p=dVaSFH9">
<field name="BOOL">TRUE</field>
</block>
</value>
<next>
<block type="debug" id="FTZ+WBGxw{3NCK8V+*XQ">
<field name="Severity">warn</field>
<value name="TEXT">
<shadow type="text" id="B.co@YP{$pb:M*{/*nLQ">
<field name="TEXT">test</field>
</shadow>
<block type="text_join" id="Ph;a}:u!6Vwh#$]iHOXd">
<mutation items="2"></mutation>
<value name="ADD0">
<block type="text" id="tE2d4P|*$Abibpka%2,B">
<field name="TEXT">Fehler Wettersensor Server:</field>
</block>
</value>
<value name="ADD1">
<block type="variables_get" id="#d,g6:@`4KoF6Yv9G[bS">
<field name="VAR" id=".DIu3]*Kn5iE$d{n+j-N">Fehler_Nachricht_Server</field>
</block>
</value>
</block>
</value>
<next>
<block type="comment" id="kS-XG1t`I)cXFu:U^Yvo">
<field name="COMMENT">Warnmeldung senden wenn gewünscht einstellen</field>
<next>
<block type="controls_if" id="Jcfr!6m.5zuF!u4MOTDq">
<value name="IF0">
<block type="logic_compare" id="bya-Xhj1$=VQ-V.,v%9v">
<field name="OP">EQ</field>
<value name="A">
<block type="math_number" id="PQn3oEb:p/O71hj=(+[T">
<field name="NUM">1</field>
</block>
</value>
<value name="B">
<block type="math_number" id="AxkR2#pmN%RTbuq%KSs1">
<field name="NUM">0</field>
</block>
</value>
</block>
</value>
<statement name="DO0">
<block type="telegram" id="-CU3qr*q{j3P:XJVfepU">
<field name="INSTANCE"></field>
<field name="LOG"></field>
<field name="SILENT">FALSE</field>
<field name="PARSEMODE">default</field>
<field name="DISABLE_WEB_PAGE_PREVIEW">FALSE</field>
<value name="MESSAGE">
<shadow type="text">
<field name="TEXT">text</field>
</shadow>
<block type="text_join" id="jz^fE#.})8uoh_MsL;Y#">
<mutation items="2"></mutation>
<value name="ADD0">
<block type="text" id="U1oN]y1msQTM18Bdd!MK">
<field name="TEXT">Fehler Wettersensor Server:</field>
</block>
</value>
<value name="ADD1">
<block type="variables_get" id="J*4SWHb~tO!zIBx(Id2-">
<field name="VAR" id=".DIu3]*Kn5iE$d{n+j-N">Fehler_Nachricht_Server</field>
</block>
</value>
</block>
</value>
</block>
</statement>
</block>
</next>
</block>
</next>
</block>
</next>
</block>
</next>
</block>
</next>
</block>
</statement>
</block>
</statement>
<statement name="ELSE">
<block type="comment" id="d~0WHr*q+uu4ykneuN:h">
<field name="COMMENT">DP Warnmeldung Server zurücksetzen</field>
<next>
<block type="comment" id="/G([Sp,43.?=:ir0Pxuv">
<field name="COMMENT">0_userdata.0.Warnung.Wettersensor_Server</field>
<next>
<block type="controls_if" id="!gG(_$jP8EHaJt^dCVsg">
<value name="IF0">
<block type="logic_compare" id="vEz!zp_|z{LZGerWA#8b">
<field name="OP">EQ</field>
<value name="A">
<block type="get_value" id="9wHp(.VS+mT:V*O{J3])">
<field name="ATTR">val</field>
<field name="OID">0_userdata.0.Warnung.Wettersensor_Server</field>
</block>
</value>
<value name="B">
<block type="logic_boolean" id="8itAzJkA.NQ@ePt?Ac+F">
<field name="BOOL">TRUE</field>
</block>
</value>
</block>
</value>
<statement name="DO0">
<block type="debug" id="O,tURJ=K+(E0YdDe(Rdi">
<field name="Severity">log</field>
<value name="TEXT">
<shadow type="text">
<field name="TEXT">test</field>
</shadow>
<block type="text_join" id="}Wvbl82-UKX,N4nc1qu{">
<mutation items="2"></mutation>
<value name="ADD0">
<block type="text" id="Lr`r2{;^^W)S_iC3-(vT">
<field name="TEXT">Fehler Wettersensor Server:</field>
</block>
</value>
<value name="ADD1">
<block type="text" id="Rs[=a]o_zb8rkCrb@:R6">
<field name="TEXT">Fehler aufgehoben</field>
</block>
</value>
</block>
</value>
<next>
<block type="update" id="PBM{w;Hv8TZbqC42i~~G">
<mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
<field name="OID">0_userdata.0.Warnung.Wettersensor_Server</field>
<field name="WITH_DELAY">FALSE</field>
<value name="VALUE">
<block type="logic_boolean" id="VY@hLDX4KC,xWIN00+ii">
<field name="BOOL">FALSE</field>
</block>
</value>
</block>
</next>
</block>
</statement>
</block>
</next>
</block>
</next>
</block>
</statement>
</block>
</next>
</block>
</next>
</block>
</next>
</block>
</next>
</block>
</next>
</block>
</next>
</block>
</next>
</block>
</next>
</block>
</next>
</block>
</next>
</block>
</next>
</block>
</next>
</block>
</next>
</block>
</next>
</block>
</next>
</block>
</next>
</block>
</statement>
</block>
</xml>