Skip to content

Blockly

Hilfe für Skripterstellung mit Blockly

6.6k Topics 79.6k Posts

NEWS

  • Umrechnung Füllstand funktioniert nicht mehr

    13
    3
    0 Votes
    13 Posts
    867 Views
    MartinPM
    @bommel_030 Bei den Formen vereinfacht man ja eh, wenn man das in eine Formel gießt (Glatter nicht gewölbter Zylinderdeckel usw.), von da her kann man ggfs auch mit einer Look-Up Table arbeiten. Je nachdem, was für eine Genauigkeit man braucht, würden ggfs 50 ... 100 Einträge reichen. Dazwischen linear interpolieren ...
  • [gelöst] Replace in Blockly

    3
    4
    0 Votes
    3 Posts
    284 Views
    WszeneW
    @david-g sagte in Replace in Blockly: @wszene Versuch mal eine Konvertierung nach string einzubauen. [image: 1730783929244-screenshot_20241105_061832_chrome.jpg] Danke genau das war die Lösung
  • State vom Typ String auf nächste Position schalten

    11
    1
    0 Votes
    11 Posts
    798 Views
    L
    Danke für Dein Engagement! Ich habe die erste Variante mit dem Javascript probiert. Die Liste wird erstellt (s. auch debug Ausgabe unten im Bild, einzelnen Elemente sind mit Kommata getrennt). Leider führt der SteuerBefehl dazu, dass die ganze Liste in den State eingetragen wird und nicht der entsprechende String in Abhängigkeit zum Zähler. Für mich sieht das alles recht plausible aus, aber leider funktioniert es noch nicht. Gibt es noch eine Optimierungsidee? [image: 1730751696283-5dca7459-c6de-4e3b-98a9-8ede258519f3-image.png] Edit: Hatte noch eine Fehler drin....funktioniert jetzt.....vielen vielen Dank!
  • E3DC Hauskraftwerk via Tibber laden

    17
    5
    1 Votes
    17 Posts
    7k Views
    D
    @ronniboy Hi ich nutze das Script noch genau so und den Trigger auf Powervalue setzte ich doch [image: 1730726122419-fdbd3af8-db5e-4d7b-b292-75763075cc7c-grafik.png]
  • Überschussnutzung Klimaanlage zum Heizen - Timeouts

    climate heating
    17
    3
    0 Votes
    17 Posts
    2k Views
    paul53P
    @ika sagte: das aktuelle Script Diese UND-Verknüpfung mit der Temperatur ist kontraproduktiv: [image: 1730719836850-blockly_temp.jpg] Außerdem sollte man auch für die Temperatur eine Hysterese vorsehen! [image: 1730720095083-blockly_temp.jpg]
  • Suche Baustein

    4
    1
    0 Votes
    4 Posts
    344 Views
    HomoranH
    @kippe und wenn du die Form meinst, dass die Docks unteteinander stehen, musdt du über die rechte Maustaste auf "externe Eingänge" umstellen.
  • Blockly - bearbeiten von String Variablen

    Moved blockly script
    13
    0 Votes
    13 Posts
    1k Views
    P
    @paul53 Danke! Läuft alles besten….
  • Textfarbe von Datenpunkt ändern je nach Temperatur

    3
    1
    0 Votes
    3 Posts
    332 Views
    C
    @paul53 Danke für den Ansatz und Zusammenbauen des Beispiels. Ich hatte auch mal 10 Sekunden drin. Teilweise ging es mal, teilweise nicht. Ich baue dein Beispiel nach und werde berichten. Vielen Dank und gute Nacht :-)
  • Zeituhr Licht Hilfe

    14
    1
    0 Votes
    14 Posts
    407 Views
    Roland SchallerR
    @paul53 also der "WINTER" Test hat mal prima funktioniert! Eingeschaltet rd. 17 Uhr und aus um 20 Uhr das ist jetzt mein Script [image: 1730632906748-4b358380-ef5b-4da7-a0e2-c5415b3b6523-image.png]
  • Problem mit Dauerschleife bei Szene

    3
    1
    0 Votes
    3 Posts
    242 Views
    S
    @paul53 said in Problem mit Dauerschleife bei Szene: @stefan341 sagte: Gibt es da vielleicht eine andere Lösung für? Du prüfst oben das Objekt anstelle des Wertes. Das ist mir tatsächlich auch aufgefallen. Nur ich weiß ehrlich gesagt nicht mehr warum ich das so gemacht habe. Das Script ist schon etwas älter. Da es damals, als ich es erstellt habe, auch diese Probleme machte, hatte ich es erstmal deaktiviert und es ist in Vergessenheit geraten. Allerdings ist es so, dass beim einschalten (Wo ich das Objekt überprüfe) weniger Dauerschleifen auftreten als beim ausschalten (Wo ich den Wert überprüfe). So ist es einfacher: [image: 1730552299787-blockly_temp.jpg] Das funktioniert tatsächlich besser. Ich konnte die Timeouts auf 1sek runter setzen und es funktioniert ohne Dauerschleife. Danke für die Hilfe
  • Datenpunkt in Funktion als Variable

    4
    1
    0 Votes
    4 Posts
    335 Views
    paul53P
    @griessbx sagte: 15 Mal diesen Ablauf. Man verwendet pro Datenpunkt nur einen Trigger(Ressourcen). Etwa so: [image: 1730468884292-blockly_temp.jpg] Eine Funktion bringt an dieser Stelle keinen Vorteil.
  • [Gelöst]Wenn TV an dann soll auch die HUE Lampe angehen

    16
    0 Votes
    16 Posts
    1k Views
    C
    Problem ist gelöst. Anscheinend ist beim Backup einspielen, was falsch gelaufen. Ich habe den HUE-Adapter gelöscht und neu installiert und siehe da, es funktioniert. @TT-Tom: Danke für deine Unterstützung!
  • Eigener Datenpunkt "Button" und Blockly. Wie?

    6
    2
    0 Votes
    6 Posts
    460 Views
    K
    @jojo58 Danke! Stimmt, das war mir zu offensichtlich. Hab ich wieder versucht um die Ecke zu denken und das logischste dabei aus den Augen verloren. Dieses Dropdown hinter "Wert" habe ich in meiner Blockly Zeit über die Jahre auch mehrfach benutzt und jedesmal muss ich wieder überlegen suchen wo man das findet :-) Ich hätte da einen Wunsch/Idee für die Programmierer: Wäre es vielleicht intuitiver anstatt eines "Wert" Bausteins mit Dropdown, gleich direkt einzelne Bausteine für "bestätigt" "Qualität" "Quelle" usw. in einer eigenen Gruppe "Wert" links in der Block-Auswahl anzubieten? Das braucht man ja doch öfters und ich denke dass andere User, wenn sie diese Blöcke direkt sehen (Ach guck.. sowas gibts auch?) auch über ihre Script-Qualität nachdenken. Ich fänds super! :-)
  • einfacher Timer, nach x Min Aus

    16
    0 Votes
    16 Posts
    1k Views
    M
    @homoran sagte in einfacher Timer, nach x Min Aus: @maddin77 sagte in einfacher Timer, nach x Min Aus: oder gibt es was einfacheres? ist größer als letztes passt doch! wenn das sonst keine funktions auswirkungen hat soll mir das auch recht sein danke
  • Aquarium Wasserstand (Wasser Niveau Regulierung)

    25
    1
    0 Votes
    25 Posts
    962 Views
    AphofisA
    @paul53 Das Wasser wird immer noch nicht richtig gezählt und der Wert wird nihct resettet Der wert aktuell wird durchgehend gezählt aber auch nicht zurück gesetzt. Ich finde den Fehler nicht. Wenn wasser dosiert wird kommen ja um die vier zählungen in einer sekunde zu stande. die Steuerung muss also vielleicht 2 sek warten und die werte speichern ausrechnen tasmota counter resetten und dann erst weiter zählen. Spoiler javascript.0 12:10:58.058 info script.js.AquaPi.Technik_Steuerung.Wasserstand_Regulierung: 211247 ml Aktuell javascript.0 12:11:13.123 info script.js.AquaPi.Technik_Steuerung.Wasserstand_Regulierung: 211255 ml Aktuell javascript.0 12:11:28.045 info script.js.AquaPi.Technik_Steuerung.Wasserstand_Regulierung: 211263 ml Aktuell javascript.0 12:11:43.093 info script.js.AquaPi.Technik_Steuerung.Wasserstand_Regulierung: 211272 ml Aktuell javascript.0 12:11:58.070 info script.js.AquaPi.Technik_Steuerung.Wasserstand_Regulierung: 211281 ml Aktuell javascript.0 12:12:13.093 info script.js.AquaPi.Technik_Steuerung.Wasserstand_Regulierung: 211293 ml Aktuell javascript.0 12:12:28.180 info script.js.AquaPi.Technik_Steuerung.Wasserstand_Regulierung: 211303 ml Aktuell javascript.0 12:12:43.061 info script.js.AquaPi.Technik_Steuerung.Wasserstand_Regulierung: 211309 ml Aktuell javascript.0 12:12:58.030 info script.js.AquaPi.Technik_Steuerung.Wasserstand_Regulierung: 211322 ml Aktuell javascript.0 12:13:13.084 info script.js.AquaPi.Technik_Steuerung.Wasserstand_Regulierung: 211327 ml Aktuell javascript.0 12:13:28.146 info script.js.AquaPi.Technik_Steuerung.Wasserstand_Regulierung: 211337 ml Aktuell javascript.0 12:13:43.139 info script.js.AquaPi.Technik_Steuerung.Wasserstand_Regulierung: 211353 ml Aktuell javascript.0 12:13:57.998 info script.js.AquaPi.Technik_Steuerung.Wasserstand_Regulierung: 211360 ml Aktuell javascript.0 12:14:13.082 info script.js.AquaPi.Technik_Steuerung.Wasserstand_Regulierung: 211368 ml Aktuell Ausgewählte Blöcke exportieren <xml xmlns="https://developers.google.com/blockly/xml"> <variables> <variable id="GnuRk+7KsY$0X2R3aUO1">Wassermenge</variable> <variable id="8TTn.0gElhjE;FlI3{:~">Wasser_Tag</variable> <variable id="1Q4.:OQ6u!U%3ez6^aej">Wasser_Jahr</variable> <variable id="Ovk0Oa33E*$]Mz^7{~.3">Wasser_Gesamt</variable> <variable type="timeout" id="timeout">timeout</variable> </variables> <block type="variables_set" id="HUSPsI8yrvs1R9buB5UE" x="-1212" y="-763"> <field name="VAR" id="GnuRk+7KsY$0X2R3aUO1">Wassermenge</field> <value name="VALUE"> <block type="math_arithmetic" id="e1#%MoOBW(WQNQtz+];;"> <field name="OP">MULTIPLY</field> <value name="A"> <shadow type="math_number" id="f)g1|Fqv,`2l-1dYfZ34"> <field name="NUM">1</field> </shadow> <block type="get_value" id="|=$q%x;t`MAEW/vG=BLQ"> <field name="ATTR">val</field> <field name="OID">sonoff.0.Aqua_Float.SENSOR.COUNTER.C1</field> </block> </value> <value name="B"> <shadow type="math_number" id="j[l*MeT/~[+quhxnrS7C"> <field name="NUM">5.182</field> </shadow> </value> </block> </value> <next> <block type="variables_set" id="HchfBD.f$i=}z$B3%%ro"> <field name="VAR" id="8TTn.0gElhjE;FlI3{:~">Wasser_Tag</field> <value name="VALUE"> <block type="get_value" id="M_~UzJP71@mQ8;LaEqA;"> <field name="ATTR">val</field> <field name="OID">0_userdata.0.Aqua_Control.0.Wasser.Wasserzähler_Tag</field> </block> </value> <next> <block type="variables_set" id="eg3d1X/Cm`7YA1`r@6/5"> <field name="VAR" id="1Q4.:OQ6u!U%3ez6^aej">Wasser_Jahr</field> <value name="VALUE"> <block type="get_value" id="HFTLl.5s}DD!S3VkI2}w"> <field name="ATTR">val</field> <field name="OID">0_userdata.0.Aqua_Control.0.Wasser.Wasserzähler_Jahr</field> </block> </value> <next> <block type="variables_set" id="CA,Qr(B*Ax}^Rcx{WiM0"> <field name="VAR" id="Ovk0Oa33E*$]Mz^7{~.3">Wasser_Gesamt</field> <value name="VALUE"> <block type="get_value" id="j]bLYMumfN_Ej:OBArxI"> <field name="ATTR">val</field> <field name="OID">0_userdata.0.Aqua_Control.0.Wasser.Wasser_Gesamt</field> </block> </value> <next> <block type="on_ext" id="0:-d[({.Z}?pVdpxL($`"> <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="0W#F=X0/oRtnrPk9h3{x"> <field name="oid">sonoff.0.Aqua_Float.POWER</field> </shadow> <block type="text" id="*P`{6.y$Qz:6)XRyP/e."> <field name="TEXT">sonoff.0.Aqua_Float.SENSOR.COUNTER.C1</field> </block> </value> <statement name="STATEMENT"> <block type="variables_set" id=".o$v5mYbaxJ%Dy^rAJ~@"> <field name="VAR" id="GnuRk+7KsY$0X2R3aUO1">Wassermenge</field> <value name="VALUE"> <block type="on_source" id="3{.pWaaavxoM|Ix^BlA}"> <field name="ATTR">state.val</field> </block> </value> <next> <block type="update" id="?h=3;[vg7tLw)/h@7:$A"> <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation> <field name="OID">0_userdata.0.Aqua_Control.0.Wasser.Wasser_Counter</field> <field name="WITH_DELAY">FALSE</field> <value name="VALUE"> <block type="variables_get" id=",s^*MoNszpa:oog%EMAW"> <field name="VAR" id="GnuRk+7KsY$0X2R3aUO1">Wassermenge</field> </block> </value> <next> <block type="debug" id="^-PLnz!%La/%esP+p|q%"> <field name="Severity">info</field> <value name="TEXT"> <shadow type="text" id="W!}jJFO{vTG9fL(st@|Z"> <field name="TEXT">test</field> </shadow> <block type="text_join" id="oliPeI~VRSKRwW7]r|%]" inline="true"> <mutation items="2"></mutation> <value name="ADD0"> <block type="variables_get" id="-A9r0_TWSe~DfBweAXDt"> <field name="VAR" id="GnuRk+7KsY$0X2R3aUO1">Wassermenge</field> </block> </value> <value name="ADD1"> <block type="text" id="8Ojo1T/MND*{-XQvij#:"> <field name="TEXT"> ml Aktuell</field> </block> </value> </block> </value> </block> </next> </block> </next> </block> </statement> <next> <block type="on" id=".Kws=H5v3:9sC$2y}XY."> <field name="OID">sonoff.0.Aqua_Float.POWER</field> <field name="CONDITION">ne</field> <field name="ACK_CONDITION"></field> <statement name="STATEMENT"> <block type="control" id="`#?D6cI2R48DM4)iEV2)"> <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation> <field name="OID">sonoff.0.Aqua_Control.POWER1</field> <field name="WITH_DELAY">FALSE</field> <value name="VALUE"> <block type="on_source" id="Z:Ey]JGh2[+Z2p6CktfV"> <field name="ATTR">state.val</field> </block> </value> <next> <block type="controls_if" id="fwTIogd8xTfe{#gzL9Cn"> <value name="IF0"> <block type="logic_negate" id="U/Ou4#ODbm6%waUiXwK3"> <value name="BOOL"> <block type="on_source" id="LKR8T,H^%|Gh2gr{;F,#"> <field name="ATTR">state.val</field> </block> </value> </block> </value> <statement name="DO0"> <block type="timeouts_settimeout" id="RtR6.MNo`wh`ud[PbJ]:"> <field name="NAME">timeout</field> <field name="DELAY">200</field> <field name="UNIT">ms</field> <statement name="STATEMENT"> <block type="math_change" id="IX/.|6z/Aro1]dY5SAYb"> <field name="VAR" id="8TTn.0gElhjE;FlI3{:~">Wasser_Tag</field> <value name="DELTA"> <shadow type="math_number" id="=M*S)jZ,M4p(dx.CTNCh"> <field name="NUM">1</field> </shadow> <block type="variables_get" id="su_iSda]mMUcg|Ylu@=o"> <field name="VAR" id="GnuRk+7KsY$0X2R3aUO1">Wassermenge</field> </block> </value> <next> <block type="math_change" id="|lE6{O$UQZ68v5$V-mhf"> <field name="VAR" id="1Q4.:OQ6u!U%3ez6^aej">Wasser_Jahr</field> <value name="DELTA"> <shadow type="math_number" id="r(O489L+4qKOus0|bJZ]"> <field name="NUM">1</field> </shadow> <block type="math_arithmetic" id="aUjod9%H]Jr`c:7;L`1L"> <field name="OP">DIVIDE</field> <value name="A"> <shadow type="math_number" id="G]!BBiks_53Irs;)eRZ/"> <field name="NUM">1</field> </shadow> <block type="variables_get" id="==0y1MmV=A38?y{8!7Qp"> <field name="VAR" id="GnuRk+7KsY$0X2R3aUO1">Wassermenge</field> </block> </value> <value name="B"> <shadow type="math_number" id="W)Ad2(Y4FzH8rN6?DDSG"> <field name="NUM">1000</field> </shadow> </value> </block> </value> <next> <block type="math_change" id="|Oi./blga6U/DN#4L}cB"> <field name="VAR" id="Ovk0Oa33E*$]Mz^7{~.3">Wasser_Gesamt</field> <value name="DELTA"> <shadow type="math_number" id="r(O489L+4qKOus0|bJZ]"> <field name="NUM">1</field> </shadow> <block type="math_arithmetic" id="]M+aVNab-ngeovV)j^g@"> <field name="OP">DIVIDE</field> <value name="A"> <shadow type="math_number" id="G]!BBiks_53Irs;)eRZ/"> <field name="NUM">1</field> </shadow> <block type="variables_get" id="P(Ibc,eZ|YYJM/Sz+:;Z"> <field name="VAR" id="GnuRk+7KsY$0X2R3aUO1">Wassermenge</field> </block> </value> <value name="B"> <shadow type="math_number" id="}@$j#%R5)f]P3nf@i||6"> <field name="NUM">1000</field> </shadow> </value> </block> </value> <next> <block type="update" id="fwHm}o7U6~1d|Z|{o_na"> <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation> <field name="OID">0_userdata.0.Aqua_Control.0.Wasser.Wasserzähler_Tag</field> <field name="WITH_DELAY">FALSE</field> <value name="VALUE"> <block type="math_rndfixed" id=";]qdo[hKwhyu5U)H]|AP"> <field name="n">1</field> <value name="x"> <shadow type="math_number" id="%/fU!@WL!D1NR8vZIXrJ"> <field name="NUM">3.1234</field> </shadow> <block type="variables_get" id=".$Y/`yQi2Ep48g$zUH!("> <field name="VAR" id="8TTn.0gElhjE;FlI3{:~">Wasser_Tag</field> </block> </value> </block> </value> <next> <block type="update" id="v@JXdPp^SX$e}[;*TN;5"> <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation> <field name="OID">0_userdata.0.Aqua_Control.0.Wasser.Wasserzähler_Jahr</field> <field name="WITH_DELAY">FALSE</field> <value name="VALUE"> <block type="math_rndfixed" id="H]3.WGAtE,UJ;+O:yMqK"> <field name="n">2</field> <value name="x"> <shadow type="math_number" id="%?~4gjL?h%jK9FuG!MeL"> <field name="NUM">3.1234</field> </shadow> <block type="variables_get" id="/n6Y=9C~2W@KV$RXN-DW"> <field name="VAR" id="1Q4.:OQ6u!U%3ez6^aej">Wasser_Jahr</field> </block> </value> </block> </value> <next> <block type="update" id="3)$zk|xkb)ME;O,`Pb4h"> <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation> <field name="OID">0_userdata.0.Aqua_Control.0.Wasser.Wasser_Gesamt</field> <field name="WITH_DELAY">FALSE</field> <value name="VALUE"> <block type="math_rndfixed" id="8|$7qbgnf2HyoIJku[)2"> <field name="n">2</field> <value name="x"> <shadow type="math_number" id="%?~4gjL?h%jK9FuG!MeL"> <field name="NUM">3.1234</field> </shadow> <block type="variables_get" id="AN!(vppC8|3s`)1tLCm^"> <field name="VAR" id="Ovk0Oa33E*$]Mz^7{~.3">Wasser_Gesamt</field> </block> </value> </block> </value> <next> <block type="update" id="`NW9_QcSlKGP;b[9@.QH"> <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation> <field name="OID">0_userdata.0.Aqua_Control.0.Wasser.Wasser_Counter</field> <field name="WITH_DELAY">FALSE</field> <value name="VALUE"> <block type="math_number" id="|m|G@]xx7.d^nS-E2Q,B"> <field name="NUM">0</field> </block> </value> <next> <block type="debug" id="ESkP;ss;~ZDB;gISHFI]"> <field name="Severity">info</field> <value name="TEXT"> <shadow type="text" id="W!}jJFO{vTG9fL(st@|Z"> <field name="TEXT">test</field> </shadow> <block type="text_join" id="R[aL32f3![219OSKE$k!" inline="true"> <mutation items="2"></mutation> <value name="ADD0"> <block type="variables_get" id="Y%f8;@,D;lNrR?pmQ|(Z"> <field name="VAR" id="1Q4.:OQ6u!U%3ez6^aej">Wasser_Jahr</field> </block> </value> <value name="ADD1"> <block type="text" id="q=ZJuFoniJND[_z;_j~M"> <field name="TEXT"> Liter</field> </block> </value> </block> </value> <next> <block type="debug" id="?XjRd=PU1#Fj(f#xl+mC"> <field name="Severity">info</field> <value name="TEXT"> <shadow type="text" id="W!}jJFO{vTG9fL(st@|Z"> <field name="TEXT">test</field> </shadow> <block type="text_join" id="qZJM||k00I36j8XRC(_D" inline="true"> <mutation items="2"></mutation> <value name="ADD0"> <block type="variables_get" id="!AST/{)(*stRx}e6R#i="> <field name="VAR" id="8TTn.0gElhjE;FlI3{:~">Wasser_Tag</field> </block> </value> <value name="ADD1"> <block type="text" id="[G8=298XTdIwTD?Vf-]v"> <field name="TEXT"> ml Heute</field> </block> </value> </block> </value> <next> <block type="debug" id=")R2t?-dNSqu)sk@uUf7P"> <field name="Severity">info</field> <value name="TEXT"> <shadow type="text" id="W!}jJFO{vTG9fL(st@|Z"> <field name="TEXT">test</field> </shadow> <block type="text_join" id="tFjhop@BpJ{DM2V9fgF~" inline="true"> <mutation items="2"></mutation> <value name="ADD0"> <block type="variables_get" id="-/WYH+yRlL2^$93UY@NC"> <field name="VAR" id="Ovk0Oa33E*$]Mz^7{~.3">Wasser_Gesamt</field> </block> </value> <value name="ADD1"> <block type="text" id="e3jEG}s0@g6ww)3e(Z*G"> <field name="TEXT"> Liter Gesamt</field> </block> </value> </block> </value> <next> <block type="debug" id="#z1|ehxGsPSwxWtTu9|B"> <field name="Severity">info</field> <value name="TEXT"> <shadow type="text" id="W!}jJFO{vTG9fL(st@|Z"> <field name="TEXT">test</field> </shadow> <block type="text_join" id="p.8rZ(UWm@M4h]MJKwz*" inline="true"> <mutation items="2"></mutation> <value name="ADD0"> <block type="get_value" id="X9/9B+*-H{rJgrce]hjh"> <field name="ATTR">val</field> <field name="OID">sonoff.0.Aqua_Float.SENSOR.COUNTER.C1</field> </block> </value> <value name="ADD1"> <block type="text" id="[!*5OpdK%*CIY=7U;a`I"> <field name="TEXT"> Pulse Count</field> </block> </value> </block> </value> <next> <block type="request" id="pWM7@T;V-m3CCu`$#~o!"> <mutation xmlns="http://www.w3.org/1999/xhtml" with_statement="false"></mutation> <field name="WITH_STATEMENT">FALSE</field> <field name="LOG">debug</field> <value name="URL"> <shadow type="text" id="2+7Jn:,Rp_p6,1h1#*g="> <field name="TEXT">http://192.168.0.71/cm?user=admin&amp;password=Kasjopayac3po&amp;cmnd=counter2%200</field> </shadow> <block type="text" id="rpv,(m{smGL,#8,7_QUP"> <field name="TEXT">http://192.168.0.71/cm?user=admin&amp;password=Kasjopayac3po&amp;cmnd=counter2%200</field> </block> </value> </block> </next> </block> </next> </block> </next> </block> </next> </block> </next> </block> </next> </block> </next> </block> </next> </block> </next> </block> </next> </block> </next> </block> </statement> </block> </statement> </block> </next> </block> </statement> <next> <block type="schedule" id="eY2k):|9:7y;jFJ|-e{."> <field name="SCHEDULE">0 0 1 1 *</field> <statement name="STATEMENT"> <block type="variables_set" id="cEkH53kNZuyOARmP+Q|,"> <field name="VAR" id="1Q4.:OQ6u!U%3ez6^aej">Wasser_Jahr</field> <value name="VALUE"> <block type="math_number" id="9;ptE-Ve[-8t]`aa|Tgl"> <field name="NUM">0</field> </block> </value> <next> <block type="update" id="|*@i5i^pfX8@UCo}nN4j"> <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation> <field name="OID">0_userdata.0.Aqua_Control.0.Wasser.Wasserzähler_Jahr</field> <field name="WITH_DELAY">FALSE</field> <value name="VALUE"> <block type="math_number" id="27z6jlXz=#}B7;,?{V7M"> <field name="NUM">0</field> </block> </value> </block> </next> </block> </statement> <next> <block type="schedule" id="!0s4!(IKf352-$Cjs+=H"> <field name="SCHEDULE">0 0 * * *</field> <statement name="STATEMENT"> <block type="variables_set" id="u2/ozk5F`Si~3`_cLs4`"> <field name="VAR" id="8TTn.0gElhjE;FlI3{:~">Wasser_Tag</field> <value name="VALUE"> <block type="math_number" id="kQwxXS=Yw7,Q5s]YKP}*"> <field name="NUM">0</field> </block> </value> <next> <block type="update" id=",B.vece!}v4W4j`J0O1r"> <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation> <field name="OID">0_userdata.0.Aqua_Control.0.Wasser.Wasserzähler_Tag</field> <field name="WITH_DELAY">FALSE</field> <value name="VALUE"> <block type="math_number" id="(P{ST5UTzs=*|2/~;Z+d"> <field name="NUM">0</field> </block> </value> </block> </next> </block> </statement> </block> </next> </block> </next> </block> </next> </block> </next> </block> </next> </block> </next> </block> </next> </block> </xml> <xml xmlns="https://developers.google.com/blockly/xml"> <variables> <variable id="GnuRk+7KsY$0X2R3aUO1">Wassermenge</variable> <variable id="8TTn.0gElhjE;FlI3{:~">Wasser_Tag</variable> <variable id="1Q4.:OQ6u!U%3ez6^aej">Wasser_Jahr</variable> <variable id="Ovk0Oa33E*$]Mz^7{~.3">Wasser_Gesamt</variable> <variable type="timeout" id="timeout">timeout</variable> </variables> <block type="variables_set" id="HUSPsI8yrvs1R9buB5UE" x="-1212" y="-763"> <field name="VAR" id="GnuRk+7KsY$0X2R3aUO1">Wassermenge</field> <value name="VALUE"> <block type="math_arithmetic" id="e1#%MoOBW(WQNQtz+];;"> <field name="OP">MULTIPLY</field> <value name="A"> <shadow type="math_number" id="f)g1|Fqv,`2l-1dYfZ34"> <field name="NUM">1</field> </shadow> <block type="get_value" id="|=$q%x;t`MAEW/vG=BLQ"> <field name="ATTR">val</field> <field name="OID">sonoff.0.Aqua_Float.SENSOR.COUNTER.C1</field> </block> </value> <value name="B"> <shadow type="math_number" id="j[l*MeT/~[+quhxnrS7C"> <field name="NUM">5.182</field> </shadow> </value> </block> </value> <next> <block type="variables_set" id="HchfBD.f$i=}z$B3%%ro"> <field name="VAR" id="8TTn.0gElhjE;FlI3{:~">Wasser_Tag</field> <value name="VALUE"> <block type="get_value" id="M_~UzJP71@mQ8;LaEqA;"> <field name="ATTR">val</field> <field name="OID">0_userdata.0.Aqua_Control.0.Wasser.Wasserzähler_Tag</field> </block> </value> <next> <block type="variables_set" id="eg3d1X/Cm`7YA1`r@6/5"> <field name="VAR" id="1Q4.:OQ6u!U%3ez6^aej">Wasser_Jahr</field> <value name="VALUE"> <block type="get_value" id="HFTLl.5s}DD!S3VkI2}w"> <field name="ATTR">val</field> <field name="OID">0_userdata.0.Aqua_Control.0.Wasser.Wasserzähler_Jahr</field> </block> </value> <next> <block type="variables_set" id="CA,Qr(B*Ax}^Rcx{WiM0"> <field name="VAR" id="Ovk0Oa33E*$]Mz^7{~.3">Wasser_Gesamt</field> <value name="VALUE"> <block type="get_value" id="j]bLYMumfN_Ej:OBArxI"> <field name="ATTR">val</field> <field name="OID">0_userdata.0.Aqua_Control.0.Wasser.Wasser_Gesamt</field> </block> </value> <next> <block type="on_ext" id="0:-d[({.Z}?pVdpxL($`"> <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="0W#F=X0/oRtnrPk9h3{x"> <field name="oid">sonoff.0.Aqua_Float.POWER</field> </shadow> <block type="text" id="*P`{6.y$Qz:6)XRyP/e."> <field name="TEXT">sonoff.0.Aqua_Float.SENSOR.COUNTER.C1</field> </block> </value> <statement name="STATEMENT"> <block type="variables_set" id=".o$v5mYbaxJ%Dy^rAJ~@"> <field name="VAR" id="GnuRk+7KsY$0X2R3aUO1">Wassermenge</field> <value name="VALUE"> <block type="on_source" id="3{.pWaaavxoM|Ix^BlA}"> <field name="ATTR">state.val</field> </block> </value> <next> <block type="update" id="?h=3;[vg7tLw)/h@7:$A"> <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation> <field name="OID">0_userdata.0.Aqua_Control.0.Wasser.Wasser_Counter</field> <field name="WITH_DELAY">FALSE</field> <value name="VALUE"> <block type="variables_get" id=",s^*MoNszpa:oog%EMAW"> <field name="VAR" id="GnuRk+7KsY$0X2R3aUO1">Wassermenge</field> </block> </value> <next> <block type="debug" id="^-PLnz!%La/%esP+p|q%"> <field name="Severity">info</field> <value name="TEXT"> <shadow type="text" id="W!}jJFO{vTG9fL(st@|Z"> <field name="TEXT">test</field> </shadow> <block type="text_join" id="oliPeI~VRSKRwW7]r|%]" inline="true"> <mutation items="2"></mutation> <value name="ADD0"> <block type="variables_get" id="-A9r0_TWSe~DfBweAXDt"> <field name="VAR" id="GnuRk+7KsY$0X2R3aUO1">Wassermenge</field> </block> </value> <value name="ADD1"> <block type="text" id="8Ojo1T/MND*{-XQvij#:"> <field name="TEXT"> ml Aktuell</field> </block> </value> </block> </value> </block> </next> </block> </next> </block> </statement> <next> <block type="on" id=".Kws=H5v3:9sC$2y}XY."> <field name="OID">sonoff.0.Aqua_Float.POWER</field> <field name="CONDITION">ne</field> <field name="ACK_CONDITION"></field> <statement name="STATEMENT"> <block type="control" id="`#?D6cI2R48DM4)iEV2)"> <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation> <field name="OID">sonoff.0.Aqua_Control.POWER1</field> <field name="WITH_DELAY">FALSE</field> <value name="VALUE"> <block type="on_source" id="Z:Ey]JGh2[+Z2p6CktfV"> <field name="ATTR">state.val</field> </block> </value> <next> <block type="controls_if" id="fwTIogd8xTfe{#gzL9Cn"> <value name="IF0"> <block type="logic_negate" id="U/Ou4#ODbm6%waUiXwK3"> <value name="BOOL"> <block type="on_source" id="LKR8T,H^%|Gh2gr{;F,#"> <field name="ATTR">state.val</field> </block> </value> </block> </value> <statement name="DO0"> <block type="timeouts_settimeout" id="RtR6.MNo`wh`ud[PbJ]:"> <field name="NAME">timeout</field> <field name="DELAY">200</field> <field name="UNIT">ms</field> <statement name="STATEMENT"> <block type="math_change" id="IX/.|6z/Aro1]dY5SAYb"> <field name="VAR" id="8TTn.0gElhjE;FlI3{:~">Wasser_Tag</field> <value name="DELTA"> <shadow type="math_number" id="=M*S)jZ,M4p(dx.CTNCh"> <field name="NUM">1</field> </shadow> <block type="variables_get" id="su_iSda]mMUcg|Ylu@=o"> <field name="VAR" id="GnuRk+7KsY$0X2R3aUO1">Wassermenge</field> </block> </value> <next> <block type="math_change" id="|lE6{O$UQZ68v5$V-mhf"> <field name="VAR" id="1Q4.:OQ6u!U%3ez6^aej">Wasser_Jahr</field> <value name="DELTA"> <shadow type="math_number" id="r(O489L+4qKOus0|bJZ]"> <field name="NUM">1</field> </shadow> <block type="math_arithmetic" id="aUjod9%H]Jr`c:7;L`1L"> <field name="OP">DIVIDE</field> <value name="A"> <shadow type="math_number" id="G]!BBiks_53Irs;)eRZ/"> <field name="NUM">1</field> </shadow> <block type="variables_get" id="==0y1MmV=A38?y{8!7Qp"> <field name="VAR" id="GnuRk+7KsY$0X2R3aUO1">Wassermenge</field> </block> </value> <value name="B"> <shadow type="math_number" id="W)Ad2(Y4FzH8rN6?DDSG"> <field name="NUM">1000</field> </shadow> </value> </block> </value> <next> <block type="math_change" id="|Oi./blga6U/DN#4L}cB"> <field name="VAR" id="Ovk0Oa33E*$]Mz^7{~.3">Wasser_Gesamt</field> <value name="DELTA"> <shadow type="math_number" id="r(O489L+4qKOus0|bJZ]"> <field name="NUM">1</field> </shadow> <block type="math_arithmetic" id="]M+aVNab-ngeovV)j^g@"> <field name="OP">DIVIDE</field> <value name="A"> <shadow type="math_number" id="G]!BBiks_53Irs;)eRZ/"> <field name="NUM">1</field> </shadow> <block type="variables_get" id="P(Ibc,eZ|YYJM/Sz+:;Z"> <field name="VAR" id="GnuRk+7KsY$0X2R3aUO1">Wassermenge</field> </block> </value> <value name="B"> <shadow type="math_number" id="}@$j#%R5)f]P3nf@i||6"> <field name="NUM">1000</field> </shadow> </value> </block> </value> <next> <block type="update" id="fwHm}o7U6~1d|Z|{o_na"> <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation> <field name="OID">0_userdata.0.Aqua_Control.0.Wasser.Wasserzähler_Tag</field> <field name="WITH_DELAY">FALSE</field> <value name="VALUE"> <block type="math_rndfixed" id=";]qdo[hKwhyu5U)H]|AP"> <field name="n">1</field> <value name="x"> <shadow type="math_number" id="%/fU!@WL!D1NR8vZIXrJ"> <field name="NUM">3.1234</field> </shadow> <block type="variables_get" id=".$Y/`yQi2Ep48g$zUH!("> <field name="VAR" id="8TTn.0gElhjE;FlI3{:~">Wasser_Tag</field> </block> </value> </block> </value> <next> <block type="update" id="v@JXdPp^SX$e}[;*TN;5"> <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation> <field name="OID">0_userdata.0.Aqua_Control.0.Wasser.Wasserzähler_Jahr</field> <field name="WITH_DELAY">FALSE</field> <value name="VALUE"> <block type="math_rndfixed" id="H]3.WGAtE,UJ;+O:yMqK"> <field name="n">2</field> <value name="x"> <shadow type="math_number" id="%?~4gjL?h%jK9FuG!MeL"> <field name="NUM">3.1234</field> </shadow> <block type="variables_get" id="/n6Y=9C~2W@KV$RXN-DW"> <field name="VAR" id="1Q4.:OQ6u!U%3ez6^aej">Wasser_Jahr</field> </block> </value> </block> </value> <next> <block type="update" id="3)$zk|xkb)ME;O,`Pb4h"> <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation> <field name="OID">0_userdata.0.Aqua_Control.0.Wasser.Wasser_Gesamt</field> <field name="WITH_DELAY">FALSE</field> <value name="VALUE"> <block type="math_rndfixed" id="8|$7qbgnf2HyoIJku[)2"> <field name="n">2</field> <value name="x"> <shadow type="math_number" id="%?~4gjL?h%jK9FuG!MeL"> <field name="NUM">3.1234</field> </shadow> <block type="variables_get" id="AN!(vppC8|3s`)1tLCm^"> <field name="VAR" id="Ovk0Oa33E*$]Mz^7{~.3">Wasser_Gesamt</field> </block> </value> </block> </value> <next> <block type="update" id="`NW9_QcSlKGP;b[9@.QH"> <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation> <field name="OID">0_userdata.0.Aqua_Control.0.Wasser.Wasser_Counter</field> <field name="WITH_DELAY">FALSE</field> <value name="VALUE"> <block type="math_number" id="|m|G@]xx7.d^nS-E2Q,B"> <field name="NUM">0</field> </block> </value> <next> <block type="debug" id="ESkP;ss;~ZDB;gISHFI]"> <field name="Severity">info</field> <value name="TEXT"> <shadow type="text" id="W!}jJFO{vTG9fL(st@|Z"> <field name="TEXT">test</field> </shadow> <block type="text_join" id="R[aL32f3![219OSKE$k!" inline="true"> <mutation items="2"></mutation> <value name="ADD0"> <block type="variables_get" id="Y%f8;@,D;lNrR?pmQ|(Z"> <field name="VAR" id="1Q4.:OQ6u!U%3ez6^aej">Wasser_Jahr</field> </block> </value> <value name="ADD1"> <block type="text" id="q=ZJuFoniJND[_z;_j~M"> <field name="TEXT"> Liter</field> </block> </value> </block> </value> <next> <block type="debug" id="?XjRd=PU1#Fj(f#xl+mC"> <field name="Severity">info</field> <value name="TEXT"> <shadow type="text" id="W!}jJFO{vTG9fL(st@|Z"> <field name="TEXT">test</field> </shadow> <block type="text_join" id="qZJM||k00I36j8XRC(_D" inline="true"> <mutation items="2"></mutation> <value name="ADD0"> <block type="variables_get" id="!AST/{)(*stRx}e6R#i="> <field name="VAR" id="8TTn.0gElhjE;FlI3{:~">Wasser_Tag</field> </block> </value> <value name="ADD1"> <block type="text" id="[G8=298XTdIwTD?Vf-]v"> <field name="TEXT"> ml Heute</field> </block> </value> </block> </value> <next> <block type="debug" id=")R2t?-dNSqu)sk@uUf7P"> <field name="Severity">info</field> <value name="TEXT"> <shadow type="text" id="W!}jJFO{vTG9fL(st@|Z"> <field name="TEXT">test</field> </shadow> <block type="text_join" id="tFjhop@BpJ{DM2V9fgF~" inline="true"> <mutation items="2"></mutation> <value name="ADD0"> <block type="variables_get" id="-/WYH+yRlL2^$93UY@NC"> <field name="VAR" id="Ovk0Oa33E*$]Mz^7{~.3">Wasser_Gesamt</field> </block> </value> <value name="ADD1"> <block type="text" id="e3jEG}s0@g6ww)3e(Z*G"> <field name="TEXT"> Liter Gesamt</field> </block> </value> </block> </value> <next> <block type="debug" id="#z1|ehxGsPSwxWtTu9|B"> <field name="Severity">info</field> <value name="TEXT"> <shadow type="text" id="W!}jJFO{vTG9fL(st@|Z"> <field name="TEXT">test</field> </shadow> <block type="text_join" id="p.8rZ(UWm@M4h]MJKwz*" inline="true"> <mutation items="2"></mutation> <value name="ADD0"> <block type="get_value" id="X9/9B+*-H{rJgrce]hjh"> <field name="ATTR">val</field> <field name="OID">sonoff.0.Aqua_Float.SENSOR.COUNTER.C1</field> </block> </value> <value name="ADD1"> <block type="text" id="[!*5OpdK%*CIY=7U;a`I"> <field name="TEXT"> Pulse Count</field> </block> </value> </block> </value> <next> <block type="request" id="pWM7@T;V-m3CCu`$#~o!"> <mutation xmlns="http://www.w3.org/1999/xhtml" with_statement="false"></mutation> <field name="WITH_STATEMENT">FALSE</field> <field name="LOG">debug</field> <value name="URL"> <shadow type="text" id="2+7Jn:,Rp_p6,1h1#*g="> <field name="TEXT">http://192.168.0.71/cm?user=admin&amp;password=Kasjopayac3po&amp;cmnd=counter2%200</field> </shadow> <block type="text" id="rpv,(m{smGL,#8,7_QUP"> <field name="TEXT">http://192.168.0.71/cm?user=admin&amp;password=Password&amp;cmnd=counter2%200</field> </block> </value> </block> </next> </block> </next> </block> </next> </block> </next> </block> </next> </block> </next> </block> </next> </block> </next> </block> </next> </block> </next> </block> </next> </block> </statement> </block> </statement> </block> </next> </block> </statement> <next> <block type="schedule" id="eY2k):|9:7y;jFJ|-e{."> <field name="SCHEDULE">0 0 1 1 *</field> <statement name="STATEMENT"> <block type="variables_set" id="cEkH53kNZuyOARmP+Q|,"> <field name="VAR" id="1Q4.:OQ6u!U%3ez6^aej">Wasser_Jahr</field> <value name="VALUE"> <block type="math_number" id="9;ptE-Ve[-8t]`aa|Tgl"> <field name="NUM">0</field> </block> </value> <next> <block type="update" id="|*@i5i^pfX8@UCo}nN4j"> <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation> <field name="OID">0_userdata.0.Aqua_Control.0.Wasser.Wasserzähler_Jahr</field> <field name="WITH_DELAY">FALSE</field> <value name="VALUE"> <block type="math_number" id="27z6jlXz=#}B7;,?{V7M"> <field name="NUM">0</field> </block> </value> </block> </next> </block> </statement> <next> <block type="schedule" id="!0s4!(IKf352-$Cjs+=H"> <field name="SCHEDULE">0 0 * * *</field> <statement name="STATEMENT"> <block type="variables_set" id="u2/ozk5F`Si~3`_cLs4`"> <field name="VAR" id="8TTn.0gElhjE;FlI3{:~">Wasser_Tag</field> <value name="VALUE"> <block type="math_number" id="kQwxXS=Yw7,Q5s]YKP}*"> <field name="NUM">0</field> </block> </value> <next> <block type="update" id=",B.vece!}v4W4j`J0O1r"> <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation> <field name="OID">0_userdata.0.Aqua_Control.0.Wasser.Wasserzähler_Tag</field> <field name="WITH_DELAY">FALSE</field> <value name="VALUE"> <block type="math_number" id="(P{ST5UTzs=*|2/~;Z+d"> <field name="NUM">0</field> </block> </value> </block> </next> </block> </statement> </block> </next> </block> </next> </block> </next> </block> </next> </block> </next> </block> </next> </block> </next> </block> </xml> [image: 1730373190879-screenshot-2024-10-31-121126.png]
  • Fehlermeldung (warn)

    2
    1
    0 Votes
    2 Posts
    250 Views
    CodierknechtC
    @griessbx sagte in Fehlermeldung (warn): Was will mir diese Meldung sagen ? Dass in Zeile 16 des dahinterliegenden JS etwas nicht stimmt. Welchen Typ haben die angesprochenen Objekte? Sollte da vielleicht statt einem string "1" eine Zahl rein? Warum steuerst Du nach dem "Falls" gleich wieder mit einem anderen Wert? Fehlt da vielleicht ein "sonst"?
  • [erledigt] Müllkalender, keine Benachrichtigung

    26
    2
    0 Votes
    26 Posts
    3k Views
    A
    @homoran said in Müllkalender, keine Benachrichtigung: @accuface sagte in Müllkalender, keine Benachrichtigung: Oder denk ich zu kompliziert? klick mal auf das Zahnrad :face_with_rolling_eyes: :sweat_smile: ja gut, Zahnräder werden völlig überbewertet. sowas kann ein anfänger ned wissen. aber hey, meine Variante funzt auch. Trozdem Danke an euch
  • ich möchte am Abend ein am morgen ausschalten

    6
    1
    0 Votes
    6 Posts
    536 Views
    CodierknechtC
    @christian-5 Programmierer sind von Haus aus faul - sonst wären sie ja nicht Programmierer geworden. Also spart man sich einen Block :grin:
  • Keine Meldung nach wechsel von 0 auf 1 durch Adapter [gel.]

    5
    2
    0 Votes
    5 Posts
    313 Views
    DuffyD
    @homoran Vielen Dank für die Erklärung und einen schönen Abend. VG Duffy
  • Logik für Klimananlanlage

    13
    0 Votes
    13 Posts
    974 Views
    F
    @paul53 Ja, so habe ich es gelöst. Dadurch gab es nicht diese ständige Piepserei weil ein Befehl empfangen wurde.

607

Online

32.7k

Users

82.5k

Topics

1.3m

Posts