- ioBroker Community Home
- Deutsch
- Einsteigerfragen
- Abwesenheit geschehene Aktionen/Anwesenheit vorlesen lassen
Abwesenheit geschehene Aktionen/Anwesenheit vorlesen lassen
-
@felix18 Zusammenfassend würde ich aber sagen dass das Skript für Dich eher weniger in Frage kommt, da nicht nur Pushover sondern auch einige ZigbeeDevices, Alexa, FBCheckpresence, Aliase, eigene DPs welche von anderen Skripten beschrieben werden, usw im Einsatz sind.
Das macht es schwierig für Dein (und auch mein) System umzusetzen ;)Hier mal das Skript ohne die PushoverBlöcke zum Importieren:
<xml xmlns="https://developers.google.com/blockly/xml"> <variables> <variable id="7@H6Hmpl25v1=tL9tu)Y">wird geöffnet</variable> <variable type="timeout" id="timeout2">timeout2</variable> <variable type="timeout" id="timeout">timeout</variable> </variables> <block type="variables_set" id="lcV4@YcxeeA;O#$MIxd%" x="-237" y="-637"> <field name="VAR" id="7@H6Hmpl25v1=tL9tu)Y">wird geöffnet</field> <value name="VALUE"> <block type="math_number" id="X4#@{ccyO5TTu`5DP8$1"> <field name="NUM">0</field> </block> </value> <next> <block type="on_ext" id="*y6-cs.]])R2T1*4Je0;"> <mutation xmlns="http://www.w3.org/1999/xhtml" items="1"></mutation> <field name="CONDITION">true</field> <field name="ACK_CONDITION"></field> <value name="OID0"> <shadow type="field_oid" id="AEUTQ$A$5Apb.ewlUOg`"> <field name="oid">0_userdata.0.Smarthome.Fenster_und_Türen.Wohnungstüre</field> </shadow> </value> <statement name="STATEMENT"> <block type="controls_if" id="JG0OF#mdUj6D#+K_!_D2"> <value name="IF0"> <block type="logic_compare" id="A41f;SHLi0Zq16Bl(=TM"> <field name="OP">EQ</field> <value name="A"> <block type="get_value" id="4Te=m~kxMuo.ACT^4Dc!"> <field name="ATTR">val</field> <field name="OID">0_userdata.0.Smarthome.Briefkasten</field> </block> </value> <value name="B"> <block type="logic_boolean" id="1ak~viJQL-9ha;J;/:(I"> <field name="BOOL">TRUE</field> </block> </value> </block> </value> <statement name="DO0"> <block type="control" id="LM?YM2PP[S^}bzGA~|CQ"> <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="true"></mutation> <field name="OID">alexa2.0.Echo-Devices.dfff8d63060d492dbbd0e9d897a39f88.Commands.announcement</field> <field name="WITH_DELAY">TRUE</field> <field name="DELAY_MS">10</field> <field name="UNIT">sec</field> <field name="CLEAR_RUNNING">FALSE</field> <value name="VALUE"> <block type="text" id="0a;Tm]s^rW@o5k@eN:CD"> <field name="TEXT">Die Post war da.</field> </block> </value> </block> </statement> </block> </statement> <next> <block type="on_ext" id="lTY]3N1fa|Lt[/_M{d=P"> <mutation xmlns="http://www.w3.org/1999/xhtml" items="1"></mutation> <field name="CONDITION">any</field> <field name="ACK_CONDITION"></field> <value name="OID0"> <shadow type="field_oid" id="`aW4I-?NhC6eJ/-3PsAL"> <field name="oid">alias.0.Treppenhaus.Briefkasten.Status.lastupdate</field> </shadow> </value> <statement name="STATEMENT"> <block type="debug" id="6HWY$ffIDo-J1Ee|SgPB"> <field name="Severity">log</field> <value name="TEXT"> <shadow type="text" id="DF,;A{P*O^fU1ql~hv!1"> <field name="TEXT">Bewegungsmelder aktualisiert</field> </shadow> </value> <next> <block type="controls_if" id="D@#ux7d{i~S__vjhTdZn"> <value name="IF0"> <block type="logic_operation" id="Z(%IWuppU4/7C+MN}!n1" inline="false"> <field name="OP">AND</field> <value name="A"> <block type="time_compare_ex" id="pUAmS|w[~l%4:{*xx#S8"> <mutation xmlns="http://www.w3.org/1999/xhtml" end_time="true" actual_time="true"></mutation> <field name="USE_ACTUAL_TIME">TRUE</field> <field name="OPTION">between</field> <value name="START_TIME"> <shadow type="text" id="%jLJWzoa/@Ky1/dR=?D*"> <field name="TEXT">07:00</field> </shadow> </value> <value name="END_TIME"> <shadow type="text" id="7C6PX}).%exzNRw5z5K["> <field name="TEXT">18:00</field> </shadow> </value> </block> </value> <value name="B"> <block type="logic_compare" id="M)n~3xHU3@ysLlW1Gpk)"> <field name="OP">EQ</field> <value name="A"> <block type="get_value" id=";J;a/p)ySe$ji4c|dTp1"> <field name="ATTR">val</field> <field name="OID">0_userdata.0.Smarthome.Briefkasten</field> </block> </value> <value name="B"> <block type="logic_boolean" id="F##?Q(r|W41r,;/xU^Cj"> <field name="BOOL">FALSE</field> </block> </value> </block> </value> </block> </value> <statement name="DO0"> <block type="debug" id="f=XWWxO~+|XLE/=d%hNL"> <field name="Severity">log</field> <value name="TEXT"> <shadow type="text" id="%D3Q[b0*9x-HnFqYSf=9"> <field name="TEXT">Briefkasten wurde befüllt</field> </shadow> </value> <next> <block type="control" id="%7*s:CKL2)[RpjaO}(Yj"> <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation> <field name="OID">alexa2.0.Echo-Devices.dfff8d63060d492dbbd0e9d897a39f88.Commands.announcement</field> <field name="WITH_DELAY">FALSE</field> <value name="VALUE"> <block type="text" id="L1=pk#6Nf#|-b|3SKZ#M"> <field name="TEXT">Die Post ist da!</field> </block> </value> <next> <block type="update" id="]hW7~[C9Rt=yiyWrDro]"> <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation> <field name="OID">0_userdata.0.Smarthome.Briefkasten</field> <field name="WITH_DELAY">FALSE</field> <value name="VALUE"> <block type="logic_boolean" id=".Va])il[7U@rh`VAfJCs"> <field name="BOOL">TRUE</field> </block> </value> </block> </next> </block> </next> </block> </statement> </block> </next> </block> </statement> <next> <block type="on_ext" id="rv)=:My)YQg/T2o+~7e#"> <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="ZD+LIBR=^EbGcw`IjE;v"> <field name="oid">alexa2.0.History.summary</field> </shadow> </value> <statement name="STATEMENT"> <block type="controls_if" id="rpMEj)rqP-QW=OKu7Od4"> <value name="IF0"> <block type="logic_operation" id="MkBoXS~f/wHf*#@~LRSH" inline="false"> <field name="OP">AND</field> <value name="A"> <block type="logic_compare" id="Uug|#_p0uj;8=BMEaYtD"> <field name="OP">EQ</field> <value name="A"> <block type="get_value" id="V5r7vVkXy4L!it)[^qbx"> <field name="ATTR">val</field> <field name="OID">alexa2.0.History.summary</field> </block> </value> <value name="B"> <block type="text" id="3#%B0@f`UER^xtG6R9|?"> <field name="TEXT">post</field> </block> </value> </block> </value> <value name="B"> <block type="logic_compare" id="miExzG{S,/gqi42aPJ~T"> <field name="OP">EQ</field> <value name="A"> <block type="get_value" id="h2{[piMrYp$dY=A%8M|~"> <field name="ATTR">val</field> <field name="OID">0_userdata.0.Smarthome.Briefkasten</field> </block> </value> <value name="B"> <block type="logic_boolean" id="x.8B^cFxg3U|E]~T8pvP"> <field name="BOOL">TRUE</field> </block> </value> </block> </value> </block> </value> <statement name="DO0"> <block type="timeouts_wait" id="s+%(.R1o,$bT|z7Bn1bb" disabled="true"> <field name="DELAY">5</field> <field name="UNIT">min</field> <next> <block type="variables_set" id="fEh1FUnPprpIuY:[m#M*"> <field name="VAR" id="7@H6Hmpl25v1=tL9tu)Y">wird geöffnet</field> <value name="VALUE"> <block type="math_number" id="`5h|IQ11y.tt|A)S7Y_P"> <field name="NUM">0</field> </block> </value> <next> <block type="update" id="n[_7]mOfDt8k:O9CCmzI"> <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation> <field name="OID">0_userdata.0.Smarthome.Briefkasten</field> <field name="WITH_DELAY">FALSE</field> <value name="VALUE"> <block type="logic_boolean" id="BA3B^iC1y*uR:Q.%SN^f"> <field name="BOOL">FALSE</field> </block> </value> </block> </next> </block> </next> </block> </statement> </block> </statement> </block> </next> </block> </next> </block> </next> </block> <block type="on_ext" id="i|fVv5b85}pWp)MKMw7l" x="913" y="-512"> <mutation xmlns="http://www.w3.org/1999/xhtml" items="3"></mutation> <field name="CONDITION">ne</field> <field name="ACK_CONDITION"></field> <value name="OID0"> <shadow type="field_oid" id="%zFTA^:4}r#G7fiBGe1o"> <field name="oid">zigbee.0.00158d000852a4f9.tilt_angle_z</field> </shadow> </value> <value name="OID1"> <shadow type="field_oid" id="#i:zct=A$0m+C.nw$_]%"> <field name="oid">zigbee.0.00158d000852a4f9.tilt_angle_y_abs</field> </shadow> </value> <value name="OID2"> <shadow type="field_oid" id="J]_IHgXdDj:o$$`m8T2k"> <field name="oid">zigbee.0.00158d000852a4f9.vibration</field> </shadow> </value> <statement name="STATEMENT"> <block type="debug" id="8]5Z6tecNBTPqC8yv{Bj"> <field name="Severity">log</field> <value name="TEXT"> <shadow type="text" id="OH1INFxT_kZ//aw~Z:]2"> <field name="TEXT">Vibrationsalarm ausgelöst</field> </shadow> </value> <next> <block type="timeouts_wait" id="h@y(LmNY@Ycz/tSk@g%t" disabled="true"> <field name="DELAY">3</field> <field name="UNIT">sec</field> <next> <block type="math_change" id="eRNg^[V2G~G/}E]=2n4O"> <field name="VAR" id="7@H6Hmpl25v1=tL9tu)Y">wird geöffnet</field> <value name="DELTA"> <shadow type="math_number" id="5cCpmL[J_535B#UA[2aO"> <field name="NUM">1</field> </shadow> <block type="math_number" id="WThZ!J/l:sV~S7*RT%BA"> <field name="NUM">1</field> </block> </value> <next> <block type="controls_if" id="B0A`mKW|CMdRX5qX*OFS"> <mutation else="1"></mutation> <value name="IF0"> <block type="logic_operation" id="^-,B,)Ab0lY(1FZuY%YI" inline="false"> <field name="OP">AND</field> <value name="A"> <block type="logic_operation" id="iGAc%${X6XX7)DK{(LgA" inline="false"> <field name="OP">OR</field> <value name="A"> <block type="logic_operation" id="Czi[Z+/}$a!d!gAM#X.c" inline="false"> <field name="OP">OR</field> <value name="A"> <block type="logic_operation" id="]4Zc{0.l:0`(%Bzmyiat" inline="false"> <field name="OP">OR</field> <value name="A"> <block type="logic_operation" id="+%jX2CP9Lyl_9|+sYyEv" inline="false"> <field name="OP">AND</field> <value name="A"> <block type="logic_compare" id="nHKEC=y:Vza;1`2F{hy3"> <field name="OP">EQ</field> <value name="A"> <block type="get_value" id="AV+-(!.f+Ou)0zbqKrZ/"> <field name="ATTR">val</field> <field name="OID">fb-checkpresence.0.familyMembers.Privat.Florian-Handy.presence</field> </block> </value> <value name="B"> <block type="logic_boolean" id="9hl[~)aBs+d6??QLGXw8"> <field name="BOOL">TRUE</field> </block> </value> </block> </value> <value name="B"> <block type="logic_compare" id="GQFuiAK7ko*5sy+Ia?qh"> <field name="OP">EQ</field> <value name="A"> <block type="get_value" id="rQGR*lvo3=-^vd?-Ma@1"> <field name="ATTR">val</field> <field name="OID">0_userdata.0.Smarthome.Datenpunkte-Zustände.Alarmanlage_Trigger</field> </block> </value> <value name="B"> <block type="logic_boolean" id="I=PM%9(?5cO=T)U^qvhw"> <field name="BOOL">FALSE</field> </block> </value> </block> </value> </block> </value> <value name="B"> <block type="logic_operation" id="hx#%YUG3[8v+,o=y{0zi" inline="false"> <field name="OP">AND</field> <value name="A"> <block type="logic_compare" id="`CJTlf_6.wd[w1gn+10p"> <field name="OP">EQ</field> <value name="A"> <block type="get_value" id="%PE1w4z}:wF:+c,JJJ.^"> <field name="ATTR">val</field> <field name="OID">fb-checkpresence.0.familyMembers.Arbeit.Florian-Privat.presence</field> </block> </value> <value name="B"> <block type="logic_boolean" id="|G%gwm)i*r#T@}h6tGiG"> <field name="BOOL">TRUE</field> </block> </value> </block> </value> <value name="B"> <block type="logic_compare" id="T%){;){Kt?DI}we0LL4^"> <field name="OP">EQ</field> <value name="A"> <block type="get_value" id="bunbY:M1,O/B0)Y$/,}="> <field name="ATTR">val</field> <field name="OID">0_userdata.0.Smarthome.Datenpunkte-Zustände.Alarmanlage_Trigger</field> </block> </value> <value name="B"> <block type="logic_boolean" id="b,$@:7d1X=0Q=5dl(p$p"> <field name="BOOL">FALSE</field> </block> </value> </block> </value> </block> </value> </block> </value> <value name="B"> <block type="logic_compare" id="sXZfC@nHZA0$~$nvFs[*"> <field name="OP">EQ</field> <value name="A"> <block type="get_value" id="xfMGcJ-rrNJ~Ar$f2nCd"> <field name="ATTR">val</field> <field name="OID">fb-checkpresence.0.familyMembers.Privat.Galaxy-A51-von-Andrea.presence</field> </block> </value> <value name="B"> <block type="logic_boolean" id="5b`_rT}P^+:4,!rgikzO"> <field name="BOOL">TRUE</field> </block> </value> </block> </value> </block> </value> <value name="B"> <block type="logic_operation" id="gu5JRFT-6j^DE-ZenI/b" inline="false" disabled="true"> <field name="OP">OR</field> <value name="A"> <block type="logic_compare" id="qK0}I^1)nGnUs73{IX;f"> <field name="OP">LT</field> <value name="A"> <block type="get_value" id=".YFae_fbL/SB_pzMtvT#"> <field name="ATTR">val</field> <field name="OID">zigbee.0.00158d000852a4f9.tilt_angle_y_abs</field> </block> </value> <value name="B"> <block type="math_number" id="`NCF.+P-,C!sHGgFLbI="> <field name="NUM">168</field> </block> </value> </block> </value> <value name="B"> <block type="logic_compare" id="F-;?-ab;GGR;J@|4W+a/"> <field name="OP">GT</field> <value name="A"> <block type="get_value" id="cP4h8J%N6|-zhWF(7pk]"> <field name="ATTR">val</field> <field name="OID">zigbee.0.00158d000852a4f9.tilt_angle_z</field> </block> </value> <value name="B"> <block type="math_number" id="]O)F9*Zwe!1qA~Q6qD5o"> <field name="NUM">40</field> </block> </value> </block> </value> </block> </value> </block> </value> <value name="B"> <block type="logic_operation" id="ZVPtr,(!E;bQqyzIroV-" inline="false"> <field name="OP">AND</field> <value name="A"> <block type="logic_compare" id="l}3NC$`1DpjGq$;/3%)_"> <field name="OP">EQ</field> <value name="A"> <block type="get_value" id="1,0k!JS@[D4~ro%PFTCv"> <field name="ATTR">val</field> <field name="OID">0_userdata.0.Smarthome.Briefkasten</field> </block> </value> <value name="B"> <block type="logic_boolean" id="Ao^}ea11-[_,k_Z~nXV?"> <field name="BOOL">TRUE</field> </block> </value> </block> </value> <value name="B"> <block type="logic_compare" id="J;)trvRVzC$Ly/~np0k+"> <field name="OP">EQ</field> <value name="A"> <block type="variables_get" id="k}/}oNGY[oiOTPjHw5nq"> <field name="VAR" id="7@H6Hmpl25v1=tL9tu)Y">wird geöffnet</field> </block> </value> <value name="B"> <block type="math_number" id="7Uk2*},.Z;r4(m]F.TOx"> <field name="NUM">1</field> </block> </value> </block> </value> </block> </value> </block> </value> <statement name="DO0"> <block type="debug" id="|{sX6+g]FHZha{|QBWdy"> <field name="Severity">log</field> <value name="TEXT"> <shadow type="text" id="vD49B+#aGsq(I[UHnb{c"> <field name="TEXT">Briefkasten wurde geleert.</field> </shadow> </value> <next> <block type="control" id="YuDu#J6PfJvE{BW8d?CR"> <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="true"></mutation> <field name="OID">alexa2.0.Echo-Devices.dfff8d63060d492dbbd0e9d897a39f88.Commands.announcement</field> <field name="WITH_DELAY">TRUE</field> <field name="DELAY_MS">10</field> <field name="UNIT">sec</field> <field name="CLEAR_RUNNING">FALSE</field> <value name="VALUE"> <block type="text" id="27M,[=mH{O`uItiO+NI)"> <field name="TEXT">Der Briefkasten wurde geleert</field> </block> </value> <next> <block type="debug" id="!M=jh-5Cd,Gg+7PkVsqt"> <field name="Severity">log</field> <value name="TEXT"> <shadow type="text" id="r2`jsUp-h_s|X3z4=LA#"> <field name="TEXT">Timer startet</field> </shadow> </value> <next> <block type="timeouts_settimeout" id="ul3rz1cJ32Xrzc163UL1"> <field name="NAME">timeout</field> <field name="DELAY">1</field> <field name="UNIT">min</field> <statement name="STATEMENT"> <block type="debug" id=";AWtEbAge=R+h7T[i(7g"> <field name="Severity">log</field> <value name="TEXT"> <shadow type="text" id="f5fxoUrR2=!}nKZJRal5"> <field name="TEXT">Timer abgelaufen</field> </shadow> </value> <next> <block type="update" id="E7!|U=@?7*Aol1x]=e;v"> <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation> <field name="OID">0_userdata.0.Smarthome.Briefkasten</field> <field name="WITH_DELAY">FALSE</field> <value name="VALUE"> <block type="logic_boolean" id="pG|y*8tnxCz=]u?|o,._"> <field name="BOOL">FALSE</field> </block> </value> <next> <block type="variables_set" id="}MB7Bt/k}Q9iX;`Cp)OG"> <field name="VAR" id="7@H6Hmpl25v1=tL9tu)Y">wird geöffnet</field> <value name="VALUE"> <block type="math_number" id="dr5v!`|4zK/W!$U^,P^o"> <field name="NUM">0</field> </block> </value> <next> <block type="timeouts_cleartimeout" id="^rvnSK2H8ic~E`F0f|NM"> <field name="NAME">timeout</field> </block> </next> </block> </next> </block> </next> </block> </statement> </block> </next> </block> </next> </block> </next> </block> </statement> <statement name="ELSE"> <block type="debug" id="z2jx5AG1w,nO|B-pG~0%"> <field name="Severity">log</field> <value name="TEXT"> <shadow type="text" id="SUU6-CFE_iK4EQ(XF7F{"> <field name="TEXT">Falls hat nicht ausgelöst</field> </shadow> </value> <next> <block type="timeouts_settimeout" id="dEj`1-?L!A|LJHUA*a_9"> <field name="NAME">timeout2</field> <field name="DELAY">1</field> <field name="UNIT">min</field> <statement name="STATEMENT"> <block type="debug" id="I%#|d/Fj_VGL|Dz]ATyo"> <field name="Severity">log</field> <value name="TEXT"> <shadow type="text" id="(XX3[KFZ)!r+qIXA8Em("> <field name="TEXT">Timeout 2 abgelaufen</field> </shadow> </value> <next> <block type="variables_set" id="L?K9Unx7{5aZWAjs=*Gd"> <field name="VAR" id="7@H6Hmpl25v1=tL9tu)Y">wird geöffnet</field> <value name="VALUE"> <block type="math_number" id="H_k0e.dQv{X7I2ik-TrL"> <field name="NUM">0</field> </block> </value> <next> <block type="timeouts_cleartimeout" id="nR|r}Gi``isZO6HZ3*mU"> <field name="NAME">timeout</field> </block> </next> </block> </next> </block> </statement> </block> </next> </block> </statement> </block> </next> </block> </next> </block> </next> </block> </statement> <next> <block type="schedule" id="OUzW{u`QM~6ae.o!_HQ*"> <field name="SCHEDULE">0 0 * * 1-6</field> <statement name="STATEMENT"> <block type="controls_if" id="7oYe{=.sX.c),8]-cn7O"> <value name="IF0"> <block type="logic_compare" id="O3{^{}anrSB1_Yj%7{~d"> <field name="OP">EQ</field> <value name="A"> <block type="get_value" id="4]aEtl66Yquy`ySBj8(*"> <field name="ATTR">val</field> <field name="OID">0_userdata.0.Smarthome.Briefkasten</field> </block> </value> <value name="B"> <block type="logic_boolean" id=".p`Bk](Q+F,@{^={;WIf"> <field name="BOOL">TRUE</field> </block> </value> </block> </value> <statement name="DO0"> <block type="update" id="fCMAA4KAE.1L[{}*YKNh"> <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation> <field name="OID">0_userdata.0.Smarthome.Briefkasten</field> <field name="WITH_DELAY">FALSE</field> <value name="VALUE"> <block type="logic_boolean" id="f2o4BSRMTU_2QfS,0BM?"> <field name="BOOL">FALSE</field> </block> </value> <next> <block type="variables_set" id="wWJ:dk#9b]Agih6bA(nR"> <field name="VAR" id="7@H6Hmpl25v1=tL9tu)Y">wird geöffnet</field> <value name="VALUE"> <block type="math_number" id="ZTb9cB39Nwkz}9:F5ySN"> <field name="NUM">0</field> </block> </value> </block> </next> </block> </statement> </block> </statement> </block> </next> </block> </xml>@djmarc75 danke djmarc75,Danke, damit kann ich ja schon mal was anfangen. Das ich das Skript nicht 1:1 übernehmen kann ist mir schon bewusst. Ich wollte mir einfach nur ein überblick über das Skript verschaffen, um das Skript lesen und verstehen zu lernen/können, da ich mich erst seit einiger Zeit damit beschäftige.
-
@felix18 Zusammenfassend würde ich aber sagen dass das Skript für Dich eher weniger in Frage kommt, da nicht nur Pushover sondern auch einige ZigbeeDevices, Alexa, FBCheckpresence, Aliase, eigene DPs welche von anderen Skripten beschrieben werden, usw im Einsatz sind.
Das macht es schwierig für Dein (und auch mein) System umzusetzen ;)Hier mal das Skript ohne die PushoverBlöcke zum Importieren:
<xml xmlns="https://developers.google.com/blockly/xml"> <variables> <variable id="7@H6Hmpl25v1=tL9tu)Y">wird geöffnet</variable> <variable type="timeout" id="timeout2">timeout2</variable> <variable type="timeout" id="timeout">timeout</variable> </variables> <block type="variables_set" id="lcV4@YcxeeA;O#$MIxd%" x="-237" y="-637"> <field name="VAR" id="7@H6Hmpl25v1=tL9tu)Y">wird geöffnet</field> <value name="VALUE"> <block type="math_number" id="X4#@{ccyO5TTu`5DP8$1"> <field name="NUM">0</field> </block> </value> <next> <block type="on_ext" id="*y6-cs.]])R2T1*4Je0;"> <mutation xmlns="http://www.w3.org/1999/xhtml" items="1"></mutation> <field name="CONDITION">true</field> <field name="ACK_CONDITION"></field> <value name="OID0"> <shadow type="field_oid" id="AEUTQ$A$5Apb.ewlUOg`"> <field name="oid">0_userdata.0.Smarthome.Fenster_und_Türen.Wohnungstüre</field> </shadow> </value> <statement name="STATEMENT"> <block type="controls_if" id="JG0OF#mdUj6D#+K_!_D2"> <value name="IF0"> <block type="logic_compare" id="A41f;SHLi0Zq16Bl(=TM"> <field name="OP">EQ</field> <value name="A"> <block type="get_value" id="4Te=m~kxMuo.ACT^4Dc!"> <field name="ATTR">val</field> <field name="OID">0_userdata.0.Smarthome.Briefkasten</field> </block> </value> <value name="B"> <block type="logic_boolean" id="1ak~viJQL-9ha;J;/:(I"> <field name="BOOL">TRUE</field> </block> </value> </block> </value> <statement name="DO0"> <block type="control" id="LM?YM2PP[S^}bzGA~|CQ"> <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="true"></mutation> <field name="OID">alexa2.0.Echo-Devices.dfff8d63060d492dbbd0e9d897a39f88.Commands.announcement</field> <field name="WITH_DELAY">TRUE</field> <field name="DELAY_MS">10</field> <field name="UNIT">sec</field> <field name="CLEAR_RUNNING">FALSE</field> <value name="VALUE"> <block type="text" id="0a;Tm]s^rW@o5k@eN:CD"> <field name="TEXT">Die Post war da.</field> </block> </value> </block> </statement> </block> </statement> <next> <block type="on_ext" id="lTY]3N1fa|Lt[/_M{d=P"> <mutation xmlns="http://www.w3.org/1999/xhtml" items="1"></mutation> <field name="CONDITION">any</field> <field name="ACK_CONDITION"></field> <value name="OID0"> <shadow type="field_oid" id="`aW4I-?NhC6eJ/-3PsAL"> <field name="oid">alias.0.Treppenhaus.Briefkasten.Status.lastupdate</field> </shadow> </value> <statement name="STATEMENT"> <block type="debug" id="6HWY$ffIDo-J1Ee|SgPB"> <field name="Severity">log</field> <value name="TEXT"> <shadow type="text" id="DF,;A{P*O^fU1ql~hv!1"> <field name="TEXT">Bewegungsmelder aktualisiert</field> </shadow> </value> <next> <block type="controls_if" id="D@#ux7d{i~S__vjhTdZn"> <value name="IF0"> <block type="logic_operation" id="Z(%IWuppU4/7C+MN}!n1" inline="false"> <field name="OP">AND</field> <value name="A"> <block type="time_compare_ex" id="pUAmS|w[~l%4:{*xx#S8"> <mutation xmlns="http://www.w3.org/1999/xhtml" end_time="true" actual_time="true"></mutation> <field name="USE_ACTUAL_TIME">TRUE</field> <field name="OPTION">between</field> <value name="START_TIME"> <shadow type="text" id="%jLJWzoa/@Ky1/dR=?D*"> <field name="TEXT">07:00</field> </shadow> </value> <value name="END_TIME"> <shadow type="text" id="7C6PX}).%exzNRw5z5K["> <field name="TEXT">18:00</field> </shadow> </value> </block> </value> <value name="B"> <block type="logic_compare" id="M)n~3xHU3@ysLlW1Gpk)"> <field name="OP">EQ</field> <value name="A"> <block type="get_value" id=";J;a/p)ySe$ji4c|dTp1"> <field name="ATTR">val</field> <field name="OID">0_userdata.0.Smarthome.Briefkasten</field> </block> </value> <value name="B"> <block type="logic_boolean" id="F##?Q(r|W41r,;/xU^Cj"> <field name="BOOL">FALSE</field> </block> </value> </block> </value> </block> </value> <statement name="DO0"> <block type="debug" id="f=XWWxO~+|XLE/=d%hNL"> <field name="Severity">log</field> <value name="TEXT"> <shadow type="text" id="%D3Q[b0*9x-HnFqYSf=9"> <field name="TEXT">Briefkasten wurde befüllt</field> </shadow> </value> <next> <block type="control" id="%7*s:CKL2)[RpjaO}(Yj"> <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation> <field name="OID">alexa2.0.Echo-Devices.dfff8d63060d492dbbd0e9d897a39f88.Commands.announcement</field> <field name="WITH_DELAY">FALSE</field> <value name="VALUE"> <block type="text" id="L1=pk#6Nf#|-b|3SKZ#M"> <field name="TEXT">Die Post ist da!</field> </block> </value> <next> <block type="update" id="]hW7~[C9Rt=yiyWrDro]"> <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation> <field name="OID">0_userdata.0.Smarthome.Briefkasten</field> <field name="WITH_DELAY">FALSE</field> <value name="VALUE"> <block type="logic_boolean" id=".Va])il[7U@rh`VAfJCs"> <field name="BOOL">TRUE</field> </block> </value> </block> </next> </block> </next> </block> </statement> </block> </next> </block> </statement> <next> <block type="on_ext" id="rv)=:My)YQg/T2o+~7e#"> <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="ZD+LIBR=^EbGcw`IjE;v"> <field name="oid">alexa2.0.History.summary</field> </shadow> </value> <statement name="STATEMENT"> <block type="controls_if" id="rpMEj)rqP-QW=OKu7Od4"> <value name="IF0"> <block type="logic_operation" id="MkBoXS~f/wHf*#@~LRSH" inline="false"> <field name="OP">AND</field> <value name="A"> <block type="logic_compare" id="Uug|#_p0uj;8=BMEaYtD"> <field name="OP">EQ</field> <value name="A"> <block type="get_value" id="V5r7vVkXy4L!it)[^qbx"> <field name="ATTR">val</field> <field name="OID">alexa2.0.History.summary</field> </block> </value> <value name="B"> <block type="text" id="3#%B0@f`UER^xtG6R9|?"> <field name="TEXT">post</field> </block> </value> </block> </value> <value name="B"> <block type="logic_compare" id="miExzG{S,/gqi42aPJ~T"> <field name="OP">EQ</field> <value name="A"> <block type="get_value" id="h2{[piMrYp$dY=A%8M|~"> <field name="ATTR">val</field> <field name="OID">0_userdata.0.Smarthome.Briefkasten</field> </block> </value> <value name="B"> <block type="logic_boolean" id="x.8B^cFxg3U|E]~T8pvP"> <field name="BOOL">TRUE</field> </block> </value> </block> </value> </block> </value> <statement name="DO0"> <block type="timeouts_wait" id="s+%(.R1o,$bT|z7Bn1bb" disabled="true"> <field name="DELAY">5</field> <field name="UNIT">min</field> <next> <block type="variables_set" id="fEh1FUnPprpIuY:[m#M*"> <field name="VAR" id="7@H6Hmpl25v1=tL9tu)Y">wird geöffnet</field> <value name="VALUE"> <block type="math_number" id="`5h|IQ11y.tt|A)S7Y_P"> <field name="NUM">0</field> </block> </value> <next> <block type="update" id="n[_7]mOfDt8k:O9CCmzI"> <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation> <field name="OID">0_userdata.0.Smarthome.Briefkasten</field> <field name="WITH_DELAY">FALSE</field> <value name="VALUE"> <block type="logic_boolean" id="BA3B^iC1y*uR:Q.%SN^f"> <field name="BOOL">FALSE</field> </block> </value> </block> </next> </block> </next> </block> </statement> </block> </statement> </block> </next> </block> </next> </block> </next> </block> <block type="on_ext" id="i|fVv5b85}pWp)MKMw7l" x="913" y="-512"> <mutation xmlns="http://www.w3.org/1999/xhtml" items="3"></mutation> <field name="CONDITION">ne</field> <field name="ACK_CONDITION"></field> <value name="OID0"> <shadow type="field_oid" id="%zFTA^:4}r#G7fiBGe1o"> <field name="oid">zigbee.0.00158d000852a4f9.tilt_angle_z</field> </shadow> </value> <value name="OID1"> <shadow type="field_oid" id="#i:zct=A$0m+C.nw$_]%"> <field name="oid">zigbee.0.00158d000852a4f9.tilt_angle_y_abs</field> </shadow> </value> <value name="OID2"> <shadow type="field_oid" id="J]_IHgXdDj:o$$`m8T2k"> <field name="oid">zigbee.0.00158d000852a4f9.vibration</field> </shadow> </value> <statement name="STATEMENT"> <block type="debug" id="8]5Z6tecNBTPqC8yv{Bj"> <field name="Severity">log</field> <value name="TEXT"> <shadow type="text" id="OH1INFxT_kZ//aw~Z:]2"> <field name="TEXT">Vibrationsalarm ausgelöst</field> </shadow> </value> <next> <block type="timeouts_wait" id="h@y(LmNY@Ycz/tSk@g%t" disabled="true"> <field name="DELAY">3</field> <field name="UNIT">sec</field> <next> <block type="math_change" id="eRNg^[V2G~G/}E]=2n4O"> <field name="VAR" id="7@H6Hmpl25v1=tL9tu)Y">wird geöffnet</field> <value name="DELTA"> <shadow type="math_number" id="5cCpmL[J_535B#UA[2aO"> <field name="NUM">1</field> </shadow> <block type="math_number" id="WThZ!J/l:sV~S7*RT%BA"> <field name="NUM">1</field> </block> </value> <next> <block type="controls_if" id="B0A`mKW|CMdRX5qX*OFS"> <mutation else="1"></mutation> <value name="IF0"> <block type="logic_operation" id="^-,B,)Ab0lY(1FZuY%YI" inline="false"> <field name="OP">AND</field> <value name="A"> <block type="logic_operation" id="iGAc%${X6XX7)DK{(LgA" inline="false"> <field name="OP">OR</field> <value name="A"> <block type="logic_operation" id="Czi[Z+/}$a!d!gAM#X.c" inline="false"> <field name="OP">OR</field> <value name="A"> <block type="logic_operation" id="]4Zc{0.l:0`(%Bzmyiat" inline="false"> <field name="OP">OR</field> <value name="A"> <block type="logic_operation" id="+%jX2CP9Lyl_9|+sYyEv" inline="false"> <field name="OP">AND</field> <value name="A"> <block type="logic_compare" id="nHKEC=y:Vza;1`2F{hy3"> <field name="OP">EQ</field> <value name="A"> <block type="get_value" id="AV+-(!.f+Ou)0zbqKrZ/"> <field name="ATTR">val</field> <field name="OID">fb-checkpresence.0.familyMembers.Privat.Florian-Handy.presence</field> </block> </value> <value name="B"> <block type="logic_boolean" id="9hl[~)aBs+d6??QLGXw8"> <field name="BOOL">TRUE</field> </block> </value> </block> </value> <value name="B"> <block type="logic_compare" id="GQFuiAK7ko*5sy+Ia?qh"> <field name="OP">EQ</field> <value name="A"> <block type="get_value" id="rQGR*lvo3=-^vd?-Ma@1"> <field name="ATTR">val</field> <field name="OID">0_userdata.0.Smarthome.Datenpunkte-Zustände.Alarmanlage_Trigger</field> </block> </value> <value name="B"> <block type="logic_boolean" id="I=PM%9(?5cO=T)U^qvhw"> <field name="BOOL">FALSE</field> </block> </value> </block> </value> </block> </value> <value name="B"> <block type="logic_operation" id="hx#%YUG3[8v+,o=y{0zi" inline="false"> <field name="OP">AND</field> <value name="A"> <block type="logic_compare" id="`CJTlf_6.wd[w1gn+10p"> <field name="OP">EQ</field> <value name="A"> <block type="get_value" id="%PE1w4z}:wF:+c,JJJ.^"> <field name="ATTR">val</field> <field name="OID">fb-checkpresence.0.familyMembers.Arbeit.Florian-Privat.presence</field> </block> </value> <value name="B"> <block type="logic_boolean" id="|G%gwm)i*r#T@}h6tGiG"> <field name="BOOL">TRUE</field> </block> </value> </block> </value> <value name="B"> <block type="logic_compare" id="T%){;){Kt?DI}we0LL4^"> <field name="OP">EQ</field> <value name="A"> <block type="get_value" id="bunbY:M1,O/B0)Y$/,}="> <field name="ATTR">val</field> <field name="OID">0_userdata.0.Smarthome.Datenpunkte-Zustände.Alarmanlage_Trigger</field> </block> </value> <value name="B"> <block type="logic_boolean" id="b,$@:7d1X=0Q=5dl(p$p"> <field name="BOOL">FALSE</field> </block> </value> </block> </value> </block> </value> </block> </value> <value name="B"> <block type="logic_compare" id="sXZfC@nHZA0$~$nvFs[*"> <field name="OP">EQ</field> <value name="A"> <block type="get_value" id="xfMGcJ-rrNJ~Ar$f2nCd"> <field name="ATTR">val</field> <field name="OID">fb-checkpresence.0.familyMembers.Privat.Galaxy-A51-von-Andrea.presence</field> </block> </value> <value name="B"> <block type="logic_boolean" id="5b`_rT}P^+:4,!rgikzO"> <field name="BOOL">TRUE</field> </block> </value> </block> </value> </block> </value> <value name="B"> <block type="logic_operation" id="gu5JRFT-6j^DE-ZenI/b" inline="false" disabled="true"> <field name="OP">OR</field> <value name="A"> <block type="logic_compare" id="qK0}I^1)nGnUs73{IX;f"> <field name="OP">LT</field> <value name="A"> <block type="get_value" id=".YFae_fbL/SB_pzMtvT#"> <field name="ATTR">val</field> <field name="OID">zigbee.0.00158d000852a4f9.tilt_angle_y_abs</field> </block> </value> <value name="B"> <block type="math_number" id="`NCF.+P-,C!sHGgFLbI="> <field name="NUM">168</field> </block> </value> </block> </value> <value name="B"> <block type="logic_compare" id="F-;?-ab;GGR;J@|4W+a/"> <field name="OP">GT</field> <value name="A"> <block type="get_value" id="cP4h8J%N6|-zhWF(7pk]"> <field name="ATTR">val</field> <field name="OID">zigbee.0.00158d000852a4f9.tilt_angle_z</field> </block> </value> <value name="B"> <block type="math_number" id="]O)F9*Zwe!1qA~Q6qD5o"> <field name="NUM">40</field> </block> </value> </block> </value> </block> </value> </block> </value> <value name="B"> <block type="logic_operation" id="ZVPtr,(!E;bQqyzIroV-" inline="false"> <field name="OP">AND</field> <value name="A"> <block type="logic_compare" id="l}3NC$`1DpjGq$;/3%)_"> <field name="OP">EQ</field> <value name="A"> <block type="get_value" id="1,0k!JS@[D4~ro%PFTCv"> <field name="ATTR">val</field> <field name="OID">0_userdata.0.Smarthome.Briefkasten</field> </block> </value> <value name="B"> <block type="logic_boolean" id="Ao^}ea11-[_,k_Z~nXV?"> <field name="BOOL">TRUE</field> </block> </value> </block> </value> <value name="B"> <block type="logic_compare" id="J;)trvRVzC$Ly/~np0k+"> <field name="OP">EQ</field> <value name="A"> <block type="variables_get" id="k}/}oNGY[oiOTPjHw5nq"> <field name="VAR" id="7@H6Hmpl25v1=tL9tu)Y">wird geöffnet</field> </block> </value> <value name="B"> <block type="math_number" id="7Uk2*},.Z;r4(m]F.TOx"> <field name="NUM">1</field> </block> </value> </block> </value> </block> </value> </block> </value> <statement name="DO0"> <block type="debug" id="|{sX6+g]FHZha{|QBWdy"> <field name="Severity">log</field> <value name="TEXT"> <shadow type="text" id="vD49B+#aGsq(I[UHnb{c"> <field name="TEXT">Briefkasten wurde geleert.</field> </shadow> </value> <next> <block type="control" id="YuDu#J6PfJvE{BW8d?CR"> <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="true"></mutation> <field name="OID">alexa2.0.Echo-Devices.dfff8d63060d492dbbd0e9d897a39f88.Commands.announcement</field> <field name="WITH_DELAY">TRUE</field> <field name="DELAY_MS">10</field> <field name="UNIT">sec</field> <field name="CLEAR_RUNNING">FALSE</field> <value name="VALUE"> <block type="text" id="27M,[=mH{O`uItiO+NI)"> <field name="TEXT">Der Briefkasten wurde geleert</field> </block> </value> <next> <block type="debug" id="!M=jh-5Cd,Gg+7PkVsqt"> <field name="Severity">log</field> <value name="TEXT"> <shadow type="text" id="r2`jsUp-h_s|X3z4=LA#"> <field name="TEXT">Timer startet</field> </shadow> </value> <next> <block type="timeouts_settimeout" id="ul3rz1cJ32Xrzc163UL1"> <field name="NAME">timeout</field> <field name="DELAY">1</field> <field name="UNIT">min</field> <statement name="STATEMENT"> <block type="debug" id=";AWtEbAge=R+h7T[i(7g"> <field name="Severity">log</field> <value name="TEXT"> <shadow type="text" id="f5fxoUrR2=!}nKZJRal5"> <field name="TEXT">Timer abgelaufen</field> </shadow> </value> <next> <block type="update" id="E7!|U=@?7*Aol1x]=e;v"> <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation> <field name="OID">0_userdata.0.Smarthome.Briefkasten</field> <field name="WITH_DELAY">FALSE</field> <value name="VALUE"> <block type="logic_boolean" id="pG|y*8tnxCz=]u?|o,._"> <field name="BOOL">FALSE</field> </block> </value> <next> <block type="variables_set" id="}MB7Bt/k}Q9iX;`Cp)OG"> <field name="VAR" id="7@H6Hmpl25v1=tL9tu)Y">wird geöffnet</field> <value name="VALUE"> <block type="math_number" id="dr5v!`|4zK/W!$U^,P^o"> <field name="NUM">0</field> </block> </value> <next> <block type="timeouts_cleartimeout" id="^rvnSK2H8ic~E`F0f|NM"> <field name="NAME">timeout</field> </block> </next> </block> </next> </block> </next> </block> </statement> </block> </next> </block> </next> </block> </next> </block> </statement> <statement name="ELSE"> <block type="debug" id="z2jx5AG1w,nO|B-pG~0%"> <field name="Severity">log</field> <value name="TEXT"> <shadow type="text" id="SUU6-CFE_iK4EQ(XF7F{"> <field name="TEXT">Falls hat nicht ausgelöst</field> </shadow> </value> <next> <block type="timeouts_settimeout" id="dEj`1-?L!A|LJHUA*a_9"> <field name="NAME">timeout2</field> <field name="DELAY">1</field> <field name="UNIT">min</field> <statement name="STATEMENT"> <block type="debug" id="I%#|d/Fj_VGL|Dz]ATyo"> <field name="Severity">log</field> <value name="TEXT"> <shadow type="text" id="(XX3[KFZ)!r+qIXA8Em("> <field name="TEXT">Timeout 2 abgelaufen</field> </shadow> </value> <next> <block type="variables_set" id="L?K9Unx7{5aZWAjs=*Gd"> <field name="VAR" id="7@H6Hmpl25v1=tL9tu)Y">wird geöffnet</field> <value name="VALUE"> <block type="math_number" id="H_k0e.dQv{X7I2ik-TrL"> <field name="NUM">0</field> </block> </value> <next> <block type="timeouts_cleartimeout" id="nR|r}Gi``isZO6HZ3*mU"> <field name="NAME">timeout</field> </block> </next> </block> </next> </block> </statement> </block> </next> </block> </statement> </block> </next> </block> </next> </block> </next> </block> </statement> <next> <block type="schedule" id="OUzW{u`QM~6ae.o!_HQ*"> <field name="SCHEDULE">0 0 * * 1-6</field> <statement name="STATEMENT"> <block type="controls_if" id="7oYe{=.sX.c),8]-cn7O"> <value name="IF0"> <block type="logic_compare" id="O3{^{}anrSB1_Yj%7{~d"> <field name="OP">EQ</field> <value name="A"> <block type="get_value" id="4]aEtl66Yquy`ySBj8(*"> <field name="ATTR">val</field> <field name="OID">0_userdata.0.Smarthome.Briefkasten</field> </block> </value> <value name="B"> <block type="logic_boolean" id=".p`Bk](Q+F,@{^={;WIf"> <field name="BOOL">TRUE</field> </block> </value> </block> </value> <statement name="DO0"> <block type="update" id="fCMAA4KAE.1L[{}*YKNh"> <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation> <field name="OID">0_userdata.0.Smarthome.Briefkasten</field> <field name="WITH_DELAY">FALSE</field> <value name="VALUE"> <block type="logic_boolean" id="f2o4BSRMTU_2QfS,0BM?"> <field name="BOOL">FALSE</field> </block> </value> <next> <block type="variables_set" id="wWJ:dk#9b]Agih6bA(nR"> <field name="VAR" id="7@H6Hmpl25v1=tL9tu)Y">wird geöffnet</field> <value name="VALUE"> <block type="math_number" id="ZTb9cB39Nwkz}9:F5ySN"> <field name="NUM">0</field> </block> </value> </block> </next> </block> </statement> </block> </statement> </block> </next> </block> </xml>@djmarc75 sagte in Abwesenheit geschehene Aktionen/Anwesenheit vorlesen lassen:
@felix18 Zusammenfassend würde ich aber sagen dass das Skript für Dich eher weniger in Frage kommt, da nicht nur Pushover sondern auch einige ZigbeeDevices, Alexa, FBCheckpresence, Aliase, eigene DPs welche von anderen Skripten beschrieben werden, usw im Einsatz sind.
Das macht es schwierig für Dein (und auch mein) System umzusetzen ;)Da gebe ich dir Recht, das Blockly ist sehr "verschachtelt", nicht 1:1 übernehmbar und sicher auch nicht sehr elegant umgesetzt. ;)
Hey! Du scheinst an dieser Unterhaltung interessiert zu sein, hast aber noch kein Konto.
Hast du es satt, bei jedem Besuch durch die gleichen Beiträge zu scrollen? Wenn du dich für ein Konto anmeldest, kommst du immer genau dorthin zurück, wo du zuvor warst, und kannst dich über neue Antworten benachrichtigen lassen (entweder per E-Mail oder Push-Benachrichtigung). Du kannst auch Lesezeichen speichern und Beiträge positiv bewerten, um anderen Community-Mitgliedern deine Wertschätzung zu zeigen.
Mit deinem Input könnte dieser Beitrag noch besser werden 💗
Registrieren Anmelden