NEWS
Garagentor Anzeige mit Shelly1 Addon in Jarvis
-
Hallo
ich würde gerne meine beiden Garagentore in jarvis visualisieren und schalten.
schalten über den Shelly 1 ist kein problem.
dieser löst für 2 sekunden aus und schaltet das relais wieder ab.doch wie schaffe ich das aufgrund des add on switch das icon sich von geschlossen auf geöffnet stellt
danke
-
Hallo
ich würde gerne meine beiden Garagentore in jarvis visualisieren und schalten.
schalten über den Shelly 1 ist kein problem.
dieser löst für 2 sekunden aus und schaltet das relais wieder ab.doch wie schaffe ich das aufgrund des add on switch das icon sich von geschlossen auf geöffnet stellt
danke
-
@boskap Gibt es in einem DP vom Shelly den Zustand geöffnet / geschlossen? Zeig mal bitte die DPs vom Shelly.
@mcu
ja gibt es
in den fall den ext1 kontakt des addon, darauf hängt ein Magnetkontakt der die Stellung des Garagentors anzeigt
in dem fall zeigt es auch unter dem schalter geschlossen oder offen an
aber ich würde gerne das icon am anfang ändern
und hier der Shelly

Danke
-
@mcu
ja gibt es
in den fall den ext1 kontakt des addon, darauf hängt ein Magnetkontakt der die Stellung des Garagentors anzeigt
in dem fall zeigt es auch unter dem schalter geschlossen oder offen an
aber ich würde gerne das icon am anfang ändern
und hier der Shelly

Danke
-
Hallo
ich würde gerne meine beiden Garagentore in jarvis visualisieren und schalten.
schalten über den Shelly 1 ist kein problem.
dieser löst für 2 sekunden aus und schaltet das relais wieder ab.doch wie schaffe ich das aufgrund des add on switch das icon sich von geschlossen auf geöffnet stellt
danke
@boskap Benutze zwar den sonoff SV für mein Rolltor dafür, in der VIS zeigt er an Bilder für geöffnet, zu, läuft und wenn keine Wlan Verbindung da ist, und der Taster dafür, vielleicht hilft dir ja der Widget Export. und das Blockly Script.
Abends geht zusätzlich noch das Hoflicht an, das kannst ja deaktivieren.
Vielleicht hilft es Dir ja als Beispiel.

