Skip to content

Blockly

Hilfe für Skripterstellung mit Blockly

6.5k Topics 79.5k Posts

NEWS

  • Suche Blockly für relative Luftfeutigkeit

    7
    0 Votes
    7 Posts
    459 Views
    J
    @paul53 Ok. Hab mich wohl falsch ausgedrückt🙉😂bzw. vor lauter Fachbegriffe das falsche gewählt. So wie Du es angeschnitten hast brauch ich das. Genau das Skipt hab ich auch versucht. Aber nach dem ich es starten wollte kommt eine Meldung das was falsch ist. Ich werd das Skript noch mal angehen, und hier noch mal den Fehler Posten
  • Scriptidee ob Fenster auf oder zu ist?

    2
    1
    0 Votes
    2 Posts
    300 Views
    F
    oder ein code der prüft welches Relais zuletzt geschalten wurde R1 oder R2 ?!?! denke es müsst möglich sein habs auch so probiert aber er schreibt es nicht um <xml xmlns="http://www.w3.org/1999/xhtml"> <block type="create" id="Xxr%UU7,3m}_a[gr)]_l" x="-387" y="-737"> <field name="NAME">Vis.Fenster-ist.offen</field> <statement name="STATEMENT"> <block type="controls_if" id="}?_[Rx`il9#LNk~^`prK"> <value name="IF0"> <block type="logic_compare" id="+]^D[{zcOd~)d%8C%:S9"> <field name="OP">EQ</field> <value name="A"> <block type="get_value" id="E4;q.WI):RF8,)P;4GaM"> <field name="ATTR">val</field> <field name="OID">shelly.0.SHSW-25#008103#1.Shutter.state</field> </block> </value> <value name="B"> <block type="text" id="ag9HH9+=Cw)*:kf456=R"> <field name="TEXT">stop</field> </block> </value> </block> </value> <statement name="DO0"> <block type="control" id="sj0ZAG=ELQ-|XeWmtEg3"> <mutation delay_input="false"></mutation> <field name="OID">javascript.0.Vis.Fenster-ist.offen</field> <field name="WITH_DELAY">FALSE</field> <value name="VALUE"> <block type="logic_boolean" id="eX|Bf{oW+%BAW.Y:)kbK"> <field name="BOOL">FALSE</field> </block> </value> </block> </statement> <next> <block type="controls_if" id="eWf@Gd5F);Ns4^{a{Uy("> <value name="IF0"> <block type="logic_compare" id=":)R8qmj^hd-_CY9}D7Zq"> <field name="OP">EQ</field> <value name="A"> <block type="get_value" id="p}k`i$TkEh:YRQQ-=1?1"> <field name="ATTR">val</field> <field name="OID">shelly.0.SHSW-25#008103#1.Shutter.state</field> </block> </value> <value name="B"> <block type="text" id="]ZCp_K%4H{]A?#q$C2Ja"> <field name="TEXT">close</field> </block> </value> </block> </value> <statement name="DO0"> <block type="control" id="J6%@JNMTTc_174/@`^JO"> <mutation delay_input="false"></mutation> <field name="OID">javascript.0.Vis.Fenster-ist.offen</field> <field name="WITH_DELAY">FALSE</field> <value name="VALUE"> <block type="logic_boolean" id="lTVO^6|Ecj]V_`G)jhxP"> <field name="BOOL">TRUE</field> </block> </value> </block> </statement> </block> </next> </block> </statement> </block> </xml>
  • [gelöst] Alexa macht mich wahnsinnig

    22
    0 Votes
    22 Posts
    1k Views
    AphofisA
    @paul53 Da kann man aber auch durcheinander kommen! So ein kleiner Fehler!!! jetzt klappt es Danke
  • [gelöst] Osmose Wasser Aktuell & Max Verbrauch

    79
    1
    0 Votes
    79 Posts
    3k Views
    AphofisA
    @paul53 So sollte es korrekt sein!!! var schwimmer, restzeit, timeout, Intervall; /** * Beschreibe diese Funktion … */ function Vliesmotor() { if (schwimmer) { if (!Intervall && restzeit > 0) { setState("sonoff.0.Aqua_Control.POWER2"/*Vliesmotor*/, true); Intervall = setInterval(function () { if (restzeit > 0 && schwimmer) { restzeit = (typeof restzeit == 'number' ? restzeit : 0) + -1; } else { setState("sonoff.0.Aqua_Control.POWER2"/*Vliesmotor*/, false); (function () {if (Intervall) {clearInterval(Intervall); Intervall = null;}})(); } }, 2000); } } else if (getState("sonoff.0.Aqua_Control.POWER2").val) { setState("sonoff.0.Aqua_Control.POWER2"/*Vliesmotor*/, false); } } schwimmer = getState("sonoff.0.Aqua_Float.POWER3").val; restzeit = 25; on({id: 'sonoff.0.Aqua_Float.POWER3', change: "ne"}, function (obj) { var value = obj.state.val; var oldValue = obj.oldState.val; (function () {if (timeout) {clearTimeout(timeout); timeout = null;}})(); timeout = setTimeout(function () { schwimmer = (obj.state ? obj.state.val : ""); Vliesmotor(); }, 2000); }); schedule("0 0 * * *", function () { restzeit = 25; Vliesmotor(); }); Vliesmotor();
  • [Gelöst] Blockly Block gelöscht

    7
    1
    0 Votes
    7 Posts
    303 Views
    K
    Ah, ok. Jetzt hab ichs verstanden. Danke für die Hilfe.
  • Zufallstext wiedergeben

    5
    0 Votes
    5 Posts
    839 Views
    K
    Super, danke für die ganzen Lösungen. Geht ja doch recht einfach. Ich habe mich für das von @Dr-Bakterius entschieden, da es doch am übersichtlichsten und einfachsten ist. Danke euch.
  • [gelöst], ViewWechsel nicht ausgef., am Rechner ja

    1
    3
    0 Votes
    1 Posts
    229 Views
    No one has replied
  • Wieder mal ne ganz einfache frage

    blockly
    19
    1
    0 Votes
    19 Posts
    687 Views
    crunchipC
    @freaktech wie ist denn der Abfrageintervall im Adapter selbst? Vllt passt da etwas nicht. 120000ms sind bei mir eingestellt. Vllt noch in den Einstellungen...cache löschen aktivieren.
  • IoBroker schaltet keine Geräte mehr

    blockly
    35
    0 Votes
    35 Posts
    2k Views
    Hardy 0H
    kleiner Erfolg - der tasmota Sonoff wird nun gesteuert - reagiert auf den Xiaomi-Sensor ! :-) Den Rest schaffe ich auch noch - steige langsam durch - Vielen Dank!
  • Kuechen Licht mit Bewegungsmelder soll an bleiben

    blockly
    13
    1
    0 Votes
    13 Posts
    1k Views
    Z
    Also ich denke es funktioniert jetzt...jedenfals gehen die Lichter an und aus jetzt bei Bewegung, und bleiben an wenn da jemand erfasst wird. Unten das Blockly (telegram muss ich noch raus nehmen, war nur zum testen drin). Jetzt ist der naechste Schritt das ich die Helligkeit erkennung von dem Osram BW mit einbinde so das das ganze nur funktioniert wenn es dunkel genug ist. [image: 1568262499293-2499a9a1-4dad-49f3-b13d-2429b31ac200-image.png]
  • [Gelöst]Tuya mit Lupusecrelais koppeln -Blockly

    36
    1
    0 Votes
    36 Posts
    3k Views
    B
    Funktioniert jetzt
  • Wert aus Viessmannapi in in knx übernehmen

    1
    0 Votes
    1 Posts
    228 Views
    No one has replied
  • [gelöst] Zeitsteuerung in millisekunden

    6
    2
    0 Votes
    6 Posts
    867 Views
    AphofisA
    So das Gerät ist bis auf eine Dosierpumpe zusammengebaut und im Betrieb. var clock, Dauer, Uhrzeit, schedule, Intervall; /** * Beschreibe diese Funktion … */ function L_C3_B6sung_1() { Dauer = parseFloat(getState("Aqua_Control.0.Triton.Lösung_1.Faktoren.Lösung_1_Faktor_3").val); setState("sonoff.0.Aqua_Dosierer.POWER1"/*Aqua_Dosierer_Pumpe_1*/, true); // Intervalldauer = Faktor Intervall = setInterval(function () { Dauer = (typeof Dauer == 'number' ? Dauer : 0) + -1; if (Dauer <= 0) { (function () {if (Intervall) {clearInterval(Intervall); Intervall = null;}})(); setState("sonoff.0.Aqua_Dosierer.POWER1"/*Aqua_Dosierer_Pumpe_1*/, false); sendTo("telegram.0", "send", { text: (['Triton Lösung 1 ','\n',getState("Aqua_Control.0.Triton.Lösung_1.Faktoren.Lösung_1_Faktor_3").val,' ml dosiert'].join('')) }); } }, 806); } /** * Beschreibe diese Funktion … */ function setUhr(clock) { Uhrzeit = clock.split(':'); schedule = schedule((Uhrzeit[1]).trim() + ' ' + (Uhrzeit[0]).trim() + ' ' + '*'.trim() + ' ' + '*'.trim() + ' ' + '*'.trim(), function () { L_C3_B6sung_1(); }); } setUhr(getState("Aqua_Control.0.Triton.Lösung_1.Uhrzeiten.Lösung_1_Uhrzeit_1").val); on({id: 'Aqua_Control.0.Triton.Lösung_1.Uhrzeiten.Lösung_1_Uhrzeit_1', change: "ne"}, function (obj) { var value = obj.state.val; var oldValue = obj.oldState.val; (function () {if (schedule) {clearSchedule(schedule); schedule = null;}})(); setUhr((obj.state ? obj.state.val : "")); }); <xml xmlns="http://www.w3.org/1999/xhtml"> <variables> <variable type="" id="snfLpaddd`4/)Uy^kLsW">clock</variable> <variable type="" id=")bAD/?%{s?q44~ZGe7{B">Dauer</variable> <variable type="" id="iQ`n%m6-[L_B242P|7rW">Uhrzeit</variable> <variable type="undefined" id="schedule">schedule</variable> <variable type="undefined" id="Intervall">Intervall</variable> </variables> <block type="procedures_callnoreturn" id="3a)9A+{U=BTerQFdk^7e" x="-3287" y="-1587"> <mutation name="setUhr"> <arg name="clock"></arg> </mutation> <value name="ARG0"> <block type="get_value" id="Rmv(=Tg+:6/}8B(?~nI#"> <field name="ATTR">val</field> <field name="OID">Aqua_Control.0.Triton.Lösung_1.Uhrzeiten.Lösung_1_Uhrzeit_1</field> </block> </value> <next> <block type="on_ext" id="X}o|@dWx#6!BiHho8e)o"> <mutation items="1"></mutation> <field name="CONDITION">ne</field> <field name="ACK_CONDITION"></field> <value name="OID0"> <shadow type="field_oid" id="dXPC7;GFYg(#~T78}@mB"> <field name="oid">Aqua_Control.0.Triton.Lösung_1.Uhrzeiten.Lösung_1_Uhrzeit_1</field> </shadow> </value> <statement name="STATEMENT"> <block type="schedule_clear" id="nt-N]NBg?,fY%.)hYJ4D"> <field name="NAME">schedule</field> <next> <block type="procedures_callnoreturn" id="yvhs4uL6uUxnW!c$UF/{"> <mutation name="setUhr"> <arg name="clock"></arg> </mutation> <value name="ARG0"> <block type="on_source" id="SfI,}teG@`dg#_g%Zp#:"> <field name="ATTR">state.val</field> </block> </value> </block> </next> </block> </statement> </block> </next> </block> <block type="procedures_defnoreturn" id="jE$gVVpa7!Xtx{X@H^Fd" x="-3287" y="-1312"> <field name="NAME">Lösung_1</field> <comment pinned="false" h="80" w="160">Beschreibe diese Funktion …</comment> <statement name="STACK"> <block type="variables_set" id="9kptcK|P^2:}bKZXyZ8f"> <field name="VAR" id=")bAD/?%{s?q44~ZGe7{B" variabletype="">Dauer</field> <value name="VALUE"> <block type="convert_tonumber" id="Tj/%:}sl8v})GfkG,zO:"> <value name="VALUE"> <block type="get_value" id=".,XzJi)h(f$9$~(`H$I!"> <field name="ATTR">val</field> <field name="OID">Aqua_Control.0.Triton.Lösung_1.Faktoren.Lösung_1_Faktor_3</field> </block> </value> </block> </value> <next> <block type="control" id="%}iPzHc5tUi.(P1_MvRo"> <mutation delay_input="false"></mutation> <field name="OID">sonoff.0.Aqua_Dosierer.POWER1</field> <field name="WITH_DELAY">FALSE</field> <value name="VALUE"> <block type="logic_boolean" id="SM.e~4#O=p?c/SXA|JX%"> <field name="BOOL">TRUE</field> </block> </value> <next> <block type="comment" id="KV;?nPX*TAluqR-qF9f+"> <field name="COMMENT">Intervalldauer = Faktor</field> <next> <block type="timeouts_setinterval" id="1+dIQ5^rJM?nkaI[6WN}"> <field name="NAME">Intervall</field> <field name="INTERVAL">806</field> <field name="UNIT">ms</field> <statement name="STATEMENT"> <block type="math_change" id="!*zN$DgW0K=76_[.1*]X"> <field name="VAR" id=")bAD/?%{s?q44~ZGe7{B" variabletype="">Dauer</field> <value name="DELTA"> <shadow type="math_number" id="e_D7=bSd65:`]Q{qWSZD"> <field name="NUM">-1</field> </shadow> </value> <next> <block type="controls_if" id="=/[;A-M~WF?KXEx~W0z?"> <value name="IF0"> <block type="logic_compare" id=";qY,PC)CB~{1#4iVHaj,"> <field name="OP">LTE</field> <value name="A"> <block type="variables_get" id="2k;4KgTu$A3wF)@V`ulP"> <field name="VAR" id=")bAD/?%{s?q44~ZGe7{B" variabletype="">Dauer</field> </block> </value> <value name="B"> <block type="math_number" id="?bnhw6qVm`$}~NCKlw2P"> <field name="NUM">0</field> </block> </value> </block> </value> <statement name="DO0"> <block type="timeouts_clearinterval" id=";dz/hf`o4]4(2pDSH)I3"> <field name="NAME">Intervall</field> <next> <block type="control" id="SeaFI}%xNdyzRbLV,6HN"> <mutation delay_input="false"></mutation> <field name="OID">sonoff.0.Aqua_Dosierer.POWER1</field> <field name="WITH_DELAY">FALSE</field> <value name="VALUE"> <block type="logic_boolean" id="1_[)-;0}n;LMH}tCmhi:"> <field name="BOOL">FALSE</field> </block> </value> <next> <block type="telegram" id="N)tO@5NbhTtUeW(4MtBo"> <field name="INSTANCE">.0</field> <field name="LOG"></field> <field name="SILENT">FALSE</field> <field name="PARSEMODE">default</field> <value name="MESSAGE"> <shadow type="text" id="R8/w|SSi{cj7,4lDKwe["> <field name="TEXT">text</field> </shadow> <block type="text_join" id="Jm8OpAELrwceT@g35lf{"> <mutation items="4"></mutation> <value name="ADD0"> <block type="text" id="CM1{{J8!7VItB4D8j3B8"> <field name="TEXT">Triton Lösung 1 </field> </block> </value> <value name="ADD1"> <block type="text_newline" id="o]Q2(%iBw$/9I:?8IyZw"> <field name="Type">\n</field> </block> </value> <value name="ADD2"> <block type="get_value" id="f]$r3U;[8ohFZ.8I[asH"> <field name="ATTR">val</field> <field name="OID">Aqua_Control.0.Triton.Lösung_1.Faktoren.Lösung_1_Faktor_3</field> </block> </value> <value name="ADD3"> <block type="text" id="Jxd~DTQ,y3LUt8En2!}Y"> <field name="TEXT"> ml dosiert</field> </block> </value> </block> </value> </block> </next> </block> </next> </block> </statement> </block> </next> </block> </statement> </block> </next> </block> </next> </block> </next> </block> </statement> </block> <block type="procedures_defnoreturn" id="fK5kmsd)LwZ7|P2xa^9U" x="-3287" y="-762"> <mutation> <arg name="clock" varid="snfLpaddd`4/)Uy^kLsW"></arg> </mutation> <field name="NAME">setUhr</field> <comment pinned="false" h="80" w="160">Beschreibe diese Funktion …</comment> <statement name="STACK"> <block type="variables_set" id="aOx5`vU/=f;#)rmrW[|7"> <field name="VAR" id="iQ`n%m6-[L_B242P|7rW" variabletype="">Uhrzeit</field> <value name="VALUE"> <block type="lists_split" id="XnqDHu5JM{#WIs8~S,M-"> <mutation mode="SPLIT"></mutation> <field name="MODE">SPLIT</field> <value name="INPUT"> <block type="variables_get" id="4`T;i0Hg@f?=Gq^,J6.~"> <field name="VAR" id="snfLpaddd`4/)Uy^kLsW" variabletype="">clock</field> </block> </value> <value name="DELIM"> <shadow type="text" id="]v!xP8l3r?{D;(m_QyNL"> <field name="TEXT">:</field> </shadow> </value> </block> </value> <next> <block type="schedule_create" id="6x%+6G+PaD[w*{FuFm=K"> <field name="NAME">schedule</field> <value name="SCHEDULE"> <shadow type="field_cron" id="m4F75|F$}NA}2;e/avWa"> <field name="CRON">* * * * *</field> </shadow> <block type="cron_builder" id="q6(U2T{7uu}mYF)9QMKr"> <mutation seconds="false" as_line="false"></mutation> <field name="LINE">FALSE</field> <field name="WITH_SECONDS">FALSE</field> <value name="DOW"> <shadow type="text" id=")8oVcqHY5re?jv#0QsO8"> <field name="TEXT">*</field> </shadow> </value> <value name="MONTHS"> <shadow type="text" id="GfQ!DoE|TZTliq*)8,@j"> <field name="TEXT">*</field> </shadow> </value> <value name="DAYS"> <shadow type="text" id="S6hVuxIjcYJMlS^~:zE5"> <field name="TEXT">*</field> </shadow> </value> <value name="HOURS"> <shadow type="text" id="NP{*G*@dWEP9M9mNlZFF"> <field name="TEXT">*</field> </shadow> <block type="lists_getIndex" id="-0gZ}|H=8/}~St}d%rl;"> <mutation statement="false" at="true"></mutation> <field name="MODE">GET</field> <field name="WHERE">FROM_START</field> <value name="VALUE"> <block type="variables_get" id="8U#M]$`MHq(~A]~(v{2R"> <field name="VAR" id="iQ`n%m6-[L_B242P|7rW" variabletype="">Uhrzeit</field> </block> </value> <value name="AT"> <block type="math_number" id=")zFTxG~Gpp`eZw8r2,8w"> <field name="NUM">1</field> </block> </value> </block> </value> <value name="MINUTES"> <shadow type="text" id="I(LCmtz/NJ%:Tvp,*;JL"> <field name="TEXT">*</field> </shadow> <block type="lists_getIndex" id="0([.HRKLsVPA.X:jwVI@"> <mutation statement="false" at="true"></mutation> <field name="MODE">GET</field> <field name="WHERE">FROM_START</field> <value name="VALUE"> <block type="variables_get" id="8#E0pY-UET(BcZH]~qB:"> <field name="VAR" id="iQ`n%m6-[L_B242P|7rW" variabletype="">Uhrzeit</field> </block> </value> <value name="AT"> <block type="math_number" id=";UF-jK:^cV#hui?GDL/V"> <field name="NUM">2</field> </block> </value> </block> </value> </block> </value> <statement name="STATEMENT"> <block type="procedures_callnoreturn" id="/6qq{?/)+*vm:UnA$x,0"> <mutation name="Lösung_1"></mutation> </block> </statement> </block> </next> </block> </statement> </block> </xml> [image: 1568030109831-img_5133-resized.jpg] [image: 1568030122758-img_5131-resized.jpg] [image: 1568030138335-img_5126-resized.jpg] [image: 1568030150039-img_5127-resized.jpg]
  • Außenlicht automatisch an und ausschalten

    9
    0 Votes
    9 Posts
    1k Views
    C
    So an dieser Stelle bedanke ich mich recht herzlich. Sowohl die Zeitplan und Sonnenuntergangplan hat sehr gut funktioniert. Danke
  • Datum minus x Tage

    4
    0 Votes
    4 Posts
    816 Views
    paul53P
    @JavaMafia Das verstehe ich zwar immer noch nicht, aber hier kannst Du was aussuchen: [image: 1567959191901-blockly_temp.jpg]
  • Suchanfrage: Blockly worx Adapter

    30
    0 Votes
    30 Posts
    3k Views
    M
    @Sven_Topp :blush: Der Mäher soll nicht während der Anwesenheit der Kinder mähen. Daher wird von 10 bis 12h gemäht und von 20 bis 22h. Am Wochenende nur Abends.
  • Blockly - Husqvarna Automower?

    1
    1
    0 Votes
    1 Posts
    315 Views
    No one has replied
  • Zeitdifferenz errechnen

    8
    0 Votes
    8 Posts
    1k Views
    paul53P
    @knoppers sagte: es funktioniert Dann markiere bitte das Thema in der Überschrift als [gelöst].
  • Keine Trigger Events von Hue Dimmer

    blockly
    3
    2
    0 Votes
    3 Posts
    323 Views
    A
    Vielen Dank für die Antwort. Ich habe ein Dummy Programm angelegt, leider hat es keinen Effekt. Ich habe die Geräte neu eingelesen und das Script gestartet. Die FB Taste schaltet auch noch eine Lampe ein/aus. Das funktioniert, aber ich bekommme einen Event in IOBroker. Und das Problem mit dem Hue Dimmer löst diese Vorgehensweise auch nicht. Gibt es noch weitere Ideen? vielen Dank und beste Grüsse Guido
  • [gelöst] Zahl aus json-Objekt m. Blockly auswerten

    12
    1
    0 Votes
    12 Posts
    1k Views
    paul53P
    @capitaenz sagte: Es läuft jetzt Dann markiere bitte das Thema in der Überschrift als [gelöst].

485

Online

32.7k

Users

82.4k

Topics

1.3m

Posts