NEWS
Stalltür zu Licht an
-
Warum Du noch ein DP für "Stalltür auto auf" hast erschließt sich mir nicht, da das in dem Script nicht abgefragt wird.
Ichj hab das noch mal bisschen angepasst und das Licht nun in Abhängigkeit von der geschlossenen Stalltür eingebaut. den DP muss in der 2. falls noch einfügen.
<block xmlns="http://www.w3.org/1999/xhtml" type="schedule" id="iKu7PN9]2@mo1QWA}wC{" x="-112.23333358764751" y="-237.5"><field name="SCHEDULE">* 17-22 * * *</field> <statement name="STATEMENT"><block type="controls_if" id="3v{Hbuj23FRj/)3B`,g1"><value name="IF0"><block type="logic_operation" id="=(BUP}@X{zZd^x5vIU}R" inline="false"><field name="OP">AND</field> <value name="A"><block type="logic_compare" id="MZ0,Iu+z]zc4dpLt1ekC"><field name="OP">EQ</field> <value name="A"><block type="get_value" id="y{qiG5][odrL?A]EyK=*"><field name="ATTR">val</field> <field name="OID">Schalter.0.Stall.AutoStallTuerZU</field></block></value> <value name="B"><block type="logic_boolean" id="@i}LD?wd^uSs![i`qeAn"><field name="BOOL">TRUE</field></block></value></block></value> <value name="B"><block type="logic_compare" id="T~@~^gO?!Y,9[6%+ohb4"><field name="OP">LTE</field> <value name="A"><block type="get_value" id="UDS]Yjvab)]y1FGG*X[!"><field name="ATTR">val</field> <field name="OID">hm-rpc.0.MEQ1423569.1.BRIGHTNESS</field></block></value> <value name="B"><block type="math_number" id="_JFkb-+A^rB5k^PE?AY:"><field name="NUM">68</field></block></value></block></value></block></value> <statement name="DO0"><block type="control" id="yY,cL/o9-Kb6NHI#:MS]"><mutation delay_input="false"></mutation> <field name="OID">hm-rpc.0.PEQ0095942.1.LEVEL</field> <field name="WITH_DELAY">FALSE</field> <value name="VALUE"><block type="math_number" id="O`{I^#GR(30ba)VB!7zf"><field name="NUM">100</field></block></value> <next><block type="controls_if" id="6%5NI0R1.LllcLUtnY,?"><value name="IF0"><block type="logic_compare" id="_(}JN4EiA}27P.eOVNmZ"><field name="OP">EQ</field> <value name="A"><block type="get_value" id="@/6u:`g4USwgjx2Q+Spl"><field name="ATTR">val</field> <field name="OID">ID auswählen</field></block></value> <value name="B"><block type="math_number" id="iP70DCq7mZp@x9M0/}]h"><field name="NUM">100</field></block></value></block></value> <statement name="DO0"><block type="control" id="{_Km|iHD`F(YYpw_ELS~"><mutation delay_input="true"></mutation> <field name="OID">sonoff.0.Licht_Huehnerstall.POWER</field> <field name="WITH_DELAY">TRUE</field> <field name="DELAY_MS">1</field> <field name="UNIT">min</field> <field name="CLEAR_RUNNING">FALSE</field> <value name="VALUE"><block type="logic_boolean" id="3hgW8Qt{r3etFphYLII."><field name="BOOL">TRUE</field></block></value> <next><block type="control" id="2~dNDSf-:~3/5ll]J;eX"><mutation delay_input="true"></mutation> <field name="OID">sonoff.0.Licht_Huehnerstall.POWER</field> <field name="WITH_DELAY">TRUE</field> <field name="DELAY_MS">179</field> <field name="UNIT">min</field> <field name="CLEAR_RUNNING">FALSE</field> <value name="VALUE"><block type="logic_boolean" id="8*Dwh3n%91SycVOW{TPV"><field name="BOOL">FALSE</field></block></value></block></next></block></statement></block></next></block></statement></block></statement></block> -
Oh danke das ist aber nett, der zweite DP ist für das andere Script für Stall Tür morgens auf da brauch auch kein Licht an gehen und alles ging ohne Probleme. Werde ich mal morgen Abend testen und Info geben ob alles geklappt hat.
-
Hat alles geklappt danke