- ioBroker Community Home
- Deutsch
- Visualisierung
- Symbol Störung (mehrere WErte true und false)
NEWS
Symbol Störung (mehrere WErte true und false)
-
@liv-in-sky
Ich habe in meinen VIS ein Fenster "Störungen" hier sind Batterien, Kommunikationsstörungen usw. abgelegt. Ich möchte nun falls einer der gesamten Störungen auftritt das das Störungsbild blinkt als Hinweis das eine Störung vorhanden ist.
Mit dem Widget wäre es gut wenn es mehr als 3 Beindungen könntehier mal ein beispiel:
ich habe 3 dp in die funtions eingesetzt (wenn du eine function erzeugst, musst du die javascript instanz neustarten, sonst funktioniert es evtl. nicht)
jetzt läuft dieses blockly - beachte im bild auch das log (unten) - ich schalte die dp

hier der export de scriptes
<xml xmlns="https://developers.google.com/blockly/xml"> <variables> <variable id="qi)m]fCq7[@|lZoYJP1b">checker</variable> <variable id="6@|9zen[MWwBVhqW*PBV">i</variable> </variables> <block type="on_ext" id="vhdrw@4lOfx+GW@d*-J4" x="-1113" y="-212"> <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="4=ec2h]3`@I13ad/I~te"> <field name="oid">default</field> </shadow> <block type="selector" id="07p0W{[P*h5bz|2*[!:h"> <field name="TEXT">[state.id=*](functions=test)</field> </block> </value> <statement name="STATEMENT"> <block type="controls_if" id="h;llyG4iEhRCZP!tyNmd"> <mutation else="1"></mutation> <value name="IF0"> <block type="on_source" id="VI@hcd9CPwkI*`^:-fU}"> <field name="ATTR">state.val</field> </block> </value> <statement name="DO0"> <block type="debug" id="@;gLZ{+IEJ.iif.$HIi$"> <field name="Severity">log</field> <value name="TEXT"> <shadow type="text" id="8Nu$$^;CIE/K;SE1GQD)"> <field name="TEXT">test</field> </shadow> <block type="on_source" id="L`Picc+E=kJ7{LG^SQuS"> <field name="ATTR">id</field> </block> </value> <next> <block type="debug" id="%k)R8Ol3(wvk8xL2|k3e"> <field name="Severity">log</field> <value name="TEXT"> <shadow type="text" id="2%y^MYcs|nnz~n+F:AVr"> <field name="TEXT">eines ist war - alarm setzen</field> </shadow> </value> </block> </next> </block> </statement> <statement name="ELSE"> <block type="debug" id="^|eRQ?s/9nq/PD;te6gt"> <field name="Severity">log</field> <value name="TEXT"> <shadow type="text" id=")ciX[Xx-OA#a8]BzbGmS"> <field name="TEXT">test</field> </shadow> <block type="text_join" id="w;)#?xUmcFT6,C6R]8MH"> <mutation items="2"></mutation> <value name="ADD0"> <block type="on_source" id="v=V0!TVf?qK)^=skvx@L"> <field name="ATTR">id</field> </block> </value> <value name="ADD1"> <block type="text" id="OJ`q=e~a]#;Uu.%K3M%w"> <field name="TEXT"> --- ist wurde falsch aktiviert</field> </block> </value> </block> </value> <next> <block type="variables_set" id="C*o-%+W`Ap(~{!WchYo*"> <field name="VAR" id="qi)m]fCq7[@|lZoYJP1b">checker</field> <value name="VALUE"> <block type="logic_boolean" id="6mJ18w|FIkBCv#QLS6ZY"> <field name="BOOL">FALSE</field> </block> </value> <next> <block type="controls_forEach" id=":}H%cxefu8$OmROT]ad]"> <field name="VAR" id="6@|9zen[MWwBVhqW*PBV">i</field> <value name="LIST"> <block type="selector" id="FbNa^@F@wFfQDH;{uk~Y"> <field name="TEXT">[state.id=*](functions=test)</field> </block> </value> <statement name="DO"> <block type="controls_if" id="@?uYH|-UzOmQ(dNVU|;7"> <value name="IF0"> <block type="logic_compare" id="oHEvMBZi;TN_zD:19m8?"> <field name="OP">EQ</field> <value name="A"> <block type="get_value_var" id=".1]GkK4k4;HA5^hH[`?F"> <field name="ATTR">val</field> <value name="OID"> <shadow type="text" id="[5Mi%@(Dm!BAb,vAGdM_"> <field name="TEXT"></field> </shadow> <block type="variables_get" id="^,.8iwfQOS(N?gEsnjU."> <field name="VAR" id="6@|9zen[MWwBVhqW*PBV">i</field> </block> </value> </block> </value> <value name="B"> <block type="logic_boolean" id=")0}KlC(TI;L.Nrj]n1Y1"> <field name="BOOL">TRUE</field> </block> </value> </block> </value> <statement name="DO0"> <block type="variables_set" id="[-x6CNquf4I,kQ|r:)9["> <field name="VAR" id="qi)m]fCq7[@|lZoYJP1b">checker</field> <value name="VALUE"> <block type="logic_boolean" id="~z4a;dB=`pK{qO$;Fl12"> <field name="BOOL">TRUE</field> </block> </value> </block> </statement> </block> </statement> <next> <block type="controls_if" id="L3J1S|J=;oMLx9@@q%%X"> <mutation else="1"></mutation> <value name="IF0"> <block type="variables_get" id="Lk[Fo]pm~_lT)hkvk!.s"> <field name="VAR" id="qi)m]fCq7[@|lZoYJP1b">checker</field> </block> </value> <statement name="DO0"> <block type="debug" id="EiJ60fWx3wF]wq74zV3:"> <field name="Severity">log</field> <value name="TEXT"> <shadow type="text" id="],x5QMypLhe3aVUUCef%"> <field name="TEXT">es ist ein wahr dabei - alarm bleibt an</field> </shadow> </value> </block> </statement> <statement name="ELSE"> <block type="debug" id="wB,[bhAN,.R|gz0SwFB1"> <field name="Severity">log</field> <value name="TEXT"> <shadow type="text" id="n}So6}GWJ4y04ztwr7n5"> <field name="TEXT">es ist kein wahr dabei - alarm abschalten</field> </shadow> </value> </block> </statement> </block> </next> </block> </next> </block> </next> </block> </statement> </block> </statement> </block> <block type="comment" id="Fa){,}Me$;[+O0-G[:q~" x="-413" y="-88"> <field name="COMMENT">zeigt ob selectorfunktioniert</field> <next> <block type="comment" id="FWnj,g16d9Tbilr|?3H{"> <field name="COMMENT">zeigt die functions mitglieder</field> <next> <block type="debug" id="cvH-!I`$rmdW?ip,u5zY"> <field name="Severity">log</field> <value name="TEXT"> <shadow type="text" id="?]OpBD#w+*7/~_mC)Ccy"> <field name="TEXT">test</field> </shadow> <block type="selector" id="SxShx(bK(_O%]2EavQy@"> <field name="TEXT">[state.id=*](functions=test)</field> </block> </value> </block> </next> </block> </next> </block> </xml>im blockly muss danmn noch das steuern deines dp rein, der für da blinken verantwortlich ist - ist bei mir hier als debug drin
nach einem gelösten Thread wäre es sinnvoll dies in der Überschrift des ersten Posts einzutragen [gelöst]-... Bitte benutzt das Voting rechts unten im Beitrag wenn er euch geholfen hat. Forum-Tools: PicPick https://picpick.app/en/download/ und ScreenToGif https://www.screentogif.com/downloads.html
-
hier mal ein beispiel:
ich habe 3 dp in die funtions eingesetzt (wenn du eine function erzeugst, musst du die javascript instanz neustarten, sonst funktioniert es evtl. nicht)
jetzt läuft dieses blockly - beachte im bild auch das log (unten) - ich schalte die dp

