NEWS
[gelöst]Trockenlaufschutz, Problem mit Blockly
-
<xml xmlns="https://developers.google.com/blockly/xml"> <variables> <variable type="timeout" id="timeout">timeout</variable> <variable type="timeout" id="timeout3">timeout3</variable> <variable type="timeout" id="timeout2">timeout2</variable> </variables> <block type="on_ext" id="q-2pBvl6%n5S#abWP$s/" disabled="true" x="-412" y="-462"> <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="iWm~)rPccpnpWh2X$U!8"> <field name="oid">sonoff.0.Sonoff-POWR2-Hauswasserpumpe.ENERGY_Power</field> </shadow> </value> <statement name="STATEMENT"> <block type="controls_if" id="*u:Y?-)4@!`l4f]Mv^nP"> <value name="IF0"> <block type="logic_compare" id="VP9e)6J]zYn7/7fQo9/J"> <field name="OP">LTE</field> <value name="A"> <block type="on_source" id="7a*`arM=5Ulas9,HvJxA"> <field name="ATTR">state.val</field> </block> </value> <value name="B"> <block type="text" id="E+`CVo}+](X)+^n{ImEd"> <field name="TEXT">40</field> </block> </value> </block> </value> <statement name="DO0"> <block type="timeouts_cleartimeout" id="V!fe@mMn?^/.j2HWR*1L"> <field name="NAME">timeout</field> </block> </statement> <next> <block type="controls_if" id="UA})2Q/8,{VDo355I116"> <value name="IF0"> <block type="logic_compare" id="H)wpGiQ/+!`8]y2m^:yh"> <field name="OP">GTE</field> <value name="A"> <block type="on_source" id="WBhKao3;JRCl[NMAkixS"> <field name="ATTR">state.val</field> </block> </value> <value name="B"> <block type="text" id="K3?gQkN15DhcM5r]Ioi@"> <field name="TEXT">100</field> </block> </value> </block> </value> <statement name="DO0"> <block type="timeouts_settimeout" id="`!0nMKO~NS@s;6q;Q%?l"> <field name="NAME">timeout</field> <field name="DELAY">30</field> <field name="UNIT">min</field> <statement name="STATEMENT"> <block type="control" id="]Bk-sBrZB@ibgfZIvpr%"> <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation> <field name="OID">sonoff.0.Sonoff-POWR2-Hauswasserpumpe.POWER</field> <field name="WITH_DELAY">FALSE</field> <value name="VALUE"> <block type="logic_boolean" id="I(Ro$K$)^XNfZ,r%WhUO"> <field name="BOOL">FALSE</field> </block> </value> <next> <block type="email" id="nrf23U9Yfr*(k#{OltHa"> <field name="INSTANCE"></field> <field name="IS_HTML">FALSE</field> <field name="LOG">warn</field> <value name="TO"> <shadow type="text" id="LGB]yJ5pt)::Vuc{ONtF"> <field name="TEXT">nobtukpetploy@web.de</field> </shadow> </value> <value name="TEXT"> <shadow type="text" id="f*-:)PlYFmAIyrk|Z+P0"> <field name="TEXT">Die Hauswasserpumpe ist OFF, bitte Wasser auffüllen und wieder einschalten. Danke.</field> </shadow> </value> <value name="SUBJECT"> <shadow type="text" id="Qz]4x8.nF4@KH?n7Bkhw"> <field name="TEXT">Warnung Hauswasserpumpe</field> </shadow> </value> </block> </next> </block> </statement> </block> </statement> <next> <block type="debug" id="QMYtq(@P%Zl/UpGh+VOy"> <field name="Severity">log</field> <value name="TEXT"> <shadow type="text" id="[e_]XwfIyK%VQAOw9JTX"> <field name="TEXT">test</field> </shadow> <block type="text_join" id="-l@!yvf1+^N+0AIc|.p^"> <mutation items="2"></mutation> <value name="ADD0"> <block type="text" id="(p|^-:)CM*w;(ua-#0~C"> <field name="TEXT">Watt:</field> </block> </value> <value name="ADD1"> <block type="on_source" id="F4Q/0h$*.npgi2yJ,%{["> <field name="ATTR">state.val</field> </block> </value> </block> </value> </block> </next> </block> </next> </block> </statement> </block> <block type="math_number" id="gDW`KdlQb%.Ce{!86K;x" x="262" y="-387"> <field name="NUM">50</field> </block> <block type="math_number" id="?Q%hf#T}`?PA4?|LYvRU" x="287" y="-312"> <field name="NUM">100</field> </block> <block type="on_ext" id=")3Y6O)OSZ6,a.eId9_([" x="-412" y="213"> <mutation xmlns="http://www.w3.org/1999/xhtml" items="1"></mutation> <field name="CONDITION">ne</field> <field name="ACK_CONDITION"></field> <value name="OID0"> <shadow type="field_oid" id="FB}qA2j)SArn`ar=BQ8z"> <field name="oid">sonoff.0.Sonoff-POWR2-Hauswasserpumpe.ENERGY_Power</field> </shadow> </value> <statement name="STATEMENT"> <block type="controls_if" id="nT8{B{T^As}6|P1eFdAp"> <value name="IF0"> <block type="logic_compare" id="h=ll3)j0~lH*]vID@v{h"> <field name="OP">GTE</field> <value name="A"> <block type="get_value" id="prv]M@]WP)O8k`WxQv,M"> <field name="ATTR">val</field> <field name="OID">sonoff.0.Sonoff-POWR2-Hauswasserpumpe.ENERGY_Power</field> </block> </value> <value name="B"> <block type="math_number" id="QWMd~%R.#BvSN.-Jr7|S"> <field name="NUM">100</field> </block> </value> </block> </value> <statement name="DO0"> <block type="controls_if" id=";N~?jZO,:^+(B6c4+e.p"> <value name="IF0"> <block type="logic_compare" id="nLGp=iM$L~IydiZi8!Z?"> <field name="OP">LTE</field> <value name="A"> <block type="get_value" id="#X;Nd8faxS1r?ibN,9Ur"> <field name="ATTR">val</field> <field name="OID">sonoff.0.Sonoff-POWR2-Hauswasserpumpe.ENERGY_Power</field> </block> </value> <value name="B"> <block type="math_number" id="3L+Hx`ZZZ[6;bcStTgXv"> <field name="NUM">50</field> </block> </value> </block> </value> <statement name="DO0"> <block type="timeouts_cleartimeout" id="s_tu+G)JzfXKRo!,-i?j"> <field name="NAME">timeout3</field> </block> </statement> <next> <block type="timeouts_settimeout" id="|y|12`S1gi{?f|+:!d87"> <field name="NAME">timeout3</field> <field name="DELAY">30</field> <field name="UNIT">min</field> <statement name="STATEMENT"> <block type="control" id="]:Q/hgD*3Ye$XrhiCKVK"> <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation> <field name="OID">sonoff.0.Sonoff-POWR2-Hauswasserpumpe.POWER</field> <field name="WITH_DELAY">FALSE</field> <value name="VALUE"> <block type="logic_boolean" id="]qeVb0?p3y!^dSP8T!{!"> <field name="BOOL">FALSE</field> </block> </value> <next> <block type="email" id="$9UHB7f:5pH}KOb-MKc+"> <field name="INSTANCE"></field> <field name="IS_HTML">FALSE</field> <field name="LOG">warn</field> <value name="TO"> <shadow type="text" id="k[:)o{+Cw9TDavPP#q~0"> <field name="TEXT">nobtukpetploy@web.de</field> </shadow> </value> <value name="TEXT"> <shadow type="text" id="Jg,,Cl.tlM@syT9Y]D#}"> <field name="TEXT">Die Hauswasserpumpe ist OFF, bitte Wasser auffüllen und wieder einschalten. Danke.</field> </shadow> </value> <value name="SUBJECT"> <shadow type="text" id="qh:kGtW{TIeASi#IVI)A"> <field name="TEXT">Warnung Hauswasserpumpe</field> </shadow> </value> </block> </next> </block> </statement> </block> </next> </block> </statement> <next> <block type="debug" id="jv2kcn+O#/wer{(+o+DW"> <field name="Severity">log</field> <value name="TEXT"> <shadow type="text"> <field name="TEXT">test</field> </shadow> <block type="text_join" id="FXin0|uc^i=Wm;0R-Jtj"> <mutation items="2"></mutation> <value name="ADD0"> <block type="text" id="Z##h?{^2;N/L6AAv4~.."> <field name="TEXT">Watt:</field> </block> </value> <value name="ADD1"> <block type="on_source" id="t@LBx#Y!8Fv5({,pHM[,"> <field name="ATTR">state.val</field> </block> </value> </block> </value> </block> </next> </block> </statement> </block> <block type="on" id="oxhUH-RyPNmr.a,fC__1" disabled="true" x="-37" y="863"> <field name="OID">sonoff.0.Sonoff-POWR2-Hauswasserpumpe.ENERGY_Power</field> <field name="CONDITION">ne</field> <field name="ACK_CONDITION"></field> <statement name="STATEMENT"> <block type="controls_if" id="3GRR6%ye(/hgO28(b]EO"> <value name="IF0"> <block type="logic_compare" id="?R`IVDoVJ4yuKNq~v^/J"> <field name="OP">LTE</field> <value name="A"> <block type="on_source" id="-gME%kj1-KiYw.g301j!"> <field name="ATTR">state.val</field> </block> </value> <value name="B"> <block type="text" id="znQ4C7/;8Jroo*M)1QT,"> <field name="TEXT">50</field> </block> </value> </block> </value> <statement name="DO0"> <block type="timeouts_cleartimeout" id="3~jLu%Czt8OhrV9=@Wp`"> <field name="NAME">timeout2</field> </block> </statement> <next> <block type="controls_if" id="SQ$YSGNMJkiaCy9J|4~X"> <value name="IF0"> <block type="logic_compare" id=":]fSqM`[tiZY4)D5qUz`"> <field name="OP">GTE</field> <value name="A"> <block type="on_source" id="hdZ$E)elS9c-18U?%s7:"> <field name="ATTR">state.val</field> </block> </value> <value name="B"> <block type="text" id="??7)9|bdG5X@kSTuO]kA"> <field name="TEXT">100</field> </block> </value> </block> </value> <statement name="DO0"> <block type="timeouts_settimeout" id="z1NU*AXh?bxJI=ZQWF/R"> <field name="NAME">timeout2</field> <field name="DELAY">60</field> <field name="UNIT">min</field> <statement name="STATEMENT"> <block type="control" id="%pM}j2/2mt5hACT($/bo"> <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation> <field name="OID">sonoff.0.Sonoff-POWR2-Hauswasserpumpe.POWER</field> <field name="WITH_DELAY">FALSE</field> <value name="VALUE"> <block type="logic_boolean" id="Y0RLb-Aa+BOV$uMCp[YC"> <field name="BOOL">FALSE</field> </block> </value> <next> <block type="email" id="YiD/n[z_VBa:UBF^{1::"> <field name="INSTANCE"></field> <field name="IS_HTML">FALSE</field> <field name="LOG">warn</field> <value name="TO"> <shadow type="text" id="f1fd.qX_q5rG)Z@#qUn)"> <field name="TEXT">nobtukpetploy@web.de</field> </shadow> </value> <value name="TEXT"> <shadow type="text" id="/OzyS$JOBSpZ-hfUq8[{"> <field name="TEXT">Die Hauswasserpumpe ist OFF, bitte Wasser auffüllen und wieder einschalten. Danke.</field> </shadow> </value> <value name="SUBJECT"> <shadow type="text" id="xzEa[0h6Gc}K6or#Gb,q"> <field name="TEXT">Warnung Hauswasserpumpe</field> </shadow> </value> <next> <block type="debug" id="I1YpWvCvoTpWI5DpC%Lx"> <field name="Severity">log</field> <value name="TEXT"> <shadow type="text"> <field name="TEXT">test</field> </shadow> <block type="text_join" id="-SE=`^q9kO76.G)R)%WJ"> <mutation items="2"></mutation> <value name="ADD0"> <block type="text" id="g140IN00}r!gtJomXW5B"> <field name="TEXT">Watt:</field> </block> </value> <value name="ADD1"> <block type="on_source" id=";i{OtvxN_wRB;nvOwTMG"> <field name="ATTR">state.val</field> </block> </value> </block> </value> </block> </next> </block> </next> </block> </statement> </block> </statement> </block> </next> </block> </statement> </block> </xml>
-
@nole
Jetzt packst das noch schnell in Code Tag und Spoiler, dann bau ich das um -
@jan1 ???????????
Da mußt du mir jetzt aber sagen wie das geht. -
@jan1 Ich hatte da noch nicht aktive Bausteine auf der Seite.
<xml xmlns="https://developers.google.com/blockly/xml"> <variables> <variable type="timeout" id="timeout3">timeout3</variable> </variables> <block type="on_ext" id=")3Y6O)OSZ6,a.eId9_([" x="-412" y="213"> <mutation xmlns="http://www.w3.org/1999/xhtml" items="1"></mutation> <field name="CONDITION">ne</field> <field name="ACK_CONDITION"></field> <value name="OID0"> <shadow type="field_oid" id="FB}qA2j)SArnar=BQ8z"> <field name="oid">sonoff.0.Sonoff-POWR2-Hauswasserpumpe.ENERGY_Power</field> </shadow> </value> <statement name="STATEMENT"> <block type="controls_if" id="nT8{B{T^As}6|P1eFdAp"> <value name="IF0"> <block type="logic_compare" id="h=ll3)j0~lH*]vID@v{h"> <field name="OP">GTE</field> <value name="A"> <block type="get_value" id="prv]M@]WP)O8kWxQv,M"> <field name="ATTR">val</field> <field name="OID">sonoff.0.Sonoff-POWR2-Hauswasserpumpe.ENERGY_Power</field> </block> </value> <value name="B"> <block type="math_number" id="QWMd~%R.#BvSN.-Jr7|S"> <field name="NUM">100</field> </block> </value> </block> </value> <statement name="DO0"> <block type="controls_if" id=";N~?jZO,:^+(B6c4+e.p"> <value name="IF0"> <block type="logic_compare" id="nLGp=iM$L~IydiZi8!Z?"> <field name="OP">LTE</field> <value name="A"> <block type="get_value" id="#X;Nd8faxS1r?ibN,9Ur"> <field name="ATTR">val</field> <field name="OID">sonoff.0.Sonoff-POWR2-Hauswasserpumpe.ENERGY_Power</field> </block> </value> <value name="B"> <block type="math_number" id="3L+HxZZZ[6;bcStTgXv"> <field name="NUM">50</field> </block> </value> </block> </value> <statement name="DO0"> <block type="timeouts_cleartimeout" id="s_tu+G)JzfXKRo!,-i?j"> <field name="NAME">timeout3</field> </block> </statement> <next> <block type="timeouts_settimeout" id="|y|12S1gi{?f|+:!d87"> <field name="NAME">timeout3</field> <field name="DELAY">30</field> <field name="UNIT">min</field> <statement name="STATEMENT"> <block type="control" id="]:Q/hgD*3Ye$XrhiCKVK"> <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation> <field name="OID">sonoff.0.Sonoff-POWR2-Hauswasserpumpe.POWER</field> <field name="WITH_DELAY">FALSE</field> <value name="VALUE"> <block type="logic_boolean" id="]qeVb0?p3y!^dSP8T!{!"> <field name="BOOL">FALSE</field> </block> </value> <next> <block type="email" id="$9UHB7f:5pH}KOb-MKc+"> <field name="INSTANCE"></field> <field name="IS_HTML">FALSE</field> <field name="LOG">warn</field> <value name="TO"> <shadow type="text" id="k[:)o{+Cw9TDavPP#q~0"> <field name="TEXT">nobtukpetploy@web.de</field> </shadow> </value> <value name="TEXT"> <shadow type="text" id="Jg,,Cl.tlM@syT9Y]D#}"> <field name="TEXT">Die Hauswasserpumpe ist OFF, bitte Wasser auffüllen und wieder einschalten. Danke.</field> </shadow> </value> <value name="SUBJECT"> <shadow type="text" id="qh:kGtW{TIeASi#IVI)A"> <field name="TEXT">Warnung Hauswasserpumpe</field> </shadow> </value> </block> </next> </block> </statement> </block> </next> </block> </statement> <next> <block type="debug" id="jv2kcn+O#/wer{(+o+DW"> <field name="Severity">log</field> <value name="TEXT"> <shadow type="text"> <field name="TEXT">test</field> </shadow> <block type="text_join" id="FXin0|uc^i=Wm;0R-Jtj"> <mutation items="2"></mutation> <value name="ADD0"> <block type="text" id="Z##h?{^2;N/L6AAv4~.."> <field name="TEXT">Watt:</field> </block> </value> <value name="ADD1"> <block type="on_source" id="t@LBx#Y!8Fv5({,pHM[,"> <field name="ATTR">state.val</field> </block> </value> </block> </value> </block> </next> </block> </statement> </block> </xml>
-
@nole
Hast schon mal die Symbole über dem Editor gesehen wenn Du was postest? Da gibts nix zu erklären, weil das selbsterklärend ist und lösche den letzten Post, bevor ich keine Lust mehr habe mir den Finger wund zu scrollenEdit:
ich kenne übrigens kein Forum bei dem das nicht so gehandhabt wird und das hat nix mit Linux oder sonstigen zu tun -
-
@nole
Dann noch in Code Tags im Spoiler da ich das erhalte:
Wobei, was hast denn jetzt gepostet, das Blockly als Export (wie ich das haben möchte), oder einfach in Java Script umgeschaltet? Könnte natürlich auch an der versauten Codierung liegen, weil nicht i Code Tags gepackt.
-
@jan1 Tut mir leid, das ist mein erstes Forum und ich lerne den Umgang damit noch. Aber du hast Recht, wer richtig hinsieht ist im Vorteil.
Habe ich das jetzt so richtig gemacht.```
<xml xmlns="https://developers.google.com/blockly/xml"> <variables> <variable type="timeout" id="timeout3">timeout3</variable> </variables> <block type="on_ext" id=")3Y6O)OSZ6,a.eId9_([" x="-412" y="213"> <mutation xmlns="http://www.w3.org/1999/xhtml" items="1"></mutation> <field name="CONDITION">ne</field> <field name="ACK_CONDITION"></field> <value name="OID0"> <shadow type="field_oid" id="FB}qA2j)SArn`ar=BQ8z"> <field name="oid">sonoff.0.Sonoff-POWR2-Hauswasserpumpe.ENERGY_Power</field> </shadow> </value> <statement name="STATEMENT"> <block type="controls_if" id="nT8{B{T^As}6|P1eFdAp"> <value name="IF0"> <block type="logic_compare" id="h=ll3)j0~lH*]vID@v{h"> <field name="OP">GTE</field> <value name="A"> <block type="get_value" id="prv]M@]WP)O8k`WxQv,M"> <field name="ATTR">val</field> <field name="OID">sonoff.0.Sonoff-POWR2-Hauswasserpumpe.ENERGY_Power</field> </block> </value> <value name="B"> <block type="math_number" id="QWMd~%R.#BvSN.-Jr7|S"> <field name="NUM">100</field> </block> </value> </block> </value> <statement name="DO0"> <block type="controls_if" id=";N~?jZO,:^+(B6c4+e.p"> <value name="IF0"> <block type="logic_compare" id="nLGp=iM$L~IydiZi8!Z?"> <field name="OP">LTE</field> <value name="A"> <block type="get_value" id="#X;Nd8faxS1r?ibN,9Ur"> <field name="ATTR">val</field> <field name="OID">sonoff.0.Sonoff-POWR2-Hauswasserpumpe.ENERGY_Power</field> </block> </value> <value name="B"> <block type="math_number" id="3L+Hx`ZZZ[6;bcStTgXv"> <field name="NUM">50</field> </block> </value> </block> </value> <statement name="DO0"> <block type="timeouts_cleartimeout" id="s_tu+G)JzfXKRo!,-i?j"> <field name="NAME">timeout3</field> </block> </statement> <next> <block type="timeouts_settimeout" id="|y|12`S1gi{?f|+:!d87"> <field name="NAME">timeout3</field> <field name="DELAY">30</field> <field name="UNIT">min</field> <statement name="STATEMENT"> <block type="control" id="]:Q/hgD*3Ye$XrhiCKVK"> <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation> <field name="OID">sonoff.0.Sonoff-POWR2-Hauswasserpumpe.POWER</field> <field name="WITH_DELAY">FALSE</field> <value name="VALUE"> <block type="logic_boolean" id="]qeVb0?p3y!^dSP8T!{!"> <field name="BOOL">FALSE</field> </block> </value> <next> <block type="email" id="$9UHB7f:5pH}KOb-MKc+"> <field name="INSTANCE"></field> <field name="IS_HTML">FALSE</field> <field name="LOG">warn</field> <value name="TO"> <shadow type="text" id="k[:)o{+Cw9TDavPP#q~0"> <field name="TEXT">nobtukpetploy@web.de</field> </shadow> </value> <value name="TEXT"> <shadow type="text" id="Jg,,Cl.tlM@syT9Y]D#}"> <field name="TEXT">Die Hauswasserpumpe ist OFF, bitte Wasser auffüllen und wieder einschalten. Danke.</field> </shadow> </value> <value name="SUBJECT"> <shadow type="text" id="qh:kGtW{TIeASi#IVI)A"> <field name="TEXT">Warnung Hauswasserpumpe</field> </shadow> </value> </block> </next> </block> </statement> </block> </next> </block> </statement> <next> <block type="debug" id="jv2kcn+O#/wer{(+o+DW"> <field name="Severity">log</field> <value name="TEXT"> <shadow type="text"> <field name="TEXT">test</field> </shadow> <block type="text_join" id="FXin0|uc^i=Wm;0R-Jtj"> <mutation items="2"></mutation> <value name="ADD0"> <block type="text" id="Z##h?{^2;N/L6AAv4~.."> <field name="TEXT">Watt:</field> </block> </value> <value name="ADD1"> <block type="on_source" id="t@LBx#Y!8Fv5({,pHM[,"> <field name="ATTR">state.val</field> </block> </value> </block> </value> </block> </next> </block> </statement> </block> <
-
@jan1 Blockly als Export
-
@nole
wenn Du jetzt noch mal was offen gepostest, dann bin ich hier raus!Ich kann das nicht importieren, weil wohl was fehlt oder das Ding ohne Code Tags schlicht versaut wird.
-
@jan1 Tut mir leid, was habe ich denn bis jetzt richtig? Was benötigst du noch und wie mache ich das?
Ich bin dir wirklich sehr dankbar für deine Hilfe. -
-
@liv-in-sky
geil, ne Anleitung dazu.
Kann man die irgendwie oben anpinnen? -
@jan1 habe sie in den lesezeichen
-
@jan1 sagte in Trockenlaufschutz, Problem mit Blockly:
@nole
wenn Du jetzt noch mal was offen gepostest, dann bin ich hier raus!Ich kann das nicht importieren, weil wohl was fehlt oder das Ding ohne Code Tags schlicht versaut wird.
Das ist von Ihm @nole (Import ging bei mir)
-
@jan1 Ich muß das Skript wenn ich das richtig verstehe in den Code Tag (</>) packen? habe ich doch eben gemacht, oder kann man da noch was falsch machen?
-
@dslraser
Hm, hast Du den Admin 5 und den aktuellen JS-Controller laufen?
Bei mir geht kein Import! -
@jan1 aktuell Admin 4.2.1, JS-Controller aktuell
-
@nole
Ja so ist es und dann sieht es so aus wie bei dslraserIch kann das aber trotzdem nicht im portieren, was aber auch an ein paar Betas in meinem System liegen könnte.
Die Frage zu den Versionen war eigentlich an dslraser, weil bei Ihm Dein Export funktioniert, aber gut zu wissen, dass Du auch noch die "alten" Versionen drauf hast.
-
@jan1 sagte in Trockenlaufschutz, Problem mit Blockly:
@dslraser
Hm, hast Du den Admin 5 und den aktuellen JS-Controller laufen?
Bei mir geht kein Import!nein, beides nicht.