NEWS
Spannungsgeführte Gerätesteuerung
-
vieleicht reden wir ja aneinander vorbei.
ich möchte, daß das bei einer bestimmten unterspannung (hier 24,5V) die pumpe nicht sofort ausgeht, sondern erst nach einer voegewählten zeit.
mit diesem script geht sie aber gar nicht aus, trotz unterspannung.
-
vieleicht reden wir ja aneinander vorbei.
ich möchte, daß das bei einer bestimmten unterspannung (hier 24,5V) die pumpe nicht sofort ausgeht, sondern erst nach einer voegewählten zeit.
mit diesem script geht sie aber gar nicht aus, trotz unterspannung.
-
@medoc sagte: mit diesem script geht sie aber gar nicht aus, trotz unterspannung.
Poste bitte den erzeugten Javascript-Code ohne die letzte Zeile in Code tags.
<xml xmlns="https://developers.google.com/blockly/xml"> <variables> <variable id="QyU%NeehKu8B-(eUUWzJ">Spannung</variable> <variable id="#NjROm#D]q?~e5E)g.cx">Klopumpe</variable> <variable id="{;KYn9h|rc9~MuiJ,B1)">Ausschaltsperre</variable> <variable type="timeout" id="timeout">timeout</variable> </variables> <block type="comment" id="ssS0i7mkz[OJd.j+Zc[I" x="-463" y="113"> <field name="COMMENT">Wemos</field> <next> <block type="schedule" id="eeUAS=8PwkHaxCD(:R3Q"> <field name="SCHEDULE">*/15 * * * * *</field> <statement name="STATEMENT"> <block type="variables_set" id="p`zjoN.Y$dfrM3$_-TD="> <field name="VAR" id="QyU%NeehKu8B-(eUUWzJ">Spannung</field> <value name="VALUE"> <block type="math_arithmetic" id="@=c~HnpsOGPp%HE)??a,"> <field name="OP">MULTIPLY</field> <value name="A"> <shadow type="math_number" id="IpcqkKWeHfj+0kswZU,6"> <field name="NUM">1.035</field> </shadow> </value> <value name="B"> <shadow type="math_number" id="Ddgh17!!-mr3LzmX)5#$"> <field name="NUM">1</field> </shadow> <block type="get_value" id="/4#Mj^[%xux*kVeiQ@hn"> <field name="ATTR">val</field> <field name="OID">shelly.0.SHUNI-1#C45BBE6012E4#1.ADC.Power</field> </block> </value> </block> </value> <next> <block type="controls_if" id="}i[YhGk3Ej3WitGAFARb"> <mutation elseif="1"></mutation> <value name="IF0"> <block type="logic_operation" id="f06jj}?C=9lpu$aeNOw/"> <field name="OP">AND</field> <value name="A"> <block type="logic_compare" id="zcL)}uuX|`u4)W}/C2Mv"> <field name="OP">GTE</field> <value name="A"> <block type="variables_get" id="67R^j}I!!WdvCk)_nYKS"> <field name="VAR" id="QyU%NeehKu8B-(eUUWzJ">Spannung</field> </block> </value> <value name="B"> <block type="math_number" id="W{5|7zNIx*]`yO`Xx(9c"> <field name="NUM">26</field> </block> </value> </block> </value> <value name="B"> <block type="variables_get" id="QT`SNdX)B-s^j/CB.i_Q"> <field name="VAR" id="#NjROm#D]q?~e5E)g.cx">Klopumpe</field> </block> </value> </block> </value> <statement name="DO0"> <block type="variables_set" id="xUvP-(!Qw6fIB*1omyT+"> <field name="VAR" id="#NjROm#D]q?~e5E)g.cx">Klopumpe</field> <value name="VALUE"> <block type="logic_boolean" id="=mGpGGf14F)fn+kJFJBc"> <field name="BOOL">FALSE</field> </block> </value> <next> <block type="variables_set" id="2_XAmV8SZ_lso#XPZx+W"> <field name="VAR" id="{;KYn9h|rc9~MuiJ,B1)">Ausschaltsperre</field> <value name="VALUE"> <block type="logic_boolean" id="ro|;zB~nYTD~J3|]FE*v"> <field name="BOOL">TRUE</field> </block> </value> <next> <block type="timeouts_settimeout" id="u=qreL=vkd4iCaHC{9e7"> <field name="NAME">timeout</field> <field name="DELAY">1</field> <field name="UNIT">min</field> <statement name="STATEMENT"> <block type="variables_set" id="I0I$UU+ToIj/br)Zehze"> <field name="VAR" id="{;KYn9h|rc9~MuiJ,B1)">Ausschaltsperre</field> <value name="VALUE"> <block type="logic_boolean" id="ft]85^%!=:UC5!#-fxXV"> <field name="BOOL">FALSE</field> </block> </value> </block> </statement> </block> </next> </block> </next> </block> </statement> <value name="IF1"> <block type="logic_operation" id="Swy-NSk.!/O~PTmL|]G3"> <field name="OP">AND</field> <value name="A"> <block type="logic_compare" id="NZ/Om+d5]yf#JSw*+~8z"> <field name="OP">LTE</field> <value name="A"> <block type="variables_get" id="6a*~7GmR-:uhzLU_Y%M1"> <field name="VAR" id="QyU%NeehKu8B-(eUUWzJ">Spannung</field> </block> </value> <value name="B"> <block type="math_number" id="UY.gw+tm2z^]M=IPNE+D"> <field name="NUM">24.5</field> </block> </value> </block> </value> <value name="B"> <block type="logic_negate" id="1bMmw_^uX;w#[W`}M,Jd"> <value name="BOOL"> <block type="variables_get" id="D{w$z%$V=PPl+TN5Rx)k"> <field name="VAR" id="{;KYn9h|rc9~MuiJ,B1)">Ausschaltsperre</field> </block> </value> </block> </value> </block> </value> <statement name="DO1"> <block type="variables_set" id="71#sghGovQ5_TvJM/dY%"> <field name="VAR" id="#NjROm#D]q?~e5E)g.cx">Klopumpe</field> <value name="VALUE"> <block type="logic_boolean" id="2{HxH}qiWV#MT+@=]z97"> <field name="BOOL">TRUE</field> </block> </value> </block> </statement> <next> <block type="controls_if" id=",lL|hYeYfX@RMeP7FYEz"> <value name="IF0"> <block type="logic_compare" id=";5*a;c}6)M%[z1ib07P`"> <field name="OP">NEQ</field> <value name="A"> <block type="variables_get" id="I?LFXdfrJm^^0qd#!Lh@"> <field name="VAR" id="#NjROm#D]q?~e5E)g.cx">Klopumpe</field> </block> </value> <value name="B"> <block type="get_value" id="CwWf/DQ#*TI{Qp.@PZb@"> <field name="ATTR">val</field> <field name="OID">sonoff.0.DVES_53921A.POWER2</field> </block> </value> </block> </value> <statement name="DO0"> <block type="control" id="tqUink=@Ra`$k:17SfeI"> <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation> <field name="OID">sonoff.0.DVES_53921A.POWER2</field> <field name="WITH_DELAY">FALSE</field> <value name="VALUE"> <block type="variables_get" id="GV7*!p8_;=Q7b=rGWM*b"> <field name="VAR" id="#NjROm#D]q?~e5E)g.cx">Klopumpe</field> </block> </value> </block> </statement> </block> </next> </block> </next> </block> </statement> </block> </next> </block> -
<xml xmlns="https://developers.google.com/blockly/xml"> <variables> <variable id="QyU%NeehKu8B-(eUUWzJ">Spannung</variable> <variable id="#NjROm#D]q?~e5E)g.cx">Klopumpe</variable> <variable id="{;KYn9h|rc9~MuiJ,B1)">Ausschaltsperre</variable> <variable type="timeout" id="timeout">timeout</variable> </variables> <block type="comment" id="ssS0i7mkz[OJd.j+Zc[I" x="-463" y="113"> <field name="COMMENT">Wemos</field> <next> <block type="schedule" id="eeUAS=8PwkHaxCD(:R3Q"> <field name="SCHEDULE">*/15 * * * * *</field> <statement name="STATEMENT"> <block type="variables_set" id="p`zjoN.Y$dfrM3$_-TD="> <field name="VAR" id="QyU%NeehKu8B-(eUUWzJ">Spannung</field> <value name="VALUE"> <block type="math_arithmetic" id="@=c~HnpsOGPp%HE)??a,"> <field name="OP">MULTIPLY</field> <value name="A"> <shadow type="math_number" id="IpcqkKWeHfj+0kswZU,6"> <field name="NUM">1.035</field> </shadow> </value> <value name="B"> <shadow type="math_number" id="Ddgh17!!-mr3LzmX)5#$"> <field name="NUM">1</field> </shadow> <block type="get_value" id="/4#Mj^[%xux*kVeiQ@hn"> <field name="ATTR">val</field> <field name="OID">shelly.0.SHUNI-1#C45BBE6012E4#1.ADC.Power</field> </block> </value> </block> </value> <next> <block type="controls_if" id="}i[YhGk3Ej3WitGAFARb"> <mutation elseif="1"></mutation> <value name="IF0"> <block type="logic_operation" id="f06jj}?C=9lpu$aeNOw/"> <field name="OP">AND</field> <value name="A"> <block type="logic_compare" id="zcL)}uuX|`u4)W}/C2Mv"> <field name="OP">GTE</field> <value name="A"> <block type="variables_get" id="67R^j}I!!WdvCk)_nYKS"> <field name="VAR" id="QyU%NeehKu8B-(eUUWzJ">Spannung</field> </block> </value> <value name="B"> <block type="math_number" id="W{5|7zNIx*]`yO`Xx(9c"> <field name="NUM">26</field> </block> </value> </block> </value> <value name="B"> <block type="variables_get" id="QT`SNdX)B-s^j/CB.i_Q"> <field name="VAR" id="#NjROm#D]q?~e5E)g.cx">Klopumpe</field> </block> </value> </block> </value> <statement name="DO0"> <block type="variables_set" id="xUvP-(!Qw6fIB*1omyT+"> <field name="VAR" id="#NjROm#D]q?~e5E)g.cx">Klopumpe</field> <value name="VALUE"> <block type="logic_boolean" id="=mGpGGf14F)fn+kJFJBc"> <field name="BOOL">FALSE</field> </block> </value> <next> <block type="variables_set" id="2_XAmV8SZ_lso#XPZx+W"> <field name="VAR" id="{;KYn9h|rc9~MuiJ,B1)">Ausschaltsperre</field> <value name="VALUE"> <block type="logic_boolean" id="ro|;zB~nYTD~J3|]FE*v"> <field name="BOOL">TRUE</field> </block> </value> <next> <block type="timeouts_settimeout" id="u=qreL=vkd4iCaHC{9e7"> <field name="NAME">timeout</field> <field name="DELAY">1</field> <field name="UNIT">min</field> <statement name="STATEMENT"> <block type="variables_set" id="I0I$UU+ToIj/br)Zehze"> <field name="VAR" id="{;KYn9h|rc9~MuiJ,B1)">Ausschaltsperre</field> <value name="VALUE"> <block type="logic_boolean" id="ft]85^%!=:UC5!#-fxXV"> <field name="BOOL">FALSE</field> </block> </value> </block> </statement> </block> </next> </block> </next> </block> </statement> <value name="IF1"> <block type="logic_operation" id="Swy-NSk.!/O~PTmL|]G3"> <field name="OP">AND</field> <value name="A"> <block type="logic_compare" id="NZ/Om+d5]yf#JSw*+~8z"> <field name="OP">LTE</field> <value name="A"> <block type="variables_get" id="6a*~7GmR-:uhzLU_Y%M1"> <field name="VAR" id="QyU%NeehKu8B-(eUUWzJ">Spannung</field> </block> </value> <value name="B"> <block type="math_number" id="UY.gw+tm2z^]M=IPNE+D"> <field name="NUM">24.5</field> </block> </value> </block> </value> <value name="B"> <block type="logic_negate" id="1bMmw_^uX;w#[W`}M,Jd"> <value name="BOOL"> <block type="variables_get" id="D{w$z%$V=PPl+TN5Rx)k"> <field name="VAR" id="{;KYn9h|rc9~MuiJ,B1)">Ausschaltsperre</field> </block> </value> </block> </value> </block> </value> <statement name="DO1"> <block type="variables_set" id="71#sghGovQ5_TvJM/dY%"> <field name="VAR" id="#NjROm#D]q?~e5E)g.cx">Klopumpe</field> <value name="VALUE"> <block type="logic_boolean" id="2{HxH}qiWV#MT+@=]z97"> <field name="BOOL">TRUE</field> </block> </value> </block> </statement> <next> <block type="controls_if" id=",lL|hYeYfX@RMeP7FYEz"> <value name="IF0"> <block type="logic_compare" id=";5*a;c}6)M%[z1ib07P`"> <field name="OP">NEQ</field> <value name="A"> <block type="variables_get" id="I?LFXdfrJm^^0qd#!Lh@"> <field name="VAR" id="#NjROm#D]q?~e5E)g.cx">Klopumpe</field> </block> </value> <value name="B"> <block type="get_value" id="CwWf/DQ#*TI{Qp.@PZb@"> <field name="ATTR">val</field> <field name="OID">sonoff.0.DVES_53921A.POWER2</field> </block> </value> </block> </value> <statement name="DO0"> <block type="control" id="tqUink=@Ra`$k:17SfeI"> <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation> <field name="OID">sonoff.0.DVES_53921A.POWER2</field> <field name="WITH_DELAY">FALSE</field> <value name="VALUE"> <block type="variables_get" id="GV7*!p8_;=Q7b=rGWM*b"> <field name="VAR" id="#NjROm#D]q?~e5E)g.cx">Klopumpe</field> </block> </value> </block> </statement> </block> </next> </block> </next> </block> </statement> </block> </next> </block> -
-
@paul53
nach ettlichen litern wasser das klo runter hatte ich eine spontanidee. iobroker neu starten. und siehe, er tut es.
wo finde ich den debug-text? -
@medoc sagte: wo finde ich den debug-text?
Den "debug output" unter "System", "erstelle Text aus" unter "Text".
-
@medoc im log als loglevel info
-
@medoc sagte: wo finde ich den debug-text?
Den "debug output" unter "System", "erstelle Text aus" unter "Text".
-
@medoc sagte: soll ich nochmal spülen und dir den log dann schicken?
oder hat sich das erledigt?Wenn es jetzt funktioniert, hat es sich erledigt.
-
@medoc sagte: soll ich nochmal spülen und dir den log dann schicken?
oder hat sich das erledigt?Wenn es jetzt funktioniert, hat es sich erledigt.