hier der export de scriptes
<xml xmlns="https://developers.google.com/blockly/xml"> <variables> <variable id="qi)m]fCq7[@|lZoYJP1b">checker</variable> <variable id="6@|9zen[MWwBVhqW*PBV">i</variable> </variables> <block type="on_ext" id="vhdrw@4lOfx+GW@d*-J4" x="-1113" y="-212"> <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="4=ec2h]3`@I13ad/I~te"> <field name="oid">default</field> </shadow> <block type="selector" id="07p0W{[P*h5bz|2*[!:h"> <field name="TEXT">[state.id=*](functions=test)</field> </block> </value> <statement name="STATEMENT"> <block type="controls_if" id="h;llyG4iEhRCZP!tyNmd"> <mutation else="1"></mutation> <value name="IF0"> <block type="on_source" id="VI@hcd9CPwkI*`^:-fU}"> <field name="ATTR">state.val</field> </block> </value> <statement name="DO0"> <block type="debug" id="@;gLZ{+IEJ.iif.$HIi$"> <field name="Severity">log</field> <value name="TEXT"> <shadow type="text" id="8Nu$$^;CIE/K;SE1GQD)"> <field name="TEXT">test</field> </shadow> <block type="on_source" id="L`Picc+E=kJ7{LG^SQuS"> <field name="ATTR">id</field> </block> </value> <next> <block type="debug" id="%k)R8Ol3(wvk8xL2|k3e"> <field name="Severity">log</field> <value name="TEXT"> <shadow type="text" id="2%y^MYcs|nnz~n+F:AVr"> <field name="TEXT">eines ist war - alarm setzen</field> </shadow> </value> </block> </next> </block> </statement> <statement name="ELSE"> <block type="debug" id="^|eRQ?s/9nq/PD;te6gt"> <field name="Severity">log</field> <value name="TEXT"> <shadow type="text" id=")ciX[Xx-OA#a8]BzbGmS"> <field name="TEXT">test</field> </shadow> <block type="text_join" id="w;)#?xUmcFT6,C6R]8MH"> <mutation items="2"></mutation> <value name="ADD0"> <block type="on_source" id="v=V0!TVf?qK)^=skvx@L"> <field name="ATTR">id</field> </block> </value> <value name="ADD1"> <block type="text" id="OJ`q=e~a]#;Uu.%K3M%w"> <field name="TEXT"> --- ist wurde falsch aktiviert</field> </block> </value> </block> </value> <next> <block type="variables_set" id="C*o-%+W`Ap(~{!WchYo*"> <field name="VAR" id="qi)m]fCq7[@|lZoYJP1b">checker</field> <value name="VALUE"> <block type="logic_boolean" id="6mJ18w|FIkBCv#QLS6ZY"> <field name="BOOL">FALSE</field> </block> </value> <next> <block type="controls_forEach" id=":}H%cxefu8$OmROT]ad]"> <field name="VAR" id="6@|9zen[MWwBVhqW*PBV">i</field> <value name="LIST"> <block type="selector" id="FbNa^@F@wFfQDH;{uk~Y"> <field name="TEXT">[state.id=*](functions=test)</field> </block> </value> <statement name="DO"> <block type="controls_if" id="@?uYH|-UzOmQ(dNVU|;7"> <value name="IF0"> <block type="logic_compare" id="oHEvMBZi;TN_zD:19m8?"> <field name="OP">EQ</field> <value name="A"> <block type="get_value_var" id=".1]GkK4k4;HA5^hH[`?F"> <field name="ATTR">val</field> <value name="OID"> <shadow type="text" id="[5Mi%@(Dm!BAb,vAGdM_"> <field name="TEXT"></field> </shadow> <block type="variables_get" id="^,.8iwfQOS(N?gEsnjU."> <field name="VAR" id="6@|9zen[MWwBVhqW*PBV">i</field> </block> </value> </block> </value> <value name="B"> <block type="logic_boolean" id=")0}KlC(TI;L.Nrj]n1Y1"> <field name="BOOL">TRUE</field> </block> </value> </block> </value> <statement name="DO0"> <block type="variables_set" id="[-x6CNquf4I,kQ|r:)9["> <field name="VAR" id="qi)m]fCq7[@|lZoYJP1b">checker</field> <value name="VALUE"> <block type="logic_boolean" id="~z4a;dB=`pK{qO$;Fl12"> <field name="BOOL">TRUE</field> </block> </value> </block> </statement> </block> </statement> <next> <block type="controls_if" id="L3J1S|J=;oMLx9@@q%%X"> <mutation else="1"></mutation> <value name="IF0"> <block type="variables_get" id="Lk[Fo]pm~_lT)hkvk!.s"> <field name="VAR" id="qi)m]fCq7[@|lZoYJP1b">checker</field> </block> </value> <statement name="DO0"> <block type="debug" id="EiJ60fWx3wF]wq74zV3:"> <field name="Severity">log</field> <value name="TEXT"> <shadow type="text" id="],x5QMypLhe3aVUUCef%"> <field name="TEXT">es ist ein wahr dabei - alarm bleibt an</field> </shadow> </value> </block> </statement> <statement name="ELSE"> <block type="debug" id="wB,[bhAN,.R|gz0SwFB1"> <field name="Severity">log</field> <value name="TEXT"> <shadow type="text" id="n}So6}GWJ4y04ztwr7n5"> <field name="TEXT">es ist kein wahr dabei - alarm abschalten</field> </shadow> </value> </block> </statement> </block> </next> </block> </next> </block> </next> </block> </statement> </block> </statement> </block> <block type="comment" id="Fa){,}Me$;[+O0-G[:q~" x="-413" y="-88"> <field name="COMMENT">zeigt ob selectorfunktioniert</field> <next> <block type="comment" id="FWnj,g16d9Tbilr|?3H{"> <field name="COMMENT">zeigt die functions mitglieder</field> <next> <block type="debug" id="cvH-!I`$rmdW?ip,u5zY"> <field name="Severity">log</field> <value name="TEXT"> <shadow type="text" id="?]OpBD#w+*7/~_mC)Ccy"> <field name="TEXT">test</field> </shadow> <block type="selector" id="SxShx(bK(_O%]2EavQy@"> <field name="TEXT">[state.id=*](functions=test)</field> </block> </value> </block> </next> </block> </next> </block> </xml>im blockly muss danmn noch das steuern deines dp rein, der für da blinken verantwortlich ist - ist bei mir hier als debug drin
@liv-in-sky
Super danke für die Unterstützung