[{"tpl":"i-vis-image-new","data":{"g_fixed":false,"g_visibility":false,"g_css_font_text":false,"g_css_background":true,"g_css_shadow_padding":false,"g_css_border":false,"g_gestures":false,"g_signals":false,"g_last_change":false,"visibility-cond":"==","visibility-val":1,"visibility-groups-action":"hide","iCornerRadiusUL":"0","iCornerRadiusUR":"0","iCornerRadiusLR":"0","iCornerRadiusLL":"0","iImgRotation":"0","iOpacityCtn":"1","iImgBlinkFalse":"0","iImgBlinkTrue":"0","iImgColorFalse":"","iImgColorTrue":"","iImgScaleType":"Normal","iImgTileSize":"","iShadowSpread":"0","iShadowSpreadInner":"0","iShadowBlur":"0","iShadowColor":"#111111","iShadowColorActive":"#111111","signals-cond-0":"==","signals-val-0":true,"signals-icon-0":"/vis/signals/lowbattery.png","signals-icon-size-0":0,"signals-blink-0":false,"signals-horz-0":0,"signals-vert-0":0,"signals-hide-edit-0":false,"signals-cond-1":"==","signals-val-1":true,"signals-icon-1":"/vis/signals/lowbattery.png","signals-icon-size-1":0,"signals-blink-1":false,"signals-horz-1":0,"signals-vert-1":0,"signals-hide-edit-1":false,"signals-cond-2":"==","signals-val-2":true,"signals-icon-2":"/vis/signals/lowbattery.png","signals-icon-size-2":0,"signals-blink-2":false,"signals-horz-2":0,"signals-vert-2":0,"signals-hide-edit-2":false,"lc-type":"last-change","lc-is-interval":true,"lc-is-moment":false,"lc-format":"","lc-position-vert":"top","lc-position-horz":"right","lc-offset-vert":0,"lc-offset-horz":0,"lc-font-size":"12px","lc-font-family":"","lc-font-style":"","lc-bkg-color":"","lc-color":"","lc-border-width":"0","lc-border-style":"","lc-border-color":"","lc-border-radius":10,"lc-zindex":0,"oid":"0_userdata.0.Datenpunkte.lk.rolltor.esrollt","iImageFalse":"","iImageTrue":"/vis.0/main/gear-icon-md.png","iValue":"ON","iPointerEvents":true},"style":{"left":"21px","top":"348px","z-index":"3","width":"100px","height":"100px"},"widgetSet":"vis-inventwo"},{"tpl":"i-vis-image-new","data":{"g_fixed":false,"g_visibility":true,"g_css_font_text":false,"g_css_background":true,"g_css_shadow_padding":false,"g_css_border":false,"g_gestures":false,"g_signals":true,"g_last_change":false,"visibility-cond":"==","visibility-val":1,"visibility-groups-action":"hide","iCornerRadiusUL":"0","iCornerRadiusUR":"0","iCornerRadiusLR":"0","iCornerRadiusLL":"0","iImgRotation":"0","iOpacityCtn":"1","iImgBlinkFalse":"0","iImgBlinkTrue":"0","iImgColorFalse":"","iImgColorTrue":"","iImgScaleType":"Normal","iImgTileSize":"","iShadowSpread":"0","iShadowSpreadInner":"0","iShadowBlur":"0","iShadowColor":"#111111","iShadowColorActive":"#111111","signals-cond-0":"consist","signals-val-0":"Offline","signals-icon-0":"/vis.0/main/wifiColorRed.png","signals-icon-size-0":"87","signals-blink-0":false,"signals-horz-0":0,"signals-vert-0":0,"signals-hide-edit-0":false,"signals-cond-1":"==","signals-val-1":true,"signals-icon-1":"/vis/signals/lowbattery.png","signals-icon-size-1":0,"signals-blink-1":false,"signals-horz-1":0,"signals-vert-1":0,"signals-hide-edit-1":false,"signals-cond-2":"==","signals-val-2":true,"signals-icon-2":"/vis/signals/lowbattery.png","signals-icon-size-2":0,"signals-blink-2":false,"signals-horz-2":0,"signals-vert-2":0,"signals-hide-edit-2":false,"lc-type":"last-change","lc-is-interval":true,"lc-is-moment":false,"lc-format":"","lc-position-vert":"top","lc-position-horz":"right","lc-offset-vert":0,"lc-offset-horz":0,"lc-font-size":"12px","lc-font-family":"","lc-font-style":"","lc-bkg-color":"","lc-color":"","lc-border-width":"0","lc-border-style":"","lc-border-color":"","lc-border-radius":10,"lc-zindex":0,"oid":"mqtt.0.Rolltor.stat.POWER3","iImageFalse":"","iImageTrue":"/vis.0/main/garage-door-opened.png","iValue":"ON","signals-oid-0":"mqtt.0.Rolltor.tele.LWT","iPointerEvents":true},"style":{"left":"20px","top":"347px","z-index":"7","width":"100px","height":"100px"},"widgetSet":"vis-inventwo"},{"tpl":"i-vis-image-new","data":{"g_fixed":false,"g_visibility":false,"g_css_font_text":false,"g_css_background":true,"g_css_shadow_padding":false,"g_css_border":false,"g_gestures":false,"g_signals":false,"g_last_change":false,"visibility-cond":"==","visibility-val":1,"visibility-groups-action":"hide","iCornerRadiusUL":"0","iCornerRadiusUR":"0","iCornerRadiusLR":"0","iCornerRadiusLL":"0","iImgRotation":"0","iOpacityCtn":"1","iImgBlinkFalse":"0","iImgBlinkTrue":"0","iImgColorFalse":"","iImgColorTrue":"","iImgScaleType":"Normal","iImgTileSize":"","iShadowSpread":"0","iShadowSpreadInner":"0","iShadowBlur":"0","iShadowColor":"#111111","iShadowColorActive":"#111111","signals-cond-0":"==","signals-val-0":true,"signals-icon-0":"/vis/signals/lowbattery.png","signals-icon-size-0":0,"signals-blink-0":false,"signals-horz-0":0,"signals-vert-0":0,"signals-hide-edit-0":false,"signals-cond-1":"==","signals-val-1":true,"signals-icon-1":"/vis/signals/lowbattery.png","signals-icon-size-1":0,"signals-blink-1":false,"signals-horz-1":0,"signals-vert-1":0,"signals-hide-edit-1":false,"signals-cond-2":"==","signals-val-2":true,"signals-icon-2":"/vis/signals/lowbattery.png","signals-icon-size-2":0,"signals-blink-2":false,"signals-horz-2":0,"signals-vert-2":0,"signals-hide-edit-2":false,"lc-type":"last-change","lc-is-interval":true,"lc-is-moment":false,"lc-format":"","lc-position-vert":"top","lc-position-horz":"right","lc-offset-vert":0,"lc-offset-horz":0,"lc-font-size":"12px","lc-font-family":"","lc-font-style":"","lc-bkg-color":"","lc-color":"","lc-border-width":"0","lc-border-style":"","lc-border-color":"","lc-border-radius":10,"lc-zindex":0,"oid":"mqtt.0.Rolltor.stat.POWER2","iImageFalse":"","iImageTrue":"/vis.0/main/garage-door-closed.png","iValue":"ON","iPointerEvents":true},"style":{"left":"20px","top":"353px","z-index":"5","width":"100px","height":"100px"},"widgetSet":"vis-inventwo"},{"tpl":"tplHqButton","data":{"g_fixed":false,"g_visibility":false,"g_css_font_text":true,"g_css_background":true,"g_css_shadow_padding":false,"g_css_border":false,"g_gestures":false,"g_signals":false,"g_last_change":true,"visibility-cond":"==","visibility-val":1,"visibility-groups-action":"hide","oid":"0_userdata.0.Datenpunkte.lk.rolltor.POWER","min":"0","max":"1","iconName":"img/bulb_off.png","btIconWidth":"56","offsetAuto":"true","leftOffset":"15","topOffset":"55","timeAsInterval":"true","infoLeftFontSize":"12","infoFontRightSize":"12","infoLeftPaddingLeft":"15","infoLeftPaddingRight":"50","infoRightPaddingRight":"15","signals-cond-0":"==","signals-val-0":true,"signals-icon-0":"/vis/signals/lowbattery.png","signals-icon-size-0":0,"signals-blink-0":false,"signals-horz-0":0,"signals-vert-0":0,"signals-hide-edit-0":false,"signals-cond-1":"==","signals-val-1":true,"signals-icon-1":"/vis/signals/lowbattery.png","signals-icon-size-1":0,"signals-blink-1":false,"signals-horz-1":0,"signals-vert-1":0,"signals-hide-edit-1":false,"signals-cond-2":"==","signals-val-2":true,"signals-icon-2":"/vis/signals/lowbattery.png","signals-icon-size-2":0,"signals-blink-2":false,"signals-horz-2":0,"signals-vert-2":0,"signals-hide-edit-2":false,"lc-type":"last-change","lc-is-interval":true,"lc-is-moment":true,"lc-format":"","lc-position-vert":"top","lc-position-horz":"right","lc-offset-vert":0,"lc-offset-horz":0,"lc-font-size":"12px","lc-font-family":"","lc-font-style":"","lc-bkg-color":"#efdcdc","lc-color":"","lc-border-width":"0","lc-border-style":"","lc-border-color":"","lc-border-radius":10,"lc-zindex":0,"descriptionLeft":"An (=true) oder AUS (=false)","pushButton":true,"descriptionLeftDisabled":true,"lc-oid":"0_userdata.0.Datenpunkte.lk.rolltor.esrollt","oid-working":"0_userdata.0.Datenpunkte.lk.rolltor.POWER","styleActive":"hq-button-base-outtemp"},"style":{"left":"129px","top":"371px","z-index":"30","opacity":""},"widgetSet":"hqwidgets"}]<xml xmlns="https://developers.google.com/blockly/xml"> <variables> <variable type="timeout" id="timeout">timeout</variable> </variables> <block type="on_ext" id="ZJqDfv#s}dDHN8[BGJ8(" x="-237" y="-987"> <mutation xmlns="http://www.w3.org/1999/xhtml" items="2"></mutation> <field name="CONDITION">ne</field> <field name="ACK_CONDITION"></field> <value name="OID0"> <shadow type="field_oid" id="@#B-T]Wsdd5S/rD1c|[k"> <field name="oid">mqtt.0.Rolltor.stat.POWER2</field> </shadow> </value> <value name="OID1"> <shadow type="field_oid" id="/APwrn2[`$_VSpb;//mP"> <field name="oid">mqtt.0.Rolltor.stat.POWER3</field> </shadow> </value> <statement name="STATEMENT"> <block type="controls_if" id="w~:gx4!t5Lj*U1QE(1$B"> <mutation else="1"></mutation> <value name="IF0"> <block type="logic_operation" id="$+_FB$iT/f(4~@-W/PwY"> <field name="OP">AND</field> <value name="A"> <block type="logic_compare" id=")h]ZV3tlC%J0yn1~GmNL"> <field name="OP">EQ</field> <value name="A"> <block type="get_value" id="ovD2{U-T4iN://tv~)NS"> <field name="ATTR">val</field> <field name="OID">mqtt.0.Rolltor.stat.POWER2</field> </block> </value> <value name="B"> <block type="text" id="V-5uXOaqc1%*UhjB$_]k"> <field name="TEXT">OFF</field> </block> </value> </block> </value> <value name="B"> <block type="logic_compare" id="a/6SH*3M-.3h[6k,QQ?2"> <field name="OP">EQ</field> <value name="A"> <block type="get_value" id="eGfUY/r;tAJ3E@3F5^-q"> <field name="ATTR">val</field> <field name="OID">mqtt.0.Rolltor.stat.POWER3</field> </block> </value> <value name="B"> <block type="text" id="gblH883.R2Q*.z5Xbgql"> <field name="TEXT">OFF</field> </block> </value> </block> </value> </block> </value> <statement name="DO0"> <block type="update" id="zS!||T!+!p!Ix!Ps/(0:"> <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="true"></mutation> <field name="OID">0_userdata.0.Datenpunkte.lk.rolltor.esrollt</field> <field name="WITH_DELAY">TRUE</field> <field name="DELAY_MS">50</field> <field name="UNIT">ms</field> <field name="CLEAR_RUNNING">FALSE</field> <value name="VALUE"> <block type="text" id="BTv.WUKog~rAM22FL~pv"> <field name="TEXT">ON</field> </block> </value> <next> <block type="controls_if" id="PcKXh~(im*qgZ305OmAc"> <value name="IF0"> <block type="time_compare_ex" id="$o@o_4^A?U+@Oorp:O0Z" inline="false"> <mutation xmlns="http://www.w3.org/1999/xhtml" end_time="true" actual_time="true"></mutation> <field name="USE_ACTUAL_TIME">TRUE</field> <field name="OPTION">not between</field> <value name="START_TIME"> <shadow type="text" id="`=Yb{P+sx*n*7OUxUEuu"> <field name="TEXT">12:00</field> </shadow> <block type="time_astro" id="TDI9rMjr:e}4H8Z,t6OY"> <field name="TYPE">sunrise</field> <field name="OFFSET">-30</field> </block> </value> <value name="END_TIME"> <shadow type="text" id="!Ql/o6ow*dfx+XyN+OQ}"> <field name="TEXT">18:00</field> </shadow> <block type="time_astro" id="aZ6rs45J{6CbluIeHHFV"> <field name="TYPE">sunset</field> <field name="OFFSET">30</field> </block> </value> </block> </value> <statement name="DO0"> <block type="controls_if" id="Ql%dwTU,1niSyhrfd8]{"> <mutation else="1"></mutation> <value name="IF0"> <block type="on_source" id="pW0rT0*bF8+.x)smeVuI"> <field name="ATTR">state.val</field> </block> </value> <statement name="DO0"> <block type="comment" id=")g~$88uk(w6V8f8|g(+o"> <field name="COMMENT">Der "stop timeout" sorgt dafür, dass wenn innerhalb der 2 Minuten Ausschaltverzögerung wieder Bewegung erkannt wird, das Ausschalten verhindert wird, damit man nicht plötzlich im Dunkeln steht.</field> <next> <block type="timeouts_cleartimeout" id="}3;J9t_!N~hFWKr|tyuo"> <field name="NAME">timeout</field> <next> <block type="control" id="u|g{!8H5m4~2*}LL=l3m"> <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation> <field name="OID">sonoff.0.Tora.POWER</field> <field name="WITH_DELAY">FALSE</field> <value name="VALUE"> <block type="logic_boolean" id="_u%ai!KxK9AVP]W:A)E)"> <field name="BOOL">TRUE</field> </block> </value> </block> </next> </block> </next> </block> </statement> <statement name="ELSE"> <block type="timeouts_settimeout" id="6wo@1cImD4uK:v7ToYuA"> <field name="NAME">timeout</field> <field name="DELAY">300</field> <field name="UNIT">sec</field> <statement name="STATEMENT"> <block type="control" id="h.i*ziw=]S7-?0B+bims"> <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation> <field name="OID">sonoff.0.Tora.POWER</field> <field name="WITH_DELAY">FALSE</field> <value name="VALUE"> <block type="logic_boolean" id="EI{ig(L}$+6cgpCQ(Jm("> <field name="BOOL">FALSE</field> </block> </value> </block> </statement> </block> </statement> </block> </statement> </block> </next> </block> </statement> <statement name="ELSE"> <block type="update" id="2KqTCx:Sg;5DMJAL3?3N"> <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="true"></mutation> <field name="OID">0_userdata.0.Datenpunkte.lk.rolltor.esrollt</field> <field name="WITH_DELAY">TRUE</field> <field name="DELAY_MS">50</field> <field name="UNIT">ms</field> <field name="CLEAR_RUNNING">FALSE</field> <value name="VALUE"> <block type="text" id="`b0a)aUUsRxP^r2e)#bC"> <field name="TEXT">OFF</field> </block> </value> </block> </statement> </block> </statement> </block> </xml> -
@boskap Benutze zwar den sonoff SV für mein Rolltor dafür, in der VIS zeigt er an Bilder für geöffnet, zu, läuft und wenn keine Wlan Verbindung da ist, und der Taster dafür, vielleicht hilft dir ja der Widget Export. und das Blockly Script.
Abends geht zusätzlich noch das Hoflicht an, das kannst ja deaktivieren.
Vielleicht hilft es Dir ja als Beispiel.

