Hallo,
ich möchte eine Taste alles ausgenerieren, die aber nur gedrückt werden kann, wenn "EINES" der Geräte aktiv ist. Kann man den "Falls Object"-Baustein auch mit ODER und UND verknüpfen. Ich will ja erreichen, daß wenn ein Gerät aktiv ist, das Icon umschaltet und wenn ALLE Geräte inaktiv ist, ein anderes Icon zu sehen ist.
schimmer-media.de/index.php?attachment/2516/
Code
<xml xmlns="http://www.w3.org/1999/xhtml">
<block type="on_ext" id="d1o+F)661b^DKcr%IpD%" x="38" y="13">
<mutation items="5"></mutation>
<field name="CONDITION">true</field>
<field name="ACK_CONDITION"></field>
<value name="OID0">
<shadow type="field_oid" id="%OXBaLtuR==SmbB[XEI3">
<field name="oid">sonoff.0.Steckdose-Mobil.POWER</field>
</shadow>
</value>
<value name="OID1">
<shadow type="field_oid" id="5V};F1+ANVl6Z5h{?g)d">
<field name="oid">fritzdect.0.DECT200_087610400044.state</field>
</shadow>
</value>
<value name="OID2">
<shadow type="field_oid" id="#F(V`:-1FuXG|5*7_CF]">
<field name="oid">sonoff.0.Kinderzimmer.POWER</field>
</shadow>
</value>
<value name="OID3">
<shadow type="field_oid" id="]U|?fx_/g9IMW)?RF%jo">
<field name="oid">sonoff.0.Highboard-Long.POWER</field>
</shadow>
</value>
<value name="OID4">
<shadow type="field_oid" id="VZdc:|@i|x|B3T40^#t.">
<field name="oid">sonoff.0.Highboard-Small.POWER</field>
</shadow>
</value>
<statement name="STATEMENT">
<block type="update" id="p}2g}|N[xO^gvzj12i7.">
<mutation delay_input="false"></mutation>
<field name="OID">javascript.0.Einstellungen.Alles_Aus</field>
<field name="WITH_DELAY">FALSE</field>
<value name="VALUE">
<block type="logic_boolean" id="!-yQxNn+Y-%L(!;ol}U?">
<field name="BOOL">TRUE</field>
</block>
</value>
</block>
</statement>
<next>
<block type="on_ext" id="C40jFRp:?=fz=xai[GXc">
<mutation items="5"></mutation>
<field name="CONDITION">false</field>
<field name="ACK_CONDITION"></field>
<value name="OID0">
<shadow type="field_oid" id=".F?dZ;dv.BZ()|:0GY^q">
<field name="oid">sonoff.0.Steckdose-Mobil.POWER</field>
</shadow>
</value>
<value name="OID1">
<shadow type="field_oid" id="Qdk#ij-Q,rPb};/N^f.e">
<field name="oid">fritzdect.0.DECT200_087610400044.state</field>
</shadow>
</value>
<value name="OID2">
<shadow type="field_oid" id="CT3{lw,osLIf;M4|LU/N">
<field name="oid">sonoff.0.Kinderzimmer.POWER</field>
</shadow>
</value>
<value name="OID3">
<shadow type="field_oid" id="OU.z8VxxIS9H_rWasuzk">
<field name="oid">sonoff.0.Highboard-Long.POWER</field>
</shadow>
</value>
<value name="OID4">
<shadow type="field_oid" id="Ap})bEK!SOr@ujgue-wQ">
<field name="oid">sonoff.0.Highboard-Small.POWER</field>
</shadow>
</value>
<statement name="STATEMENT">
<block type="update" id="uC=JsF%C|nOzHL}`+-13">
<mutation delay_input="false"></mutation>
<field name="OID">javascript.0.Einstellungen.Alles_Aus</field>
<field name="WITH_DELAY">FALSE</field>
<value name="VALUE">
<block type="logic_boolean" id="m#pndgrYQdI50Q2-%EC~">
<field name="BOOL">FALSE</field>
</block>
</value>
</block>
</statement>
<next>
<block type="on" id="ge@b#Ei/![opx5ER]-`v">
<field name="OID">javascript.0.Einstellungen.Alles_Aus</field>
<field name="CONDITION">ne</field>
<field name="ACK_CONDITION">false</field>
<statement name="STATEMENT">
<block type="controls_if" id="W3sT0;3HD8#5)T5=E*??">
<mutation else="1"></mutation>
<value name="IF0">
<block type="logic_compare" id=".7rEH%L=7;RdhkylJUzP">
<field name="OP">EQ</field>
<value name="A">
<block type="get_value" id="|.=N!SQq]kucE4E+WF=!">
<field name="ATTR">val</field>
<field name="OID">javascript.0.Einstellungen.Alles_Aus</field>
</block>
</value>
<value name="B">
<block type="logic_boolean" id="InLS-?r/K7P=Hpf9z+/g">
<field name="BOOL">FALSE</field>
</block>
</value>
</block>
</value>
<statement name="DO0">
<block type="control" id="1^l(.WN(YeJar(x_3~@t">
<mutation delay_input="false"></mutation>
<field name="OID">sonoff.0.Steckdose-Mobil.POWER</field>
<field name="WITH_DELAY">FALSE</field>
<value name="VALUE">
<block type="logic_boolean" id="7ACK{.wa[fcub7rt_UcR">
<field name="BOOL">FALSE</field>
</block>
</value>
<next>
<block type="control" id="tvWGD:W+gkEK6:}5q:1h">
<mutation delay_input="false"></mutation>
<field name="OID">fritzdect.0.DECT200_087610400044.state</field>
<field name="WITH_DELAY">FALSE</field>
<value name="VALUE">
<block type="logic_boolean" id="@-%|WDbqr5X[hB9uMqc9">
<field name="BOOL">FALSE</field>
</block>
</value>
<next>
<block type="control" id="GFL]9TwWDa(MNH{yJ#v(">
<mutation delay_input="false"></mutation>
<field name="OID">sonoff.0.Kinderzimmer.POWER</field>
<field name="WITH_DELAY">FALSE</field>
<value name="VALUE">
<block type="logic_boolean" id="B{-]NqMpX4`jtd~{)sSS">
<field name="BOOL">FALSE</field>
</block>
</value>
<next>
<block type="control" id="6RmD?EjnBoOTnXCG.c.R">
<mutation delay_input="false"></mutation>
<field name="OID">sonoff.0.Highboard-Long.POWER</field>
<field name="WITH_DELAY">FALSE</field>
<value name="VALUE">
<block type="logic_boolean" id="09}.y9I~)7l^aSEaAdQZ">
<field name="BOOL">FALSE</field>
</block>
</value>
<next>
<block type="control" id="bk)baU}V64#.76b5*f{A">
<mutation delay_input="false"></mutation>
<field name="OID">sonoff.0.Highboard-Small.POWER</field>
<field name="WITH_DELAY">FALSE</field>
<value name="VALUE">
<block type="logic_boolean" id="KUiT=(++J{Ibu^Z*LTjR">
<field name="BOOL">FALSE</field>
</block>
</value>
<next>
<block type="debug" id="_!0Jz:Mk]=V~k9%yQ`Ws">
<field name="Severity">log</field>
<value name="TEXT">
<shadow type="text" id="#K3)XwK_4!m#MHSq2MOZ">
<field name="TEXT">Alles Aus- Schaltung</field>
</shadow>
</value>
</block>
</next>
</block>
</next>
</block>
</next>
</block>
</next>
</block>
</next>
</block>
</statement>
<statement name="ELSE">
<block type="update" id="36|gK3/BDA;h,tIq}BRW">
<mutation delay_input="false"></mutation>
<field name="OID">javascript.0.Einstellungen.Alles_Aus</field>
<field name="WITH_DELAY">FALSE</field>
<value name="VALUE">
<block type="logic_boolean" id="Wo`]7p5:4,Fp_1;[yIk%">
<field name="BOOL">FALSE</field>
</block>
</value>
</block>
</statement>
</block>
</statement>
</block>
</next>
</block>
</next>
</block>
</xml>
Alles anzeigen