@janhp so habe ich das gemacht !
Bildschirmfoto 2020-11-29 um 06.24.43.png
Hallo zusammen,
anbei ein Skript mit Blockly
<xml xmlns="https://developers.google.com/blockly/xml">
<block type="on" id="sh_6?8^;9ExO-}/4Dx:." x="-162" y="-212">
<field name="OID">paw.0.SM-G975F.info.battery.level</field>
<field name="CONDITION">ne</field>
<field name="ACK_CONDITION"></field>
<statement name="STATEMENT">
<block type="controls_if" id="CI$h@O!ge0Zuvw#O,7%y">
<mutation elseif="1"></mutation>
<value name="IF0">
<block type="logic_compare" id="CtN*18c!yPmh!L-ar{o$">
<field name="OP">LTE</field>
<value name="A">
<block type="get_value" id="y6SiNnTcOh/x=P2Ie/.D">
<field name="ATTR">val</field>
<field name="OID">paw.0.SM-G975F.info.battery.level</field>
</block>
</value>
<value name="B">
<block type="text" id="LuPQ,;k1c$4Kp/J@sW4Z">
<field name="TEXT">16</field>
</block>
</value>
</block>
</value>
<statement name="DO0">
<block type="control" id="xMKb+i^s]uHe4{f^dgmL">
<mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
<field name="OID">sonoff.0.SonoffDRNr6STSZ.POWER</field>
<field name="WITH_DELAY">FALSE</field>
<value name="VALUE">
<block type="logic_boolean" id="C)jl1W_Ggi9m.yS/.e!U">
<field name="BOOL">TRUE</field>
</block>
</value>
</block>
</statement>
<value name="IF1">
<block type="logic_compare" id="l;ns{D^Q)3;aLtd~Cema">
<field name="OP">GTE</field>
<value name="A">
<block type="get_value" id="$$L!iJarhK;9B:sU=DeP">
<field name="ATTR">val</field>
<field name="OID">paw.0.SM-G975F.info.battery.level</field>
</block>
</value>
<value name="B">
<block type="text" id="Or,mU;tfWJBqjpdcDzuZ">
<field name="TEXT">88</field>
</block>
</value>
</block>
</value>
<statement name="DO1">
<block type="control" id="f60qJA%{@*P)F4ZT+|6+">
<mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
<field name="OID">sonoff.0.SonoffDRNr6STSZ.POWER</field>
<field name="WITH_DELAY">FALSE</field>
<value name="VALUE">
<block type="logic_boolean" id="},/;ADTzl5ym^:fr,tTa">
<field name="BOOL">FALSE</field>
</block>
</value>
</block>
</statement>
</block>
</statement>
</block>
</xml>
welches leider nicht funktioniert. Die Datenpunkte sind richtig nach Prüfung.
Kann mir jemmand dazu helfen?
Danke.
VG
BLRD
@BLRD
Nimm Zahlen (unter "Mathematik") anstelle von Strings zum Vergleich.
@BLRD Mathematikbaustein, anstatt deiner grünen
@BLRD sollte funktionieren mit den Mathe-Zahlen, hab mein script auch so aufgebaut fürs Tablet funzt.
@BLRD freu mich :)!!