[{"tpl":"i-vis-image-new","data":{"g_fixed":false,"g_visibility":false,"g_css_font_text":false,"g_css_background":true,"g_css_shadow_padding":false,"g_css_border":false,"g_gestures":false,"g_signals":false,"g_last_change":false,"visibility-cond":"==","visibility-val":1,"visibility-groups-action":"hide","iCornerRadiusUL":"0","iCornerRadiusUR":"0","iCornerRadiusLR":"0","iCornerRadiusLL":"0","iImgRotation":"0","iOpacityCtn":"1","iImgBlinkFalse":"0","iImgBlinkTrue":"0","iImgColorFalse":"","iImgColorTrue":"","iImgScaleType":"Normal","iImgTileSize":"","iShadowSpread":"0","iShadowSpreadInner":"0","iShadowBlur":"0","iShadowColor":"#111111","iShadowColorActive":"#111111","signals-cond-0":"==","signals-val-0":true,"signals-icon-0":"/vis/signals/lowbattery.png","signals-icon-size-0":0,"signals-blink-0":false,"signals-horz-0":0,"signals-vert-0":0,"signals-hide-edit-0":false,"signals-cond-1":"==","signals-val-1":true,"signals-icon-1":"/vis/signals/lowbattery.png","signals-icon-size-1":0,"signals-blink-1":false,"signals-horz-1":0,"signals-vert-1":0,"signals-hide-edit-1":false,"signals-cond-2":"==","signals-val-2":true,"signals-icon-2":"/vis/signals/lowbattery.png","signals-icon-size-2":0,"signals-blink-2":false,"signals-horz-2":0,"signals-vert-2":0,"signals-hide-edit-2":false,"lc-type":"last-change","lc-is-interval":true,"lc-is-moment":false,"lc-format":"","lc-position-vert":"top","lc-position-horz":"right","lc-offset-vert":0,"lc-offset-horz":0,"lc-font-size":"12px","lc-font-family":"","lc-font-style":"","lc-bkg-color":"","lc-color":"","lc-border-width":"0","lc-border-style":"","lc-border-color":"","lc-border-radius":10,"lc-zindex":0,"oid":"0_userdata.0.Datenpunkte.lk.rolltor.esrollt","iImageFalse":"","iImageTrue":"/vis.0/main/gear-icon-md.png","iValue":"ON","iPointerEvents":true},"style":{"left":"21px","top":"348px","z-index":"3","width":"100px","height":"100px"},"widgetSet":"vis-inventwo"},{"tpl":"i-vis-image-new","data":{"g_fixed":false,"g_visibility":true,"g_css_font_text":false,"g_css_background":true,"g_css_shadow_padding":false,"g_css_border":false,"g_gestures":false,"g_signals":true,"g_last_change":false,"visibility-cond":"==","visibility-val":1,"visibility-groups-action":"hide","iCornerRadiusUL":"0","iCornerRadiusUR":"0","iCornerRadiusLR":"0","iCornerRadiusLL":"0","iImgRotation":"0","iOpacityCtn":"1","iImgBlinkFalse":"0","iImgBlinkTrue":"0","iImgColorFalse":"","iImgColorTrue":"","iImgScaleType":"Normal","iImgTileSize":"","iShadowSpread":"0","iShadowSpreadInner":"0","iShadowBlur":"0","iShadowColor":"#111111","iShadowColorActive":"#111111","signals-cond-0":"consist","signals-val-0":"Offline","signals-icon-0":"/vis.0/main/wifiColorRed.png","signals-icon-size-0":"87","signals-blink-0":false,"signals-horz-0":0,"signals-vert-0":0,"signals-hide-edit-0":false,"signals-cond-1":"==","signals-val-1":true,"signals-icon-1":"/vis/signals/lowbattery.png","signals-icon-size-1":0,"signals-blink-1":false,"signals-horz-1":0,"signals-vert-1":0,"signals-hide-edit-1":false,"signals-cond-2":"==","signals-val-2":true,"signals-icon-2":"/vis/signals/lowbattery.png","signals-icon-size-2":0,"signals-blink-2":false,"signals-horz-2":0,"signals-vert-2":0,"signals-hide-edit-2":false,"lc-type":"last-change","lc-is-interval":true,"lc-is-moment":false,"lc-format":"","lc-position-vert":"top","lc-position-horz":"right","lc-offset-vert":0,"lc-offset-horz":0,"lc-font-size":"12px","lc-font-family":"","lc-font-style":"","lc-bkg-color":"","lc-color":"","lc-border-width":"0","lc-border-style":"","lc-border-color":"","lc-border-radius":10,"lc-zindex":0,"oid":"mqtt.0.Rolltor.stat.POWER3","iImageFalse":"","iImageTrue":"/vis.0/main/garage-door-opened.png","iValue":"ON","signals-oid-0":"mqtt.0.Rolltor.tele.LWT","iPointerEvents":true},"style":{"left":"20px","top":"347px","z-index":"7","width":"100px","height":"100px"},"widgetSet":"vis-inventwo"},{"tpl":"i-vis-image-new","data":{"g_fixed":false,"g_visibility":false,"g_css_font_text":false,"g_css_background":true,"g_css_shadow_padding":false,"g_css_border":false,"g_gestures":false,"g_signals":false,"g_last_change":false,"visibility-cond":"==","visibility-val":1,"visibility-groups-action":"hide","iCornerRadiusUL":"0","iCornerRadiusUR":"0","iCornerRadiusLR":"0","iCornerRadiusLL":"0","iImgRotation":"0","iOpacityCtn":"1","iImgBlinkFalse":"0","iImgBlinkTrue":"0","iImgColorFalse":"","iImgColorTrue":"","iImgScaleType":"Normal","iImgTileSize":"","iShadowSpread":"0","iShadowSpreadInner":"0","iShadowBlur":"0","iShadowColor":"#111111","iShadowColorActive":"#111111","signals-cond-0":"==","signals-val-0":true,"signals-icon-0":"/vis/signals/lowbattery.png","signals-icon-size-0":0,"signals-blink-0":false,"signals-horz-0":0,"signals-vert-0":0,"signals-hide-edit-0":false,"signals-cond-1":"==","signals-val-1":true,"signals-icon-1":"/vis/signals/lowbattery.png","signals-icon-size-1":0,"signals-blink-1":false,"signals-horz-1":0,"signals-vert-1":0,"signals-hide-edit-1":false,"signals-cond-2":"==","signals-val-2":true,"signals-icon-2":"/vis/signals/lowbattery.png","signals-icon-size-2":0,"signals-blink-2":false,"signals-horz-2":0,"signals-vert-2":0,"signals-hide-edit-2":false,"lc-type":"last-change","lc-is-interval":true,"lc-is-moment":false,"lc-format":"","lc-position-vert":"top","lc-position-horz":"right","lc-offset-vert":0,"lc-offset-horz":0,"lc-font-size":"12px","lc-font-family":"","lc-font-style":"","lc-bkg-color":"","lc-color":"","lc-border-width":"0","lc-border-style":"","lc-border-color":"","lc-border-radius":10,"lc-zindex":0,"oid":"mqtt.0.Rolltor.stat.POWER2","iImageFalse":"","iImageTrue":"/vis.0/main/garage-door-closed.png","iValue":"ON","iPointerEvents":true},"style":{"left":"20px","top":"353px","z-index":"5","width":"100px","height":"100px"},"widgetSet":"vis-inventwo"},{"tpl":"tplHqButton","data":{"g_fixed":false,"g_visibility":false,"g_css_font_text":true,"g_css_background":true,"g_css_shadow_padding":false,"g_css_border":false,"g_gestures":false,"g_signals":false,"g_last_change":true,"visibility-cond":"==","visibility-val":1,"visibility-groups-action":"hide","oid":"0_userdata.0.Datenpunkte.lk.rolltor.POWER","min":"0","max":"1","iconName":"img/bulb_off.png","btIconWidth":"56","offsetAuto":"true","leftOffset":"15","topOffset":"55","timeAsInterval":"true","infoLeftFontSize":"12","infoFontRightSize":"12","infoLeftPaddingLeft":"15","infoLeftPaddingRight":"50","infoRightPaddingRight":"15","signals-cond-0":"==","signals-val-0":true,"signals-icon-0":"/vis/signals/lowbattery.png","signals-icon-size-0":0,"signals-blink-0":false,"signals-horz-0":0,"signals-vert-0":0,"signals-hide-edit-0":false,"signals-cond-1":"==","signals-val-1":true,"signals-icon-1":"/vis/signals/lowbattery.png","signals-icon-size-1":0,"signals-blink-1":false,"signals-horz-1":0,"signals-vert-1":0,"signals-hide-edit-1":false,"signals-cond-2":"==","signals-val-2":true,"signals-icon-2":"/vis/signals/lowbattery.png","signals-icon-size-2":0,"signals-blink-2":false,"signals-horz-2":0,"signals-vert-2":0,"signals-hide-edit-2":false,"lc-type":"last-change","lc-is-interval":true,"lc-is-moment":true,"lc-format":"","lc-position-vert":"top","lc-position-horz":"right","lc-offset-vert":0,"lc-offset-horz":0,"lc-font-size":"12px","lc-font-family":"","lc-font-style":"","lc-bkg-color":"#efdcdc","lc-color":"","lc-border-width":"0","lc-border-style":"","lc-border-color":"","lc-border-radius":10,"lc-zindex":0,"descriptionLeft":"An (=true) oder AUS (=false)","pushButton":true,"descriptionLeftDisabled":true,"lc-oid":"0_userdata.0.Datenpunkte.lk.rolltor.esrollt","oid-working":"0_userdata.0.Datenpunkte.lk.rolltor.POWER","styleActive":"hq-button-base-outtemp"},"style":{"left":"129px","top":"371px","z-index":"30","opacity":""},"widgetSet":"hqwidgets"}]<xml xmlns="https://developers.google.com/blockly/xml"> <variables> <variable type="timeout" id="timeout">timeout</variable> </variables> <block type="on_ext" id="ZJqDfv#s}dDHN8[BGJ8(" x="-237" y="-987"> <mutation xmlns="http://www.w3.org/1999/xhtml" items="2"></mutation> <field name="CONDITION">ne</field> <field name="ACK_CONDITION"></field> <value name="OID0"> <shadow type="field_oid" id="@#B-T]Wsdd5S/rD1c|[k"> <field name="oid">mqtt.0.Rolltor.stat.POWER2</field> </shadow> </value> <value name="OID1"> <shadow type="field_oid" id="/APwrn2[`$_VSpb;//mP"> <field name="oid">mqtt.0.Rolltor.stat.POWER3</field> </shadow> </value> <statement name="STATEMENT"> <block type="controls_if" id="w~:gx4!t5Lj*U1QE(1$B"> <mutation else="1"></mutation> <value name="IF0"> <block type="logic_operation" id="$+_FB$iT/f(4~@-W/PwY"> <field name="OP">AND</field> <value name="A"> <block type="logic_compare" id=")h]ZV3tlC%J0yn1~GmNL"> <field name="OP">EQ</field> <value name="A"> <block type="get_value" id="ovD2{U-T4iN://tv~)NS"> <field name="ATTR">val</field> <field name="OID">mqtt.0.Rolltor.stat.POWER2</field> </block> </value> <value name="B"> <block type="text" id="V-5uXOaqc1%*UhjB$_]k"> <field name="TEXT">OFF</field> </block> </value> </block> </value> <value name="B"> <block type="logic_compare" id="a/6SH*3M-.3h[6k,QQ?2"> <field name="OP">EQ</field> <value name="A"> <block type="get_value" id="eGfUY/r;tAJ3E@3F5^-q"> <field name="ATTR">val</field> <field name="OID">mqtt.0.Rolltor.stat.POWER3</field> </block> </value> <value name="B"> <block type="text" id="gblH883.R2Q*.z5Xbgql"> <field name="TEXT">OFF</field> </block> </value> </block> </value> </block> </value> <statement name="DO0"> <block type="update" id="zS!||T!+!p!Ix!Ps/(0:"> <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="true"></mutation> <field name="OID">0_userdata.0.Datenpunkte.lk.rolltor.esrollt</field> <field name="WITH_DELAY">TRUE</field> <field name="DELAY_MS">50</field> <field name="UNIT">ms</field> <field name="CLEAR_RUNNING">FALSE</field> <value name="VALUE"> <block type="text" id="BTv.WUKog~rAM22FL~pv"> <field name="TEXT">ON</field> </block> </value> <next> <block type="controls_if" id="PcKXh~(im*qgZ305OmAc"> <value name="IF0"> <block type="time_compare_ex" id="$o@o_4^A?U+@Oorp:O0Z" inline="false"> <mutation xmlns="http://www.w3.org/1999/xhtml" end_time="true" actual_time="true"></mutation> <field name="USE_ACTUAL_TIME">TRUE</field> <field name="OPTION">not between</field> <value name="START_TIME"> <shadow type="text" id="`=Yb{P+sx*n*7OUxUEuu"> <field name="TEXT">12:00</field> </shadow> <block type="time_astro" id="TDI9rMjr:e}4H8Z,t6OY"> <field name="TYPE">sunrise</field> <field name="OFFSET">-30</field> </block> </value> <value name="END_TIME"> <shadow type="text" id="!Ql/o6ow*dfx+XyN+OQ}"> <field name="TEXT">18:00</field> </shadow> <block type="time_astro" id="aZ6rs45J{6CbluIeHHFV"> <field name="TYPE">sunset</field> <field name="OFFSET">30</field> </block> </value> </block> </value> <statement name="DO0"> <block type="controls_if" id="Ql%dwTU,1niSyhrfd8]{"> <mutation else="1"></mutation> <value name="IF0"> <block type="on_source" id="pW0rT0*bF8+.x)smeVuI"> <field name="ATTR">state.val</field> </block> </value> <statement name="DO0"> <block type="comment" id=")g~$88uk(w6V8f8|g(+o"> <field name="COMMENT">Der "stop timeout" sorgt dafür, dass wenn innerhalb der 2 Minuten Ausschaltverzögerung wieder Bewegung erkannt wird, das Ausschalten verhindert wird, damit man nicht plötzlich im Dunkeln steht.</field> <next> <block type="timeouts_cleartimeout" id="}3;J9t_!N~hFWKr|tyuo"> <field name="NAME">timeout</field> <next> <block type="control" id="u|g{!8H5m4~2*}LL=l3m"> <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation> <field name="OID">sonoff.0.Tora.POWER</field> <field name="WITH_DELAY">FALSE</field> <value name="VALUE"> <block type="logic_boolean" id="_u%ai!KxK9AVP]W:A)E)"> <field name="BOOL">TRUE</field> </block> </value> </block> </next> </block> </next> </block> </statement> <statement name="ELSE"> <block type="timeouts_settimeout" id="6wo@1cImD4uK:v7ToYuA"> <field name="NAME">timeout</field> <field name="DELAY">300</field> <field name="UNIT">sec</field> <statement name="STATEMENT"> <block type="control" id="h.i*ziw=]S7-?0B+bims"> <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation> <field name="OID">sonoff.0.Tora.POWER</field> <field name="WITH_DELAY">FALSE</field> <value name="VALUE"> <block type="logic_boolean" id="EI{ig(L}$+6cgpCQ(Jm("> <field name="BOOL">FALSE</field> </block> </value> </block> </statement> </block> </statement> </block> </statement> </block> </next> </block> </statement> <statement name="ELSE"> <block type="update" id="2KqTCx:Sg;5DMJAL3?3N"> <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="true"></mutation> <field name="OID">0_userdata.0.Datenpunkte.lk.rolltor.esrollt</field> <field name="WITH_DELAY">TRUE</field> <field name="DELAY_MS">50</field> <field name="UNIT">ms</field> <field name="CLEAR_RUNNING">FALSE</field> <value name="VALUE"> <block type="text" id="`b0a)aUUsRxP^r2e)#bC"> <field name="TEXT">OFF</field> </block> </value> </block> </statement> </block> </statement> </block> </xml> -
leider bin ich zu doof
habe jetzt folgendes eingefügt
{
"{shelly.1.SHSW-1#E8DB84D629F0#1.ext.switch1}=true": "mdi:garage-open-variant",
"{shelly.1.SHSW-1#E8DB84D629F0#1.ext.switch1}=false": "mdi:garage-variant"
}es wird mir aber immer das geschlossene angezeigt
-
leider bin ich zu doof
habe jetzt folgendes eingefügt
{
"{shelly.1.SHSW-1#E8DB84D629F0#1.ext.switch1}=true": "mdi:garage-open-variant",
"{shelly.1.SHSW-1#E8DB84D629F0#1.ext.switch1}=false": "mdi:garage-variant"
}es wird mir aber immer das geschlossene angezeigt