Skip to content

Skripten / Logik

Hilfe zu JavaScript, Blockly, TypeScript, Node-RED, Scenes und text2command

16.4k Themen 211.8k Beiträge

NEWS

Unterkategorien


  • Hilfe für Skripterstellung mit JavaScript

    2k 48k
    2k Themen
    48k Beiträge
    D
    @maxclaudi Vielen Dank für das ausführliche oben beschriebene Verhalten von smartMode. Es gibt wirklich keine konstante wann er umschaltet. Hatte erst mal.4 Tage ohne umschalten und dann kann sein das er 3 mal am tag umschaltet
  • Hilfe für Skripterstellung mit Blockly

    6k 78k
    6k Themen
    78k Beiträge
    D
    Ich hab das Problem gefunden. Wenn man das Preset abspeichert wenn die LED nicht eingeschalten sind funktioniert das natürlich nicht. Man muss das Preset speichern wenn der Effekt selektiert ist als auch die LED laufen. Manchmal kann es so simpel sein. Dennoch wieder etwas gelernt.
  • Hilfe für Skripterstellung mit Node-RED

    952 13k
    952 Themen
    13k Beiträge
    HomoranH
    @fiddle sagte in [Gelöst]: Adapter per {Node Red | JS} (de)aktivieren: Ok, nicht als "Wert" schreiben, sondern als "Befehl". Dann scheint ihn das zu beeindrucken. du zeigst ja nichts, aber es geht mit true/false [image: 1763416200051-screenshot_20251117-224854_firefox.jpg] gesteuert über eigenen DP vom typ Bool
  • [gelöst] Zum Schedule-Befehl

    Verschoben
    2
    0 Stimmen
    2 Beiträge
    329 Aufrufe
    BuZZyB
    ioBroker verwendet das NPM Paket node-schedule.. Dementsprechend kannst du hier Infos diesbezüglich finden: https://www.npmjs.com/package/node-sche … scheduling Gruß
  • Onkyo NET/USB Steuerung

    Verschoben
    3
    0 Stimmen
    3 Beiträge
    657 Aufrufe
    S
    Ich mache jetzt seit 2 Wochen "try and error" und komm nicht weiter… Ich habe nun auch schon erfolgreich den Adapter von Eisbaeeer umgeschrieben damit die NET/USB-Menüpunkte wieder vorhanden sind aber auch damit komme ich nicht an eine Liste aller unterordner. Auch der Kontakt zum Onkyo-Support blieb erfoglos, die habe keine Ahnung von diesem Protokoll war die lapidare Antwort... Das es gehen muss, davon bin ich überzeugt, denn die original Onkyo Remute3 App kann es ja auch... Ich habe aber keine Idee mehr wie es noch funktionieren soll/kann... auch lässt sich die eiscp-commands.json im node-eiscp nicht mehr auf den neusten Stand der eiscp-commands.yaml bringen. Es läuft immr auf einen Fehler hinaus... svenilee@Gotham-City:/opt/iobroker/node_modules/iobroker.onkyo-vis/node_modules/eiscp$ node eiscp-commands-convert.js /opt/iobroker/node_modules/iobroker.onkyo-vis/node_modules/eiscp/eiscp-commands.yaml:5 description: System Power Command ^^^^^ SyntaxError: Unexpected identifier at createScript (vm.js:56:10) at Object.runInThisContext (vm.js:97:10) at Module._compile (module.js:549:28) at Object.Module._extensions..js (module.js:586:10) at Module.load (module.js:494:32) at tryModuleLoad (module.js:453:12) at Function.Module._load (module.js:445:3) at Module.require (module.js:504:17) at require (internal/module.js:20:19) at Object. <anonymous>(/opt/iobroker/node_modules/iobroker.onkyo-vis/node_modules/eiscp/eiscp-commands-convert.js:22:11)</anonymous> Hat eventuell noch jemand einen Tipp für mich?
  • On(); mehrere Bedingungen in einem on()?

    Verschoben
    24
    0 Stimmen
    24 Beiträge
    6k Aufrufe
    T
    Ja genau das war es. Besten Dank
  • Hilfe für Script mit mehreren Werten gesucht

    Verschoben
    5
    0 Stimmen
    5 Beiträge
    508 Aufrufe
    ChaotC
    Oh, Danke. Das habe ich wirklich nicht bedacht. Ich habe mich schon gewundert warum das nicht aktualisiert :oops: Hier ist übrigens die ganze Geschichte: viewtopic.php?f=21&t=14808&p=156654#p156654
  • Gelöst, Übergabe einer txt oder csv an IO

    Verschoben
    3
    0 Stimmen
    3 Beiträge
    553 Aufrufe
    Ralla66R
    Weitere Fallstricke, wollte per .txt eine 0 oder 1 übergeben. Diese sollte per Change true oder false eines Datenpunktes schalten. Auf dem Rasp ist Stretch 11.2017 installiert. Mit dem Writer ( Word ) des Raspy geht das nicht der fügt CR oder LF ein. Unter Zubehör den Text Editor nehmen. Selbst der hat seine tücken. Mußte erst 3 , 4 mal Return drücken dann entfernen bis das sauber lief. Rennt jetzt. Ralla :mrgreen: 5230_string_nach_boolean_v3.jpg
  • [Gelöst]SQL Logging auswerten

    Verschoben
    6
    0 Stimmen
    6 Beiträge
    679 Aufrufe
    paul53P
    @thomasSC: habe den datenpunkt als gemischt erstell. ` Besser als Zahl (number) mit unit: 'A'. Bitte noch das Thema im Betreff des ersten Beitrags als [gelöst] markieren.
  • [gelöst] Fehlermeldungen Quittieren

    Verschoben
    4
    0 Stimmen
    4 Beiträge
    518 Aufrufe
    T
    Ich habe jetzt eine Lösung gefunden. Ich schalte den Autor nicht direkt, sondern über eine "dummy"Objekt. Dieses halt fräg Störungen ab und gibt den Betrieb frei wenn keine Störung anliegt. Funktioniert soweit gut. Gruß Thomas
  • Steuerung Poolpumpe

    Verschoben
    144
    2
    0 Stimmen
    144 Beiträge
    17k Aufrufe
    G
    @paul53: @GeorgS: leider macht die Handauto immer noch was sie will Log ? Ich habe es jetzt noch mal getestet und oh wunder jetzt geht es auf einmal… habe nix gheändert nur mal den ioBroker Server neugestartet xD
  • XBee per USB/Serial steuern

    Verschoben
    2
    1
    0 Stimmen
    2 Beiträge
    385 Aufrufe
    V
    Keiner ne Idee/Hinweis? :?
  • [Problem] mit Blockly "Parser" Adapter auslösen?

    Verschoben
    1
    3
    0 Stimmen
    1 Beiträge
    301 Aufrufe
    Niemand hat geantwortet
  • Heizungssteuerung - manuelle Übersteuerung der Automatik

    Verschoben
    4
    0 Stimmen
    4 Beiträge
    725 Aufrufe
    H
    dem ist nichts hinzu zu fügen ;) eine bessere Auflösung bekommen ich auf die schnelle nicht hin :( [image: attachment%5D]![](</s><ATTACHMENT [image: 6045_blockly.jpg] )[attachment=0]Blockly.JPG[/attachment]" />
  • Sayit-Ausgabe von Text aus Objekt

    Verschoben
    5
    2
    0 Stimmen
    5 Beiträge
    718 Aufrufe
    P
    Bei mir gibt es Probleme, wenn der Text zu lang wird. Die Logausgabe des Sayit Adapters zeigt dir mehr. Pix
  • Heizungssteuerung simples UND/ODER script läuft nicht

    Verschoben
    13
    1
    0 Stimmen
    13 Beiträge
    2k Aufrufe
    H
    Ich hänge mich hier mal dran: Ich möchte gern für die Heizungssteuerung ein Script nach der folgenden Logik umsetzen: wenn [(fenster auf) oder (Urlaub abwesend)}-> immer Abwesenheitstemperatur sonst wenn (fenster zu) wenn [(mo-do von 7-9 und 15-22) oder (fr-so von 5-22) oder (feiertag 5-22) oder (urlaub zu hause = wahr und 7-22) -> Temp. Anwesenheit sonst temp. abwesenheit Hintergrund anwesend -> Fr-So oder Feiertags oder Urlaub zu Haus wahr -> jeweils 5-22 Uhr, sonst abwesend/EcoModus Werktag anwesend -> Mo-Do 7-9 und 15-22 Uhr und kein Feiertag, sonst abwesend Urlaub (abwesend) -> so lange Datenpunkt wahr abwesend Urlaub zu Hause (anwesend) -> so lange Datenpunkt wahr anwesend Fenster auf -> immer temp. abwesenheit Das Script füge ich an - leider klappt die mehrfache oder / und Prüfung nicht. [image: attachment%5D]![](</s><ATTACHMENT [image: 6045_blockly.jpg] )[attachment=0]~~Blockly.JPG[/attachment]" /> Ich denke, die Ursache liegt in der mehrfachen oder/und Prüfung? <xml xmlns="http://www.w3.org/1999/xhtml"><block type="comment" id="cX1G!J0hDG6ToD)LW?kF" x="-2187" y="-1212"><field name="COMMENT">Wohnzimmer</field> <next><block type="schedule" id="pM:9uP,lwl/THrOleIE%"><field name="SCHEDULE">30 * * * * *</field> <statement name="STATEMENT"><block type="variables_set" id="V[Vx:S|r}dx8hz;Sa?FM"><field name="VAR">Temperatur Anwesenheit</field> <value name="VALUE"><block type="convert_tonumber" id="]?[um.RGQ5z6rTERh-2U"><value name="VALUE"><block type="get_value" id="jMwIn4).G!Xx})P|0!GM"><field name="ATTR">val</field> <field name="OID">maxcube.0.devices.thermostat_17af81.Temperatur_Anwesenheit</field></block></value></block></value> <next><block type="variables_set" id="BHj^nA|6OvdWwQPz]J24"><field name="VAR">Temperatur Abwesenheit</field> <value name="VALUE"><block type="convert_tonumber" id="{5Q6,Ynr3IJdE?C,/Rh9"><value name="VALUE"><block type="get_value" id="|+ufD*N88su@lho}~;s/"><field name="ATTR">val</field> <field name="OID">maxcube.0.devices.thermostat_17af81.Temperatur_Abwesenheit</field></block></value></block></value> <next><block type="variables_set" id="%q+mWA{Gg:AP%[Yk,6Gc"><field name="VAR">Urlaub (abwesend)</field> <value name="VALUE"><block type="get_value" id="!d1r08_z5.|D;UZrB!Oe"><field name="ATTR">val</field> <field name="OID">maxcube.0.Urlaubsmodus_Heizung</field></block></value> <next><block type="variables_set" id="dhW3d5AudoFe(sr.[+LG"><field name="VAR">Urlaub zu Hause</field> <value name="VALUE"><block type="get_value" id="#K`vV@^j3L|E`nTe(2s:"><field name="ATTR">val</field> <field name="OID">maxcube.0.Urlaubsmodus_Heizung_zu_Hause</field></block></value> <next><block type="comment" id="#LH9Doi^a(;vLoU~#.]V"><field name="COMMENT">Prüfung welche Zeit</field> <next><block type="controls_if" id="r/%GZrD/]|aoM(IW7ZyY"><mutation elseif="1" else="1"></mutation> <value name="IF0"><block type="logic_operation" id="U/:l8Gzjr?-rPU?^k9xm"><field name="OP">OR</field> <value name="A"><block type="logic_compare" id=")TN4xNL(NW#5UVYY1#Gy"><field name="OP">EQ</field> <value name="A"><block type="get_value" id="C2k~/d3k9:2uqjO#-9_D"><field name="ATTR">val</field> <field name="OID">mihome.0.devices.magnet_158d0001c224b5.state</field></block></value> <value name="B"><block type="logic_boolean" id="cC,-grC|j@2wTQNp=^b1"><field name="BOOL">TRUE</field></block></value></block></value> <value name="B"><block type="logic_compare" id="4w:E:?Zwi%!rtm,g1U38"><field name="OP">EQ</field> <value name="A"><block type="variables_get" id="8Y.5vkEo~qm~GJ^shB64"><field name="VAR">Urlaub (abwesend)</field></block></value> <value name="B"><block type="logic_boolean" id="(`W0DmFJM#m{z`8tVZ*b"><field name="BOOL">TRUE</field></block></value></block></value></block></value> <statement name="DO0"><block type="comment" id="3vw5KY~eY^*{3c(anDv6"><field name="COMMENT">Fenster auf oder Urlaub (abwesend), dann immer 16 °C</field> <next><block type="controls_if" id="wFP57d`AO)x7=AXu-PS)"><value name="IF0"><block type="logic_compare" id=";kHU0VlqIkIvcml.X4cg"><field name="OP">NEQ</field> <value name="A"><block type="convert_tonumber" id="Mh_m,%8ZSTH:AP#djd%%"><value name="VALUE"><block type="get_value" id="p}#{6xeaKz+nCk9s?wgo"><field name="ATTR">val</field> <field name="OID">maxcube.0.devices.thermostat_17af81.setpoint</field></block></value></block></value> <value name="B"><block type="convert_tonumber" id="P.+[O5s!mTq`9CA@]?ff"><value name="VALUE"><block type="variables_get" id="`1U7E4X]+-OJ4udR/3M4"><field name="VAR">Temperatur Abwesenheit</field></block></value></block></value></block></value> <statement name="DO0"><block type="control" id="P7Z/QtYv7a%se6H;_yd["><mutation delay_input="false"></mutation> <field name="OID">maxcube.0.devices.thermostat_17af81.setpoint</field> <field name="WITH_DELAY">FALSE</field> <value name="VALUE"><block type="convert_tonumber" id="@k;#@DFo8J+ei:Uio|OM"><value name="VALUE"><block type="variables_get" id="y#/|C,)rEehh%?.gl|rC"><field name="VAR">Temperatur Abwesenheit</field></block></value></block></value> <next><block type="control" id="dg802sa2EL8AiFuoRj3M"><mutation delay_input="false"></mutation> <field name="OID">maxcube.0.devices.thermostat_17b741.setpoint</field> <field name="WITH_DELAY">FALSE</field> <value name="VALUE"><block type="convert_tonumber" id="?Y6(@pTJ?Q5Y(x(rzc3["><value name="VALUE"><block type="variables_get" id="gU(xj~a(9/@]5j~^En5*"><field name="VAR">Temperatur Abwesenheit</field></block></value></block></value></block></next></block></statement></block></next></block></statement> <value name="IF1"><block type="logic_compare" id="^%t~Sal|pi4dZbD{hSqP"><field name="OP">EQ</field> <value name="A"><block type="get_value" id="G)^#_DXXJ#63x-.X]_{O"><field name="ATTR">val</field> <field name="OID">mihome.0.devices.magnet_158d0001c224b5.state</field></block></value> <value name="B"><block type="logic_boolean" id="CU08AD*wA7}p;tF|@(=i"><field name="BOOL">FALSE</field></block></value></block></value> <statement name="DO1"><block type="comment" id="%UrT+5BQ0{A)Wt9/uTAk"><field name="COMMENT">Fenster zu - Anwesenheitszeiten</field> <next><block type="controls_if" id="RQJI^F6;ww*MYpn^IG)V"><value name="IF0"><block type="logic_operation" id="j:9j~s|uromg?JZP|F3k" inline="false"><field name="OP">OR</field> <value name="A"><block type="logic_operation" id="hX.y:X:l{o;HGUkkO%@C"><field name="OP">AND</field> <value name="A"><block type="logic_operation" id="-y/T4aGN0T2~S!wN82Q_"><field name="OP">AND</field> <value name="A"><block type="logic_compare" id="x1-c]xizbp]yy3@N5[?6"><field name="OP">NEQ</field> <value name="A"><block type="time_get" id="z`_8aeZxM.hoZCP(^g;L"><mutation format="false" language="true"></mutation> <field name="OPTION">wdt</field> <field name="LANGUAGE">de</field></block></value> <value name="B"><block type="text" id="+3tR?;]rVqcs!;;FUZ/C"><field name="TEXT">Freitag</field></block></value></block></value> <value name="B"><block type="logic_operation" id="c]YY2wlm6hEOdPo?1u-z"><field name="OP">AND</field> <value name="A"><block type="logic_compare" id="ukI~X#CYn|kk?fZHCgqs"><field name="OP">NEQ</field> <value name="A"><block type="time_get" id="`l-P(TF02Tgh*d,kPZvB"><mutation format="false" language="true"></mutation> <field name="OPTION">wdt</field> <field name="LANGUAGE">de</field></block></value> <value name="B"><block type="text" id="EWQ]0=MLLovp%Pp}#=D~"><field name="TEXT">Samstag</field></block></value></block></value> <value name="B"><block type="logic_compare" id="K;b]5}En559O4:tITB9x"><field name="OP">NEQ</field> <value name="A"><block type="time_get" id="fA=4/uJfa}o0u/gJ7u=="><mutation format="false" language="true"></mutation> <field name="OPTION">wdt</field> <field name="LANGUAGE">de</field></block></value> <value name="B"><block type="text" id="W8+nU;F(]Xfa[F6(}[OC"><field name="TEXT">Sonntag</field></block></value></block></value></block></value></block></value> <value name="B"><block type="logic_operation" id="=5fDtfy|p2Tx(foe_CRd"><field name="OP">AND</field> <value name="A"><block type="logic_compare" id=":=n(ETM[N!8](^lU47*y"><field name="OP">GTE</field> <value name="A"><block type="time_get" id="KE|lS0@+Avh)UkAsisSz"><mutation format="false" language="false"></mutation> <field name="OPTION">h</field></block></value> <value name="B"><block type="text" id=",{`o{cYv%L?i?z9M8_Nu"><field name="TEXT">5</field></block></value></block></value> <value name="B"><block type="logic_compare" id="QBU4G*(l[Y*/c1-J7g8V"><field name="OP">LTE</field> <value name="A"><block type="time_get" id="2X9H~KSFrf96HB`@We/j"><mutation format="false" language="false"></mutation> <field name="OPTION">h</field></block></value> <value name="B"><block type="text" id="g-n1cp+=E4~{!|`=JnIC"><field name="TEXT">8</field></block></value></block></value></block></value></block></value> <value name="B"><block type="logic_operation" id="^xT5*!U7OsAPgSg;qBu9" inline="false"><field name="OP">OR</field> <value name="A"><block type="logic_operation" id="OV2i?h6^?z|;Ubt*wr,p"><field name="OP">AND</field> <value name="A"><block type="logic_operation" id="9@]HYW3aiV1b5_#~o/0_"><field name="OP">AND</field> <value name="A"><block type="logic_compare" id=".3Bc~z}}ud)u_2bO}BKd"><field name="OP">NEQ</field> <value name="A"><block type="time_get" id="dRp`)T9c39WpJv1YBCe#"><mutation format="false" language="true"></mutation> <field name="OPTION">wdt</field> <field name="LANGUAGE">de</field></block></value> <value name="B"><block type="text" id=";n4ao~Lry1Px,)6t90-Y"><field name="TEXT">Freitag</field></block></value></block></value> <value name="B"><block type="logic_operation" id="/1Sk8P3_,hI!xW.@}/?m"><field name="OP">AND</field> <value name="A"><block type="logic_compare" id="=WEKotlX*zqV_5h%!NgQ"><field name="OP">NEQ</field> <value name="A"><block type="time_get" id="7@[r*RK;%41oOo#SmEtm"><mutation format="false" language="true"></mutation> <field name="OPTION">wdt</field> <field name="LANGUAGE">de</field></block></value> <value name="B"><block type="text" id="2XMxcPIs1JVFy~NLe=18"><field name="TEXT">Samstag</field></block></value></block></value> <value name="B"><block type="logic_compare" id="#Yp_ujoFbyZ}[0WoR,]S"><field name="OP">NEQ</field> <value name="A"><block type="time_get" id="9?tK/@u}X:qnnI-v5!Ly"><mutation format="false" language="true"></mutation> <field name="OPTION">wdt</field> <field name="LANGUAGE">de</field></block></value> <value name="B"><block type="text" id="0mvN4v]3(z!(|a=r%WY`"><field name="TEXT">Sonntag</field></block></value></block></value></block></value></block></value> <value name="B"><block type="logic_operation" id="oB3AQX%=MG{lSE4i7CZN"><field name="OP">AND</field> <value name="A"><block type="logic_compare" id="u`XdA#1;|MfsmO!IFNZ)"><field name="OP">GTE</field> <value name="A"><block type="time_get" id="8v0(WmajjPyH+F3u1IIf"><mutation format="false" language="false"></mutation> <field name="OPTION">h</field></block></value> <value name="B"><block type="text" id="o[?Jp)T+,;]CPC5|~|Y^"><field name="TEXT">15</field></block></value></block></value> <value name="B"><block type="logic_compare" id="dMMy:mV11Xdf%!qe8spP"><field name="OP">LTE</field> <value name="A"><block type="time_get" id="9lu?x%{ctBh(1jX@Ec[6"><mutation format="false" language="false"></mutation> <field name="OPTION">h</field></block></value> <value name="B"><block type="text" id="RWZL2b=BT(}c+uh@2,FM"><field name="TEXT">22</field></block></value></block></value></block></value></block></value> <value name="B"><block type="logic_operation" id="G?DMb`sq+TWj,CtKR5%x" inline="false"><field name="OP">OR</field> <value name="A"><block type="logic_operation" id="It(Tmozi}9+z[X{7UvqC"><field name="OP">AND</field> <value name="A"><block type="logic_operation" id="@vcT.Wk-O{T]qs1g,CTZ"><field name="OP">AND</field> <value name="A"><block type="logic_operation" id="2i#.yK-N+_zXieLy`x)d"><field name="OP">AND</field> <value name="A"><block type="logic_compare" id="0gfR`9Tlff9BUj/a+ori"><field name="OP">NEQ</field> <value name="A"><block type="time_get" id="+.7ovpNp|MUhS:Fq05:l"><mutation format="false" language="true"></mutation> <field name="OPTION">wdt</field> <field name="LANGUAGE">de</field></block></value> <value name="B"><block type="text" id="2DE~pSXiQs*)]v|oSZIj"><field name="TEXT">Montag</field></block></value></block></value> <value name="B"><block type="logic_operation" id="RMQjpKtLt9*Kyt:T`B4w"><field name="OP">AND</field> <value name="A"><block type="logic_compare" id="~]~_j9,x~MSlP%Ald]Us"><field name="OP">NEQ</field> <value name="A"><block type="time_get" id="8ApC@lH9]4:1V2*pf9cM"><mutation format="false" language="true"></mutation> <field name="OPTION">wdt</field> <field name="LANGUAGE">de</field></block></value> <value name="B"><block type="text" id="n|XMnZWg!hEdQxu/]d-D"><field name="TEXT">Dienstag</field></block></value></block></value> <value name="B"><block type="logic_compare" id="xrqm|1BXZ`X3^HF{zbfi"><field name="OP">NEQ</field> <value name="A"><block type="time_get" id="yQS-^_B.=^}f1-+bRPrF"><mutation format="false" language="true"></mutation> <field name="OPTION">wdt</field> <field name="LANGUAGE">de</field></block></value> <value name="B"><block type="text" id="{yMVoIk}x3=rv3YfCt;s"><field name="TEXT">Mittwoch</field></block></value></block></value></block></value></block></value> <value name="B"><block type="logic_compare" id="irPOC%,:NQ=wR]I#G;qT"><field name="OP">NEQ</field> <value name="A"><block type="time_get" id="(jrPobu6!YVm3YaO?35t"><mutation format="false" language="true"></mutation> <field name="OPTION">wdt</field> <field name="LANGUAGE">de</field></block></value> <value name="B"><block type="text" id="r14N-91iAFM5)TqsYPlR"><field name="TEXT">Donnerstag</field></block></value></block></value></block></value> <value name="B"><block type="logic_operation" id="13;z{WLxJ?3Pv|~aSre2"><field name="OP">AND</field> <value name="A"><block type="logic_compare" id="=C6s26m;__}qyt5l^R|v"><field name="OP">GTE</field> <value name="A"><block type="time_get" id="A!]9[s6KSIwP78trSR}Q"><mutation format="false" language="false"></mutation> <field name="OPTION">h</field></block></value> <value name="B"><block type="text" id="fhf1m10xX?Y[+~(:TFf?"><field name="TEXT">5</field></block></value></block></value> <value name="B"><block type="logic_compare" id="DT4)G4%uWXHEh/IA!jAa"><field name="OP">LTE</field> <value name="A"><block type="time_get" id="HvNp[=vbs%)W=vSL]PKg"><mutation format="false" language="false"></mutation> <field name="OPTION">h</field></block></value> <value name="B"><block type="text" id="kvqGaAXOKi8^IE]`1db:"><field name="TEXT">22</field></block></value></block></value></block></value></block></value> <value name="B"><block type="logic_operation" id="o2GaJ+MNp78mladF%(H*" inline="false"><field name="OP">OR</field> <value name="A"><block type="logic_operation" id="f5l/I6N5DraNSZ]PIJZ)"><field name="OP">AND</field> <value name="A"><block type="logic_compare" id="h?v~#{(mi6y-J=^s).(2"><field name="OP">EQ</field> <value name="A"><block type="get_value" id="8tYE}RaPG,CCaKd#9CUH"><field name="ATTR">val</field> <field name="OID">feiertage.0.heute.boolean</field></block></value> <value name="B"><block type="logic_boolean" id="J[S1K#,-N~yastpkrIbY"><field name="BOOL">TRUE</field></block></value></block></value> <value name="B"><block type="logic_operation" id="nihZM*_:a=p_%Av*=D3Q"><field name="OP">AND</field> <value name="A"><block type="logic_compare" id="=e}/cc.Dzu?fdqAZae!0"><field name="OP">GTE</field> <value name="A"><block type="time_get" id="76Hjfl!j![Kr.g6Y_p9A"><mutation format="false" language="false"></mutation> <field name="OPTION">h</field></block></value> <value name="B"><block type="text" id="L-`^MBil@9RW7CfLD9]i"><field name="TEXT">5</field></block></value></block></value> <value name="B"><block type="logic_compare" id="r-?w+VsTai-T7a(6{-B}"><field name="OP">LTE</field> <value name="A"><block type="time_get" id=":4chG#S2EtiX`|b0go;L"><mutation format="false" language="false"></mutation> <field name="OPTION">h</field></block></value> <value name="B"><block type="text" id="EzZV/6fU?|*|9bNj_5DJ"><field name="TEXT">22</field></block></value></block></value></block></value></block></value> <value name="B"><block type="logic_operation" id="jx!ecj1k)ON/95Cy(w;V"><field name="OP">AND</field> <value name="A"><block type="logic_compare" id="bZe_I472}r^ZSaHG3J^@"><field name="OP">EQ</field> <value name="A"><block type="get_value" id=":nS3U/WV`{,e^Y=.=MI8"><field name="ATTR">val</field> <field name="OID">maxcube.0.Urlaubsmodus_Heizung_zu_Hause</field></block></value> <value name="B"><block type="logic_boolean" id="K3e%R!2E~taXCBb*SsU~"><field name="BOOL">TRUE</field></block></value></block></value> <value name="B"><block type="logic_operation" id="EYa]dfsa?HwyfDmM|{j["><field name="OP">AND</field> <value name="A"><block type="logic_compare" id="j7Lv@TvM57cJUE~-D^F^"><field name="OP">GTE</field> <value name="A"><block type="time_get" id="l8iP]=UQJKpf`m%?l7)N"><mutation format="false" language="false"></mutation> <field name="OPTION">h</field></block></value> <value name="B"><block type="text" id="nI[tn{c3x`X%8Mv*`*#M"><field name="TEXT">5</field></block></value></block></value> <value name="B"><block type="logic_compare" id="Zo2-QHH)NLtO-KMgUyBi"><field name="OP">LTE</field> <value name="A"><block type="time_get" id="!(U2Hl`(YX7o39Ys[Gtt"><mutation format="false" language="false"></mutation> <field name="OPTION">h</field></block></value> <value name="B"><block type="text" id="}FNlRr3)0}iM]TJItA+#"><field name="TEXT">22</field></block></value></block></value></block></value></block></value></block></value></block></value></block></value></block></value> <statement name="DO0"><block type="controls_if" id="sHz`QBr#uOo2W#P]gNt%"><value name="IF0"><block type="logic_compare" id="*~(0eSBkcD}cLDdO6(;A"><field name="OP">NEQ</field> <value name="A"><block type="convert_tonumber" id=".q3E.X_#Mxed{*LfDJU,"><value name="VALUE"><block type="get_value" id="XhO?E(~dxAr*P^oDSw_h"><field name="ATTR">val</field> <field name="OID">maxcube.0.devices.thermostat_17af81.setpoint</field></block></value></block></value> <value name="B"><block type="convert_tonumber" id="GZ/G*%fKykbl{4@WqshZ"><value name="VALUE"><block type="variables_get" id="7T-vF7zf!Nhp;lU0w(pI"><field name="VAR">Temperatur Anwesenheit</field></block></value></block></value></block></value> <statement name="DO0"><block type="control" id="?UH*LK#P8@`qeQwX#zs_"><mutation delay_input="false"></mutation> <field name="OID">maxcube.0.devices.thermostat_17af81.setpoint</field> <field name="WITH_DELAY">FALSE</field> <value name="VALUE"><block type="convert_tonumber" id="okH3M(a}t%nI_9;u!x]M"><value name="VALUE"><block type="variables_get" id=",O*:W-48BM@`{k*0PM0D"><field name="VAR">Temperatur Anwesenheit</field></block></value></block></value> <next><block type="control" id="[vO@_4,89T5DupY_w+q!"><mutation delay_input="false"></mutation> <field name="OID">maxcube.0.devices.thermostat_17b741.setpoint</field> <field name="WITH_DELAY">FALSE</field> <value name="VALUE"><block type="convert_tonumber" id="^;hVNQ:cJ(+uk#w7suY("><value name="VALUE"><block type="variables_get" id="/HM4J^E@:+QRFItD`hHy"><field name="VAR">Temperatur Anwesenheit</field></block></value></block></value></block></next></block></statement></block></statement></block></next></block></statement> <statement name="ELSE"><block type="comment" id="uwg:/4q9:n:Ll;dS-)P#"><field name="COMMENT">sonst - Abwesenheitszeiten</field> <next><block type="controls_if" id="YV5L~;rU^{@Zws)5TsC4"><value name="IF0"><block type="logic_compare" id="@J]Hch[%rzTnp99AT}24"><field name="OP">NEQ</field> <value name="A"><block type="convert_tonumber" id="s9,06s]R}8qT/,kwMh4d"><value name="VALUE"><block type="get_value" id="8Yh)kK`RO21kR]M[xaa;"><field name="ATTR">val</field> <field name="OID">maxcube.0.devices.thermostat_17af81.setpoint</field></block></value></block></value> <value name="B"><block type="convert_tonumber" id="*quGbP#nTOU:iEcY@g-d"><value name="VALUE"><block type="variables_get" id="/j#.u``BTm/T+xpLvv?3"><field name="VAR">Temperatur Abwesenheit</field></block></value></block></value></block></value> <statement name="DO0"><block type="control" id="~x{xSfS%_l.R]=;8B2IC"><mutation delay_input="false"></mutation> <field name="OID">maxcube.0.devices.thermostat_17af81.setpoint</field> <field name="WITH_DELAY">FALSE</field> <value name="VALUE"><block type="convert_tonumber" id="_!Hrce1UWn{JG94N+]A{"><value name="VALUE"><block type="variables_get" id="BuF9Tz/MwxgCD-F9yt]/"><field name="VAR">Temperatur Abwesenheit</field></block></value></block></value> <next><block type="control" id="}sh1A8Rl)W*ROaXX8Eei"><mutation delay_input="false"></mutation> <field name="OID">maxcube.0.devices.thermostat_17b741.setpoint</field> <field name="WITH_DELAY">FALSE</field> <value name="VALUE"><block type="convert_tonumber" id="ttgdhK9KG`XCM23^*;zS"><value name="VALUE"><block type="variables_get" id="wiy%Qha9)}R@@{ICMV_a"><field name="VAR">Temperatur Abwesenheit</field></block></value></block></value></block></next></block></statement></block></next></block></statement></block></next></block></next></block></next></block></next></block></next></block></statement> <next><block type="comment" id="|ejuyTgxWQ9+lJX^D8;j"><field name="COMMENT">Temperatur Anwesenheit geändert</field> <next><block type="on_ext" id="L!LpTo+O+nOjbQiiALj7"><mutation items="1"></mutation> <field name="CONDITION">ne</field> <value name="OID0"><shadow type="field_oid" id="plcS(!qOo3L2pWRzvW.*"><field name="oid">maxcube.0.devices.thermostat_1a3adf.Wunschtemperatur_Anwesenheit</field></shadow></value> <statement name="STATEMENT"><block type="timeouts_settimeout" id="PW*-U+^J/D8|b!P@KmPT"><field name="NAME">timeout8</field> <field name="DELAY">7</field> <field name="UNIT">sec</field> <statement name="STATEMENT"><block type="telegram" id="b7yQJjNhZ7;G|uBRhw[}"><field name="INSTANCE">.0</field> <value name="MESSAGE"><shadow type="text" id="T6BNcC0Kf_+{phIQ9w;,"><field name="TEXT">text</field></shadow> <block type="text_join" id="B`j,O8-]seSn{N}@7-[:"><mutation items="5"></mutation> <value name="ADD0"><block type="text" id="U3fm,4z2|}s/9QKzMo7t"><field name="TEXT">Temperatur Anwesenheit für das Wohnzimmer wurde aktualisiert. Die neue Temperaturvorgabe lautet:</field></block></value> <value name="ADD1"><block type="convert_tostring" id=")^`B-kn(k4t8Na|RJX8O"><value name="VALUE"><block type="variables_get" id="or9oi)nlVV{Oi#,]`E-J"><field name="VAR">Temperatur Anwesenheit</field></block></value></block></value> <value name="ADD2"><block type="text" id=".Xf*h(LOYS#2fSIaGsTv"><field name="TEXT">°C. Die Temperatur Abwesenheit für das Wohnzimmer ist auf</field></block></value> <value name="ADD3"><block type="convert_tostring" id="kbiT`@uiRWI5+^Ya~m^O"><value name="VALUE"><block type="variables_get" id="#N6{WQpeuoz*e.a:`s-A"><field name="VAR">Temperatur Abwesenheit</field></block></value></block></value> <value name="ADD4"><block type="text" id="gxACS_V8]%2eXK9ar_M;"><field name="TEXT"> °C eingestellt.</field></block></value></block></value></block></statement></block></statement> <next><block type="comment" id="5Rco^rhfd5haJ!5}:f--"><field name="COMMENT">Urlaubsmodus zu Hause aktiviert</field> <next><block type="on_ext" id="k7w=Hvf7LvF`RQOlzKn4"><mutation items="1"></mutation> <field name="CONDITION">true</field> <value name="OID0"><shadow type="field_oid" id="eH^+.raa^UjWjwj0f+}6"><field name="oid">maxcube.0.Urlaubsmodus_Heizung_zu_Hause</field></shadow></value> <statement name="STATEMENT"><block type="timeouts_settimeout" id=")wc9IFz,~2]^Y?U6FB*K"><field name="NAME">timeout14</field> <field name="DELAY">5</field> <field name="UNIT">sec</field> <statement name="STATEMENT"><block type="telegram" id="N_mpRs0NH:BQbeMv[ChI"><field name="INSTANCE">.0</field> <value name="MESSAGE"><shadow type="text" id="T6BNcC0Kf_+{phIQ9w;,"><field name="TEXT">text</field></shadow> <block type="text_join" id="q54Z@9DpFY4GwRA|NTX3"><mutation items="5"></mutation> <value name="ADD0"><block type="text" id="~bw6V@,:`-n#mtF}A4:~"><field name="TEXT">Modus Urlaub zu Hause wurde aktiviert. Die Temperatur Anwesenheit für das Wohnzimmer wurde auf:</field></block></value> <value name="ADD1"><block type="convert_tostring" id="G4EWS|b%%F#W:8ot)`O*"><value name="VALUE"><block type="variables_get" id="{3:typbeP*4p#.T.O;y?"><field name="VAR">Temperatur Anwesenheit</field></block></value></block></value> <value name="ADD2"><block type="text" id="N;%_)I-w)Y7]*v/%GGG-"><field name="TEXT">°C eingestellt. Die Temperatur Abwesenheit für das Wohnzimmer ist auf</field></block></value> <value name="ADD3"><block type="convert_tostring" id="ahs[ursv-HK?dmW6FPB3"><value name="VALUE"><block type="variables_get" id="0mS@FqbNhH/L1YWEv=P9"><field name="VAR">Temperatur Abwesenheit</field></block></value></block></value> <value name="ADD4"><block type="text" id="dChKVQ]!vKH*zVn}#j@*"><field name="TEXT"> °C eingestellt.</field></block></value></block></value></block></statement></block></statement></block></next></block></next></block></next></block></next></block></next></block></xml> ````~~
  • Zeit messen, in der ein Luftentfeuchter an war

    Verschoben
    7
    0 Stimmen
    7 Beiträge
    1k Aufrufe
    J
    Deine Kreativität ist aber auch nicht wirklich ausgeprägt. Mach doch ne "wenn" Bedingung zum Datum rein und schreib das ganze in eine Variable.
  • Über Script Raumnamen vergeben

    Verschoben
    1
    0 Stimmen
    1 Beiträge
    272 Aufrufe
    Niemand hat geantwortet
  • Blockly - Wartezeit

    Verschoben
    3
    1
    0 Stimmen
    3 Beiträge
    790 Aufrufe
    W
    Hatte das selbe Problem, leider auch mit dem anderen Script. Also hatte ich mir auf Basis der Script ein eigenes mit entsprechenden Warteschleifen geschrieben. Nutze ich beim Trockner und der Waschmaschine und funktioniert seit mehreren Wochen fehlerfrei. Vielleicht hilft es dir ja auch. Ist ein blockly zum importieren. <xml xmlns="http://www.w3.org/1999/xhtml"><block type="comment" id="(vOoGTR5frETe?khXhT~" x="63" y="13"><field name="COMMENT">Leistung in Variable schreiben</field> <next><block type="on_ext" id="d6M.pWP)`OgJKU%c0+i}"><mutation items="1"></mutation> <field name="CONDITION">ne</field> <value name="OID0"><shadow type="field_oid" id="Ri/D+5;s/87F@Df;A38x"><field name="oid">default</field></shadow> <block type="field_oid" id="he_(Vo^(RWqh%8c4CtM="><field name="oid">sonoff.0.DVES_800849.ENERGY_Power</field></block></value> <statement name="STATEMENT"><block type="variables_set" id="1[IeLhtI|mUYd]ujo?)Z"><field name="VAR">Power</field> <value name="VALUE"><block type="get_value" id="DAotn55X+!}YgQlAnZo8"><field name="ATTR">val</field> <field name="OID">sonoff.0.DVES_800849.ENERGY_Power</field></block></value> <next><block type="debug" id="+hzw6x:hHMb7U}qfJ6H:" disabled="true"><field name="Severity">log</field> <value name="TEXT"><shadow type="text" id="?Q29r0./p*(qcJ^.?|]o"><field name="TEXT">test</field></shadow> <block type="text_join" id="F*}3C~TSAbjSL|%/@K`j"><mutation items="3"></mutation> <value name="ADD0"><block type="text" id="SSBw#.)bS~wPlt2OuKWX"><field name="TEXT">Waschmaschine:</field></block></value> <value name="ADD1"><block type="variables_get" id="Nhp.,!:Ar,8eUHN10G?{"><field name="VAR">Power</field></block></value> <value name="ADD2"><block type="text" id=".:4H/t:bNjV0]OEwd)(g"><field name="TEXT">Watt</field></block></value></block></value></block></next></block></statement> <next><block type="comment" id="kZ/IMD2)K[zRFW2-=]d-"><field name="COMMENT">Grenzwert in Watt für Aktivierung setzen</field> <next><block type="variables_set" id="+6%wNy)GbnFqrg~23^]T"><field name="VAR">Grenzwert</field> <value name="VALUE"><block type="math_number" id="=a2;sZP}VTlF,2J3|dgw"><field name="NUM">20</field></block></value> <next><block type="variables_set" id="a,@Ud,IT.Gf!NTqhF?pH"><field name="VAR">Verzögerung</field> <value name="VALUE"><block type="logic_boolean" id="2q;)_=/2_!TS*~4JX^2o"><field name="BOOL">FALSE</field></block></value> <next><block type="comment" id="YUx!N5Wl3%E/l31l.Bfi"><field name="COMMENT">Status Start Waschmaschine</field> <next><block type="on_ext" id="`gux!^K=2qsc5Jr95z!M"><mutation items="1"></mutation> <field name="CONDITION">any</field> <value name="OID0"><shadow type="field_oid" id="[768r[WE@r]WXV60qt*_"><field name="oid">default</field></shadow> <block type="field_oid" id="j}a%[`BQC9dEu,82{t4l"><field name="oid">sonoff.0.DVES_800849.ENERGY_Power</field></block></value> <statement name="STATEMENT"><block type="controls_if" id=";Sznk`+@%8FgO`a8AgEz"><mutation elseif="1"></mutation> <value name="IF0"><block type="logic_operation" id="y@(anG6v/)cfdM2nDE:b" inline="false"><field name="OP">AND</field> <value name="A"><block type="logic_operation" id="f1=Xaf#MtOkEQU!L`WVk" inline="false"><field name="OP">AND</field> <value name="A"><block type="logic_compare" id="S(tTei{q~)g|e.g6~pHb"><field name="OP">GTE</field> <value name="A"><block type="variables_get" id="q_Zp*KhDx@c|IYXG5Ht?"><field name="VAR">Power</field></block></value> <value name="B"><block type="variables_get" id="!Mr;ic1%3hC-/fmu353r"><field name="VAR">Grenzwert</field></block></value></block></value> <value name="B"><block type="logic_compare" id="+T,:A3QX=GBtsv}Y,QSA"><field name="OP">EQ</field> <value name="A"><block type="get_value" id="7dSd}_4n-_62HT,o_`b7"><field name="ATTR">val</field> <field name="OID">javascript.0.Waschmaschine.Status_Waschmaschine_an</field></block></value> <value name="B"><block type="math_number" id=".9@TcTCYUp2u#k3KI1v%"><field name="NUM">0</field></block></value></block></value></block></value> <value name="B"><block type="logic_compare" id="Po+V#rLl;T_N)+*{H||z"><field name="OP">EQ</field> <value name="A"><block type="variables_get" id="2Oqc_R7It1H0D=I6`5B/"><field name="VAR">Verzögerung</field></block></value> <value name="B"><block type="logic_boolean" id="*|}%N|V/8Kd!il~zZ^az"><field name="BOOL">FALSE</field></block></value></block></value></block></value> <statement name="DO0"><block type="variables_set" id="nBAP;N~5t?::PSiUdiVS"><field name="VAR">Verzögerung</field> <value name="VALUE"><block type="logic_boolean" id="9PaN2h^:=9UAuPt)cII2"><field name="BOOL">TRUE</field></block></value> <next><block type="variables_set" id="k#X/TXj2KNI=y!TR9]Zn"><field name="VAR">Stromzähler_Beginn</field> <value name="VALUE"><block type="get_value" id="OM*NAC%5;~o7c!v~wj1o"><field name="ATTR">val</field> <field name="OID">sonoff.0.DVES_800849.ENERGY_Total</field></block></value> <next><block type="debug" id="4UQDIU^05=NOcX=c6hbI"><field name="Severity">log</field> <value name="TEXT"><shadow type="text" id="?Q29r0./p*(qcJ^.?|]o"><field name="TEXT">test</field></shadow> <block type="text" id="6ew:E1TS;^Ld?M^U65Rr"><field name="TEXT">Waschmaschine: Starttimer gestartet</field></block></value> <next><block type="timeouts_settimeout" id="m#wid=8a`TmHWCZ0G)1@"><field name="NAME">Starttimer</field> <field name="DELAY">2</field> <field name="UNIT">min</field> <statement name="STATEMENT"><block type="variables_set" id="#QENGD`QYeOwA23OPPL*"><field name="VAR">Verzögerung</field> <value name="VALUE"><block type="logic_boolean" id="OC9663bK{rw#jFSGdmLx"><field name="BOOL">FALSE</field></block></value> <next><block type="update" id="C:0O2m%+rRF!z{aJx;v8"><mutation delay_input="false"></mutation> <field name="OID">javascript.0.Waschmaschine.Status_Waschmaschine_an</field> <field name="WITH_DELAY">FALSE</field> <value name="VALUE"><block type="math_number" id="-t_Z=bhYov!vfhfs=`;f"><field name="NUM">1</field></block></value></block></next></block></statement></block></next></block></next></block></next></block></statement> <value name="IF1"><block type="logic_operation" id=",zaXpk:,!.Qt.(21tL}`" inline="false"><field name="OP">AND</field> <value name="A"><block type="logic_operation" id="TfQvZ=Z+er=J{.=BR8=S" inline="false"><field name="OP">AND</field> <value name="A"><block type="logic_compare" id=")_KORZZqX92!nWq#JReH"><field name="OP">LT</field> <value name="A"><block type="variables_get" id="*1u.aDrJckz+t3xY+oS*"><field name="VAR">Power</field></block></value> <value name="B"><block type="variables_get" id="ZtJdi|FcY-v_F[y-_o%z"><field name="VAR">Grenzwert</field></block></value></block></value> <value name="B"><block type="logic_compare" id="-x=X@g|S5jLHb@o,fo8l"><field name="OP">EQ</field> <value name="A"><block type="get_value" id="iV]uJNtW=dR9,uLAlx#F"><field name="ATTR">val</field> <field name="OID">javascript.0.Waschmaschine.Status_Waschmaschine_an</field></block></value> <value name="B"><block type="math_number" id="+d(QC/`:AL)}PmML7s+!"><field name="NUM">0</field></block></value></block></value></block></value> <value name="B"><block type="logic_compare" id="%1F5XcZlZ6]wqC5?Ipgw"><field name="OP">EQ</field> <value name="A"><block type="variables_get" id="8M@;;.Cgj]cixO+9evzm"><field name="VAR">Verzögerung</field></block></value> <value name="B"><block type="logic_boolean" id="Bq(y-T#/F8/fJM[[N!.E"><field name="BOOL">TRUE</field></block></value></block></value></block></value> <statement name="DO1"><block type="variables_set" id="O,%_]xX7H2cMhJ?Aw{=L"><field name="VAR">Verzögerung</field> <value name="VALUE"><block type="logic_boolean" id="1kst`,lil+L.LcUiN[.^"><field name="BOOL">FALSE</field></block></value> <next><block type="debug" id="I`B*l}]pJSJ%)li(Vcr/"><field name="Severity">log</field> <value name="TEXT"><shadow type="text" id="?Q29r0./p*(qcJ^.?|]o"><field name="TEXT">test</field></shadow> <block type="text" id="KH:Uu.,Xi[JKEsf?Y`%u"><field name="TEXT">Waschmaschine: Starttimer gestoppt</field></block></value> <next><block type="timeouts_cleartimeout" id="@Yx/J(P%e[0@7fN,D:~6"><field name="NAME">Starttimer</field></block></next></block></next></block></statement></block></statement> <next><block type="on_ext" id="AB7RsUDbmCW)nkEh3}f~"><mutation items="1"></mutation> <field name="CONDITION">any</field> <value name="OID0"><shadow type="field_oid" id="Z~`I;z+k%9{_5{4UKwY`"><field name="oid">default</field></shadow> <block type="field_oid" id="@XP.YVA!@?|i#y1#B|s|"><field name="oid">sonoff.0.DVES_800849.ENERGY_Power</field></block></value> <statement name="STATEMENT"><block type="controls_if" id="V;(A3H4nO1Bf/g^X7C~t"><mutation elseif="1"></mutation> <value name="IF0"><block type="logic_operation" id="rILIFCO!hLSf,=8*;2gD" inline="false"><field name="OP">AND</field> <value name="A"><block type="logic_operation" id="@/ijpGU{x.Wr3{k?ELCM" inline="false"><field name="OP">AND</field> <value name="A"><block type="logic_compare" id="gfkv~!edP-c2w%7U?l?*"><field name="OP">LT</field> <value name="A"><block type="variables_get" id="DONZ294H{|jbuV6Dl4}n"><field name="VAR">Power</field></block></value> <value name="B"><block type="variables_get" id="gNk(rnVV|~G!:.W8nch,"><field name="VAR">Grenzwert</field></block></value></block></value> <value name="B"><block type="logic_compare" id="nJAg}-qHVIqy[hNS~U[#"><field name="OP">EQ</field> <value name="A"><block type="get_value" id="(Ni?A`[D-tvmBW#yvcO*"><field name="ATTR">val</field> <field name="OID">javascript.0.Waschmaschine.Status_Waschmaschine_an</field></block></value> <value name="B"><block type="math_number" id="~_#6tn,?iS[8iTP%iBuQ"><field name="NUM">1</field></block></value></block></value></block></value> <value name="B"><block type="logic_compare" id=":CM16Qtgj/*{FqZcFXT!"><field name="OP">EQ</field> <value name="A"><block type="variables_get" id="xtM*o^kM:xa[cbaLVtli"><field name="VAR">Verzögerung</field></block></value> <value name="B"><block type="logic_boolean" id="GV6s#{.zY1}t_YqivWuQ"><field name="BOOL">FALSE</field></block></value></block></value></block></value> <statement name="DO0"><block type="variables_set" id="989Jqd|XZY#E(VuSl@N{"><field name="VAR">Verzögerung</field> <value name="VALUE"><block type="logic_boolean" id="r{FqD~%ug5DBM1?k759T"><field name="BOOL">TRUE</field></block></value> <next><block type="debug" id="yJ|c8uI34Pk!H.:Qo09g"><field name="Severity">log</field> <value name="TEXT"><shadow type="text" id="?Q29r0./p*(qcJ^.?|]o"><field name="TEXT">test</field></shadow> <block type="text" id="6E!T=[/LzKd^.H=%RQ*H"><field name="TEXT">Waschmaschine: Stoptimer gestartet</field></block></value> <next><block type="timeouts_settimeout" id=",-v1ao!V|k`m/NeP?Ail"><field name="NAME">Stoptimer</field> <field name="DELAY">10</field> <field name="UNIT">min</field> <statement name="STATEMENT"><block type="variables_set" id="vK9R3GI+MKSa}ir1#hE6"><field name="VAR">Verzögerung</field> <value name="VALUE"><block type="logic_boolean" id="nA(#VtGq-9gWHTGgbm8%"><field name="BOOL">FALSE</field></block></value> <next><block type="variables_set" id=")n?iK+mRvw_c0SfI`MG_"><field name="VAR">Stromzähler_Ende</field> <value name="VALUE"><block type="get_value" id="[.8/1(p6+Yg0/3uF(75I"><field name="ATTR">val</field> <field name="OID">sonoff.0.DVES_800849.ENERGY_Total</field></block></value> <next><block type="variables_set" id="L%#R)=ULYcK`XdP}J)*+"><field name="VAR">Stromverbrauch</field> <value name="VALUE"><block type="math_arithmetic" id="aj?xu_8F6(kKwNkm*OR^"><field name="OP">DIVIDE</field> <value name="A"><shadow type="math_number" id="xkvXpH}^y_%EZ-q-T_jq"><field name="NUM">1</field></shadow> <block type="math_round" id="LIS;;Rccg41?G;QR{JfI"><field name="OP">ROUND</field> <value name="NUM"><shadow type="math_number" id="[~c+blf9GQ03OV%WHS3a"><field name="NUM">3.1</field></shadow> <block type="math_arithmetic" id="B{?HiiV`v[qf!*ojx?g@"><field name="OP">MULTIPLY</field> <value name="A"><shadow type="math_number" id="cKL.vDT@U1AdMje#(|U#"><field name="NUM">1</field></shadow> <block type="math_arithmetic" id="EBW37VKFg32D87)7H35k"><field name="OP">MINUS</field> <value name="A"><shadow type="math_number" id="K:C1[slGeKPmKYP;53g-"><field name="NUM">1</field></shadow> <block type="variables_get" id="h3!255L?egBZ_%[A.H3x"><field name="VAR">Stromzähler_Ende</field></block></value> <value name="B"><shadow type="math_number" id="3pkhNKo--EJWfr%P:*,v"><field name="NUM">1</field></shadow> <block type="variables_get" id="8kz{cSCJi;F;):mekIC^"><field name="VAR">Stromzähler_Beginn</field></block></value></block></value> <value name="B"><shadow type="math_number" id="K]8F5W`#%5%TMVJ(*ZGP"><field name="NUM">100</field></shadow></value></block></value></block></value> <value name="B"><shadow type="math_number" id="Q-Poc:9*w=T6GBZ)WMyt"><field name="NUM">100</field></shadow></value></block></value> <next><block type="update" id="!E?IyjE^,)ll{V@*fDAY"><mutation delay_input="false"></mutation> <field name="OID">javascript.0.Waschmaschine.Status_Waschmaschine_an</field> <field name="WITH_DELAY">FALSE</field> <value name="VALUE"><block type="math_number" id="i6fCWki(N;AWRvN;z8u]"><field name="NUM">0</field></block></value></block></next></block></next></block></next></block></statement></block></next></block></next></block></statement> <value name="IF1"><block type="logic_operation" id="/xBxjS?0OhHSqa`9)s,?" inline="false"><field name="OP">AND</field> <value name="A"><block type="logic_operation" id="[_JqQ@#qbQB(}pdrrGjI" inline="false"><field name="OP">AND</field> <value name="A"><block type="logic_compare" id="K|,AJnA[kzB2qx5gKtlm"><field name="OP">GTE</field> <value name="A"><block type="variables_get" id="f=5E/JJYTej;lY44*Fe^"><field name="VAR">Power</field></block></value> <value name="B"><block type="variables_get" id="2yE9NYW63RS%q;~6FndA"><field name="VAR">Grenzwert</field></block></value></block></value> <value name="B"><block type="logic_compare" id="t1O1a.|5SI~g?O,*DLA3"><field name="OP">EQ</field> <value name="A"><block type="get_value" id="OG@ukPw5L-}Td#/3;H_H"><field name="ATTR">val</field> <field name="OID">javascript.0.Waschmaschine.Status_Waschmaschine_an</field></block></value> <value name="B"><block type="math_number" id="DJ+F!dh_vN(7}Xx?DV2H"><field name="NUM">1</field></block></value></block></value></block></value> <value name="B"><block type="logic_compare" id="k4FN-cci%n5,a|QuxG.1"><field name="OP">EQ</field> <value name="A"><block type="variables_get" id="PGeOOBAXJwN(LxCkB36c"><field name="VAR">Verzögerung</field></block></value> <value name="B"><block type="logic_boolean" id="VaI-9ScU*KRVt)Pr3Qm5"><field name="BOOL">TRUE</field></block></value></block></value></block></value> <statement name="DO1"><block type="variables_set" id="yWxH3L#MS~6Uo-)cq~!n"><field name="VAR">Verzögerung</field> <value name="VALUE"><block type="logic_boolean" id="!dpwF?iZIAD~9)Kk!rNI"><field name="BOOL">FALSE</field></block></value> <next><block type="debug" id="2H]KdV(yRO!NUL*-^!9|"><field name="Severity">log</field> <value name="TEXT"><shadow type="text" id="?Q29r0./p*(qcJ^.?|]o"><field name="TEXT">test</field></shadow> <block type="text" id="DJU;D,F^yAoS%hU=L3Jx"><field name="TEXT">Waschmaschine: Stoptimer gestoppt</field></block></value> <next><block type="timeouts_cleartimeout" id="=4)Uk8XI8lj@=hOmW|w#"><field name="NAME">Stoptimer</field></block></next></block></next></block></statement></block></statement> <next><block type="on_ext" id="Zm17lH5BRYSXyFD0u,T["><mutation items="1"></mutation> <field name="CONDITION">ne</field> <value name="OID0"><shadow type="field_oid" id="Q4-zUQfI121zR4ZlUa|N"><field name="oid">javascript.0.Waschmaschine.Status_Waschmaschine_an</field></shadow></value> <statement name="STATEMENT"><block type="controls_if" id="BA!1tq1H-DjL;h%sa|zE"><mutation else="1"></mutation> <value name="IF0"><block type="logic_compare" id=".~Bv)P0a28xr#`x:2@;A"><field name="OP">EQ</field> <value name="A"><block type="get_value" id="RuiAt1|zN_h9Ec+?f@0r"><field name="ATTR">val</field> <field name="OID">javascript.0.Waschmaschine.Status_Waschmaschine_an</field></block></value> <value name="B"><block type="math_number" id=")l;FPI!3vlL!pR9p|[}V"><field name="NUM">1</field></block></value></block></value> <statement name="DO0"><block type="procedures_callnoreturn" id="?Ij3`uV(]buqEWYz.~1!" disabled="true"><mutation name="Melden mit"><arg name="Meldetext"></arg></mutation> <value name="ARG0"><block type="text" id="Flm.ByLL|]3V|4,vVJ6J"><field name="TEXT">Waschvorgang wurde gestartet. Waschmaschine aktiv.</field></block></value></block></statement> <statement name="ELSE"><block type="procedures_callnoreturn" id="G7~+/J7+Wy/w;540p3U)"><mutation name="Melden mit"><arg name="Meldetext"></arg></mutation> <value name="ARG0"><block type="text_join" id="xhB{Xod1[:xH~}uC(nQ#"><mutation items="3"></mutation> <value name="ADD0"><block type="text" id="j-+aZ%;H4OOtxx^~72:*"><field name="TEXT">Waschvorgang ist beendet. Waschmaschine fertig. Stromverbrauch für Waschvorgang lag bei</field></block></value> <value name="ADD1"><block type="variables_get" id="^XxddfoVq/#TuYcm_bY1"><field name="VAR">Stromverbrauch</field></block></value> <value name="ADD2"><block type="text" id="=t~W/3Q|lHC2ON*CSML|"><field name="TEXT"> kWh.</field></block></value></block></value></block></statement></block></statement> <next><block type="on_ext" id="6u-NYU@q76J6`8C)IO{3"><mutation items="1"></mutation> <field name="CONDITION">ne</field> <value name="OID0"><shadow type="field_oid" id="SgKyd!=W]#wRsufq.T62"><field name="oid">javascript.0.Waschmaschine.Status_Waschmaschine_an</field></shadow></value> <statement name="STATEMENT"><block type="controls_if" id="i.q,BMJBhzo?2;7^;yn6"><mutation elseif="1"></mutation> <value name="IF0"><block type="logic_compare" id="x8,XXcspBuVtE(4Asd!8" inline="false"><field name="OP">EQ</field> <value name="A"><block type="get_value" id="fg+@gPzxriK3Kw./[;33"><field name="ATTR">val</field> <field name="OID">javascript.0.Waschmaschine.Status_Waschmaschine_an</field></block></value> <value name="B"><block type="math_number" id="r{)cC84r8:N._uyo0=MK"><field name="NUM">1</field></block></value></block></value> <statement name="DO0"><block type="update" id="+EXz[5_tROsVc4oq_QRM"><mutation delay_input="false"></mutation> <field name="OID">javascript.0.Waschmaschine.Status_Waschmaschine_aus_an_fertig</field> <field name="WITH_DELAY">FALSE</field> <value name="VALUE"><block type="math_number" id="B`;x{rdC#{4{c_!BK?et"><field name="NUM">1</field></block></value> <next><block type="timeouts_cleartimeout" id="|O{|X4wX({41hA/HI//:"><field name="NAME">AnAusFertig</field> <next><block type="debug" id="l4h(iQy;Dk3XgFQd:wkL"><field name="Severity">log</field> <value name="TEXT"><shadow type="text" id="WTy~QA?c%BA^~F,vGXlO"><field name="TEXT">Waschmaschine aktiv</field></shadow></value></block></next></block></next></block></statement> <value name="IF1"><block type="logic_operation" id="/BMJ4BZ6hQt+bm!6c!PH" inline="false"><field name="OP">AND</field> <value name="A"><block type="logic_compare" id="jrs8jCbJ1IMz/1fNHLcT" inline="false"><field name="OP">EQ</field> <value name="A"><block type="get_value" id="w]R,])oZ1RN[Oz1,+T#q"><field name="ATTR">val</field> <field name="OID">javascript.0.Waschmaschine.Status_Waschmaschine_an</field></block></value> <value name="B"><block type="math_number" id="Q^9w=mGOH+nFr/5b9AL|"><field name="NUM">0</field></block></value></block></value> <value name="B"><block type="logic_compare" id="9(~SCj1h{b=_~d#Eqyi=" inline="false"><field name="OP">EQ</field> <value name="A"><block type="get_value" id="mqB{T@%Vu=Y:kmwprdg@"><field name="ATTR">val</field> <field name="OID">javascript.0.Waschmaschine.Status_Waschmaschine_aus_an_fertig</field></block></value> <value name="B"><block type="math_number" id="BK|Z3-?F@hzPVL2yWx_u"><field name="NUM">1</field></block></value></block></value></block></value> <statement name="DO1"><block type="update" id="8.PtxB0Z~ZY?6`,X2+`T"><mutation delay_input="false"></mutation> <field name="OID">javascript.0.Waschmaschine.Status_Waschmaschine_aus_an_fertig</field> <field name="WITH_DELAY">FALSE</field> <value name="VALUE"><block type="math_number" id="7SijuWs,T4h!oO]!+c(r"><field name="NUM">2</field></block></value> <next><block type="debug" id="a3iK,{AE3=xE@yX,6qrE"><field name="Severity">log</field> <value name="TEXT"><shadow type="text" id="WCHJ)@PebLTOn^D?*HHJ"><field name="TEXT">Waschmaschine fertig</field></shadow></value> <next><block type="timeouts_settimeout" id="D4r2s=i@n^pB@a(r7qc."><field name="NAME">AnAusFertig</field> <field name="DELAY">60</field> <field name="UNIT">min</field> <statement name="STATEMENT"><block type="controls_if" id=".Dbk(RcFCFF=A+3?;szq"><value name="IF0"><block type="logic_compare" id="+@Zk~ek?!P+IhO^:%hFs" inline="false"><field name="OP">EQ</field> <value name="A"><block type="get_value" id="5S6#i3RA0AA-//Mowgc5"><field name="ATTR">val</field> <field name="OID">javascript.0.Waschmaschine.Status_Waschmaschine_an</field></block></value> <value name="B"><block type="math_number" id="Y?Ucut)I`Mxv09lu/:@7"><field name="NUM">0</field></block></value></block></value> <statement name="DO0"><block type="update" id="mDhSymP%BtkcnA9P^S#)"><mutation delay_input="false"></mutation> <field name="OID">javascript.0.Waschmaschine.Status_Waschmaschine_aus_an_fertig</field> <field name="WITH_DELAY">FALSE</field> <value name="VALUE"><block type="math_number" id="[s{G53dR}!Y+PBv(Od=N"><field name="NUM">0</field></block></value> <next><block type="debug" id="26HYH^,pZg5N_:s)PzO."><field name="Severity">log</field> <value name="TEXT"><shadow type="text" id="%=qn#!(emAv+,+|e?:{?"><field name="TEXT">Waschmaschine aus</field></shadow></value></block></next></block></statement></block></statement></block></next></block></next></block></statement></block></statement></block></next></block></next></block></next></block></next></block></next></block></next></block></next></block></next></block></next></block> <block type="procedures_defnoreturn" id="![*gwjP+-V1278=`%LFY" x="863" y="13"><mutation><arg name="Meldetext"></arg></mutation> <field name="NAME">Melden mit</field> <comment pinned="false" h="80" w="160">Beschreibe diese Funktion …</comment> <statement name="STACK"><block type="debug" id="AnQZLKLIfS@B!ecv7q*j"><field name="Severity">log</field> <value name="TEXT"><shadow type="text" id="*:NjgbJ=[g7R/=F/lgua"><field name="TEXT">test</field></shadow> <block type="variables_get" id="[G5GIHz+}S-V{-d1-rOn"><field name="VAR">Meldetext</field></block></value> <next><block type="pushover" id="7?-`%Ro@4p~%SRX1QCpv"><field name="PRIORITY">0</field> <value name="MESSAGE"><shadow type="text" id="(K25I#K3.7M[@OLZ3-hJ"><field name="TEXT">text</field></shadow> <block type="variables_get" id="R?=bZ-PJ#cMC47joDt,/"><field name="VAR">Meldetext</field></block></value> <value name="TITLE"><block type="text" id="G}]]907BRy2Z=m;b^,p4"><field name="TEXT">Waschmaschine</field></block></value></block></next></block></statement></block></xml> Viel Spaß und Erfolg! Gesendet von iPad mit Tapatalk
  • Fehler in Blockly script oder logikfehler?

    Verschoben
    3
    1
    0 Stimmen
    3 Beiträge
    503 Aufrufe
    K
    "Wert vom Objekt ID ZAktuell" sollte eigentlich bewirken das der errechnete Wert aus der Berechnung in der Zeile darunter dort eingetragen wird. Ich habe aber schon mal herausgefunden das es mit der Zeile "aktualisiere Wert von ZAktuel mit ….Wert von Zaehlerstand + Wert von Stromzaehler/Hauptzaehler/total" ohne Umwandlung in Zahl funktioniert. Jetzt bin ich dabei eine Funktion zu schreiben die mir den Aktuellen Verbrauch in W anzeigt und diesen in einer Datenbank speichert, sodas ich den Verbrauch über einen längeren Zeitraum übersehen kann. Wenn alles läuft Poste ich hier mal die ganzen Blocky skripte mit Erklärung.
  • Problem mit WOL

    Verschoben
    5
    0 Stimmen
    5 Beiträge
    767 Aufrufe
    K
    Ich mache WOL mit folgendem Skript, vllt funzt das bei dir: var wol = require('wake_on_lan'); on({id: "javascript.0.wol.WolWinNAS", change: 'any'}, function (obj) { wol.wake('xx-xx-xx-xx-xx-xx'); } );
  • Was bedeutet der Logeintrag?

    Verschoben
    3
    0 Stimmen
    3 Beiträge
    312 Aufrufe
    T
    Hallo Enrico, vielen Dank für Deinen Hinweis. Es war in der Tat so, dass ich mir die Hilfsobjekte im Sonoff-Adapter erzeugt hatte. Nachdem ich diese nun in den Javascript Adapter verschoben habe, läuft alles ohne die nervigen Warnings. Besten Dank! Schöne Grüße thesniper911
  • Script zum einschalten bestimmte Farben beim Sonoff B1

    Verschoben
    1
    0 Stimmen
    1 Beiträge
    294 Aufrufe
    Niemand hat geantwortet

397

Online

32.4k

Benutzer

81.4k

Themen

1.3m

Beiträge