Hallo Forum,
ich verzweile und habe jetzt schon einige Stunden am PC verbracht. Außer Frsut kam nicht viel bei rum.
Könnt ihr mir bitte helfen?
Es geht um die o.g. Steuerung: Iobroker auf Raspi 3B+ soll den Luftentfeuchter im Keller über einen Aqara Temp.+Feuchte Sensor und Aqara Steckdose steuern. Also über Zigbee 3.0. Hab den Sonoff Stick am Raspi, Adapter wird erkannt. Aber ich bekomme nicht mel mit dem "einfachen" Blockly Script was hin, was funktioniert.
Bisher habe ich sowas in der Art immer mal wieder zusammengewürfelt:
Code
<xml xmlns="https://developers.google.com/blockly/xml">
<variables>
<variable id="|t}ocX=5VbsjQU;xlS?V">FeuchteWert</variable>
<variable id="J92z~Thr1eg5WorU@gTV">Grenzwert</variable>
<variable id="-lhB,uY.^@v@m%*}#kH(">FeuchteZielwert</variable>
<variable type="interval" id="Intervall">Intervall</variable>
</variables>
<block type="on_ext" id="-9rAFmB/W,lXM6MaMusb" x="113" y="-362">
<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="umsoQRA6zm80k0b#G:dv">
<field name="oid">zigbee.0.00158d0007befab3.available</field>
</shadow>
<block type="field_oid" id="rrAZCU!lE|sc*]blLB+l">
<field name="oid">zigbee.0.00158d0007befab3.available</field>
</block>
</value>
<statement name="STATEMENT">
<block type="variables_set" id="D?X=iB@P/zU%N2!_ox,{">
<field name="VAR" id="|t}ocX=5VbsjQU;xlS?V">FeuchteWert</field>
<value name="VALUE">
<block type="field_oid" id=".a6%SJ]K#d-^J)Es]qu+">
<field name="oid">zigbee.0.00158d0007befab3.humidity</field>
</block>
</value>
<next>
<block type="variables_set" id="c8~zvh#^-:vmJl!dfYDj">
<field name="VAR" id="J92z~Thr1eg5WorU@gTV">Grenzwert</field>
<value name="VALUE">
<block type="math_number" id="wJh4(S()H6LmY+t#L@Gd">
<field name="NUM">60</field>
</block>
</value>
<next>
<block type="variables_set" id="OvvYGJSh`|3nN}Q1KB0m">
<field name="VAR" id="-lhB,uY.^@v@m%*}#kH(">FeuchteZielwert</field>
<value name="VALUE">
<block type="math_number" id="hg=ID_TGY(.(?soB4xZ?">
<field name="NUM">55</field>
</block>
</value>
</block>
</next>
</block>
</next>
</block>
</statement>
<next>
<block type="controls_if" id="6/Hc?=Gf+BAH_N)CH2=j">
<value name="IF0">
<block type="logic_compare" id="IZ.$a^VNlXe.JoqX2NOq">
<field name="OP">GTE</field>
<value name="A">
<block type="field_oid" id="*fkUFZB!fMevSMEvW297">
<field name="oid">zigbee.0.00158d0007befab3.humidity</field>
</block>
</value>
<value name="B">
<block type="variables_get" id="2W}zm[y*ES5{s|j#hM()">
<field name="VAR" id="J92z~Thr1eg5WorU@gTV">Grenzwert</field>
</block>
</value>
</block>
</value>
<statement name="DO0">
<block type="toggle" id="f~3MfQc-iwa/{jQ5/YTQ">
<mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="true"></mutation>
<field name="OID">zigbee.0.54ef441000312685.state</field>
<field name="WITH_DELAY">TRUE</field>
<field name="DELAY_MS">2</field>
<field name="UNIT">sec</field>
<field name="CLEAR_RUNNING">FALSE</field>
</block>
</statement>
<next>
<block type="controls_whileUntil" id="P!|qo3b?cw{]kV0BvLu6">
<field name="MODE">UNTIL</field>
<value name="BOOL">
<block type="logic_compare" id="k0#yvX,|sdoam$%rs2O!">
<field name="OP">LT</field>
<value name="A">
<block type="variables_get" id="p#Co+wZk#W~SRx=y.F7r">
<field name="VAR" id="|t}ocX=5VbsjQU;xlS?V">FeuchteWert</field>
</block>
</value>
<value name="B">
<block type="variables_get" id="uF?,3eybBH)GCtA.$r.e">
<field name="VAR" id="-lhB,uY.^@v@m%*}#kH(">FeuchteZielwert</field>
</block>
</value>
</block>
</value>
<statement name="DO">
<block type="toggle" id="Dyc3OQSJ:Ito1`YT@p-9">
<mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="true"></mutation>
<field name="OID">zigbee.0.54ef441000312685.state</field>
<field name="WITH_DELAY">TRUE</field>
<field name="DELAY_MS">5</field>
<field name="UNIT">sec</field>
<field name="CLEAR_RUNNING">FALSE</field>
</block>
</statement>
<next>
<block type="timeouts_setinterval" id="Tv_[FU/?uU2.=`T1Mi(F">
<field name="NAME">Intervall</field>
<field name="INTERVAL">1440</field>
<field name="UNIT">min</field>
<statement name="STATEMENT">
<block type="comment" id="YbiA_C*erVel`E}H?=3x">
<field name="COMMENT">=24h</field>
</block>
</statement>
</block>
</next>
</block>
</next>
</block>
</next>
</block>
</xml>
Display More
Sieht so aus (siehe Anhang).
HILFE
Gruß
Theo