Skip to content

Blockly

Hilfe für Skripterstellung mit Blockly

6.5k Themen 79.4k Beiträge

NEWS

  • Blockly schaltet abhängig vom Echo Dot das Licht

    blockly
    10
    1
    0 Stimmen
    10 Beiträge
    787 Aufrufe
    dslraserD
    @funkytown mein zweiter Link sollte dieser hier sein (sorry) https://forum.iobroker.net/post/322897
  • Zeitschaltuhr

    blockly
    8
    1
    0 Stimmen
    8 Beiträge
    947 Aufrufe
    Michael RaschM
    @Azrael Hi, ich habe meine Zeitschaltuhr in Node-Red abgebildet, dort gab es div. Modelle in der "Node-RED Library" (Link: https://flows.nodered.org/?sort=rating&type=node&num_pages=7) und auch viele fertige Logikbausteine, ist evtl. für dein Problem eine Alternative.
  • [Gelöst]Blockly Wochenende nicht ausführen

    Verschoben
    16
    1
    0 Stimmen
    16 Beiträge
    2k Aufrufe
    J
    @Pat1968 War auch nur ein Blick auf ne andere Möglichkeit, wie man das sehr einfach und praktisch erledigen könnte.
  • Mehrere States vergleichen

    18
    1
    0 Stimmen
    18 Beiträge
    549 Aufrufe
    HomoranH
    @paul53 sagte in Mehrere States vergleichen: Muss man jedesmal zusammen mit COLOR auch den LEVEL mitgeben ? Wahrscheinlich nicht. Aber erst dachte ich mein Programm läuft nicht, bis ich merkte das der Level auf 0 stand. @paul53 sagte in Mehrere States vergleichen: Wenn nicht, dann mache es besser so: Einmalig muss reichen. Ich werde den Schalter wahrscheinlich sowieso in das Nacht_dimm Programm einbinden und nachts auf x Prozent dimmen. Dann wird es spätestens zu diesen Zeitpunkten einen Level ungleich 0 bekommen
  • GPIO Pins nach Zeit Schalten

    7
    1
    0 Stimmen
    7 Beiträge
    621 Aufrufe
    Lucas StiefelL
    Ah danke. Ich habs nun so mal probiert funzt! Danke dir, mal schauen ob das mit den Pins nun zuverlässig läuft
  • GELÖST!Timeout HttpGet an Mediolav5

    3
    2
    0 Stimmen
    3 Beiträge
    315 Aufrufe
    B
    Habs jetzt über eine Scene gelöst, damit steuere ich die einzelnen Datenpunkte und die Timeouts vom Skript werden genauestens durchgeführt.
  • Problem bei Kombination von Schleifen mit Timeouts

    2
    1
    0 Stimmen
    2 Beiträge
    151 Aufrufe
    paul53P
    @Byolock sagte in Problem bei Kombination von Schleifen mit Timeouts: auf die Sprünge helfen? Dafür gibt es das Intervall zusammen mit einer Zählvariable. Im Forum gibt es zahlreiche Beispiele. Prinzip: [image: 1575756751008-blockly_temp.jpg]
  • Ip Ping etwas schalten

    5
    1
    0 Stimmen
    5 Beiträge
    536 Aufrufe
    Marcus HamburgM
    Danke für den Hinweis. mein blockly war auch erstmal als test gedacht. die richtigen Geräte würde ich dann noch einsetzen. nur es funktioniert eben nicht richtig. da hab ich irgendwo ein denkfehler.
  • Alexa Block Simulation -> hue bridge, belkin wmo

    1
    0 Stimmen
    1 Beiträge
    181 Aufrufe
    Niemand hat geantwortet
  • Pushover bei 0 Grad

    6
    0 Stimmen
    6 Beiträge
    259 Aufrufe
    paul53P
    @TG70 sagte: Dann meinst du so? Ja, wenn Wert und vorheriger Wert aus den Trigger-Blöcken stammen (keine Variablen sind). Ich würde es so machen: [image: 1575644806991-blockly_temp.jpg]
  • Skript Ausführung verhindern bei Reconnect

    2
    1
    0 Stimmen
    2 Beiträge
    136 Aufrufe
    J.A.R.V.I.S.J
    Wieso lässt du triggern, wenn der Wert gleich oder kleiner als der letzte Wert ist? Vielleicht wäre dein Problem schon gelöst, wenn du auf "wurde geändert" setzt. Spoiler <xml xmlns="http://www.w3.org/1999/xhtml"> <block type="comment" id="qr2g/C)NYubk9H@IyjJ" x="-137" y="-62"> <field name="COMMENT">Steuert alle Verbraucher auf AUS</field> <next> <block type="on_ext" id="ROLhzWK_(B;G/gq2ckm4"> <mutation items="1"></mutation> <field name="CONDITION">ne</field> <field name="ACK_CONDITION"></field> <value name="OID0"> <shadow type="field_oid" id="6@n5qQ+R8:_#!+b)NDt"> <field name="oid">innogy-smarthome.0.Flur.PanikSchalter.LastPressedButtonIndex</field> </shadow> </value> <statement name="STATEMENT"> <block type="controls_if" id="+EM]0{kyNb}l-i!v5of"> <value name="IF0"> <block type="logic_compare" id="o*IGlNobkLi(P7jPu?C9"> <field name="OP">LTE</field> <value name="A"> <block type="get_value" id=":}:rCQ1B,7a6(T!u{O4"> <field name="ATTR">val</field> <field name="OID">innogy-smarthome.0.Flur.PanikSchalter.LastPressedButtonIndex</field> </block> </value> <value name="B"> <block type="math_number" id="[9Z8;KIDIQ:9f^C_h,P@"> <field name="NUM">0</field> </block> </value> </block> </value> <statement name="DO0"> <block type="control" id="T4g-e75MZyq%7-EuN;sX"> <mutation delay_input="false"></mutation> <field name="OID">alexa2.0.Echo-Devices.G090U61091855EMG.Player.volume</field> <field name="WITH_DELAY">FALSE</field> <value name="VALUE"> <block type="math_number" id="!P[g=M$Mn8ar7r+Q3QU"> <field name="NUM">60</field> </block> </value> <next> <block type="control" id="/Rt/KVzj_Ob9m+eRBn*/"> <mutation delay_input="false"></mutation> <field name="OID">alexa2.0.Echo-Devices.G090U61091855EMG.Commands.speak</field> <field name="WITH_DELAY">FALSE</field> <value name="VALUE"> <block type="text" id="~PgLjYyNj3T9pMK!/!a#"> <field name="TEXT">Gute Nacht sagt Ei O Broker</field> </block> </value> <next> <block type="control" id="~(=TrMi^wHPJO)FAxHvy"> <mutation delay_input="false"></mutation> <field name="OID">sonoff.0.DEKO_1.POWER1</field> <field name="WITH_DELAY">FALSE</field> <value name="VALUE"> <block type="logic_boolean" id="QAF*Z}OOmCId+r__=m:"> <field name="BOOL">FALSE</field> </block> </value> <next> <block type="control" id="[Lcj$|e_L+{Myzn!ijO"> <mutation delay_input="false"></mutation> <field name="OID">sonoff.0.DEKO_2.POWER1</field> <field name="WITH_DELAY">FALSE</field> <value name="VALUE"> <block type="logic_boolean" id="Bvzvtb|x_ih%9#cZ/dD"> <field name="BOOL">FALSE</field> </block> </value> <next> <block type="control" id="oxLp#)Mj.dre^Oo=P/yg"> <mutation delay_input="false"></mutation> <field name="OID">sonoff.0.DEKO_3.POWER1</field> <field name="WITH_DELAY">FALSE</field> <value name="VALUE"> <block type="logic_boolean" id="@Y*c!fng@j8zAoo2jB78"> <field name="BOOL">FALSE</field> </block> </value> <next> <block type="control" id="?IdHUW][8l}m(FS]ZR#*"> <mutation delay_input="false"></mutation> <field name="OID">sonoff.0.DEKO_4.POWER1</field> <field name="WITH_DELAY">FALSE</field> <value name="VALUE"> <block type="logic_boolean" id="{pqe9tpR4!d48q8zf?X"> <field name="BOOL">FALSE</field> </block> </value> <next> <block type="control" id="]38^#[+diM+SRmWH{Soj"> <mutation delay_input="false"></mutation> <field name="OID">sonoff.0.DEKO_5.POWER1</field> <field name="WITH_DELAY">FALSE</field> <value name="VALUE"> <block type="logic_boolean" id=",=3r0KdG7OI_k.osR7c"> <field name="BOOL">FALSE</field> </block> </value> <next> <block type="control" id="@r@BQXIPp~9oy9e|L9!+"> <mutation delay_input="false"></mutation> <field name="OID">sonoff.0.DEKO_6.POWER1</field> <field name="WITH_DELAY">FALSE</field> <value name="VALUE"> <block type="logic_boolean" id=":;fAh.g@QrYBHcCq3YHW"> <field name="BOOL">FALSE</field> </block> </value> <next> <block type="comment" id="Dw0RE.WO,v^/FMUSF=_0"> <field name="COMMENT">Garten No2 - Kanal 1 (Terrasse)</field> <next> <block type="control" id="J,~}b|}6:nj3M-%;7sz"> <mutation delay_input="false"></mutation> <field name="OID">sonoff.0.Garten_4CH_No2.POWER1</field> <field name="WITH_DELAY">FALSE</field> <value name="VALUE"> <block type="logic_boolean" id="?hvEq.PDU/o}LrW%{~{"> <field name="BOOL">FALSE</field> </block> </value> <next> <block type="control" id=",uN)z:NxyN?fWeo2vl=6"> <mutation delay_input="false"></mutation> <field name="OID">sonoff.0.Garderobe.POWER1</field> <field name="WITH_DELAY">FALSE</field> <value name="VALUE"> <block type="logic_boolean" id="I^LZKNu#CT5oDNU1FThc"> <field name="BOOL">FALSE</field> </block> </value> <next> <block type="control" id="D%}]%M8)wQNqew|f1j#6"> <mutation delay_input="false"></mutation> <field name="OID">sonoff.0.Kellerlicht.POWER1</field> <field name="WITH_DELAY">FALSE</field> <value name="VALUE"> <block type="logic_boolean" id="qkY@grwoHjesgm}).b:^"> <field name="BOOL">FALSE</field> </block> </value> <next> <block type="control" id=")0n@OM9k0)WB5E4pBs2["> <mutation delay_input="false"></mutation> <field name="OID">sonoff.0.Kuechenlicht.POWER1</field> <field name="WITH_DELAY">FALSE</field> <value name="VALUE"> <block type="logic_boolean" id="c=O7jeF+b{0jcPjm#yS4"> <field name="BOOL">FALSE</field> </block> </value> <next> <block type="comment" id="e^gxzg:V^csj;$NKsk:Y"> <field name="COMMENT">Alexa Gruppe Garten</field> <next> <block type="control" id="$k{$c+XDnj.kl0]sbjBW"> <mutation delay_input="false"></mutation> <field name="OID">alexa2.0.Smart-Home-Devices.3d19d4d8-8a84-4bbf-bc28-25e56f2a833a.powerState</field> <field name="WITH_DELAY">FALSE</field> <value name="VALUE"> <block type="logic_boolean" id="FsVy5~1[Qjw)6TH#e(sq"> <field name="BOOL">FALSE</field> </block> </value> <next> <block type="comment" id="lj)+I!b}=eEu?t3G:Ces"> <field name="COMMENT">Stube Esstisch</field> <next> <block type="control" id="d]6TD9}wWq@5QbL(;X"> <mutation delay_input="false"></mutation> <field name="OID">deconz.0.Groups.4.on</field> <field name="WITH_DELAY">FALSE</field> <value name="VALUE"> <block type="logic_boolean" id="j*e7r9f};CC*Go=iS1O9"> <field name="BOOL">FALSE</field> </block> </value> <next> <block type="comment" id="0DBw)6#guq|ixjQ:k)P3"> <field name="COMMENT">Schreibtischlampe</field> <next> <block type="control" id="O6!@Fgm39#IGqFz?F5t:"> <mutation delay_input="false"></mutation> <field name="OID">deconz.0.Lights.1.on</field> <field name="WITH_DELAY">FALSE</field> <value name="VALUE"> <block type="logic_boolean" id="a%7G.7DEq;tiixg;lb6o"> <field name="BOOL">FALSE</field> </block> </value> <next> <block type="comment" id="5kRoc6wsNek8~OH|BHm9"> <field name="COMMENT">Ambiente</field> <next> <block type="control" id="qaVwhDzwTA**6E#b@J(I"> <mutation delay_input="false"></mutation> <field name="OID">alexa2.0.Smart-Home-Devices.d3841198-1c6c-439b-b553-5bcd28e86cfa.powerState</field> <field name="WITH_DELAY">FALSE</field> <value name="VALUE"> <block type="logic_boolean" id="n.O:B~qmgAQ@Mw5%3EYD"> <field name="BOOL">FALSE</field> </block> </value> <next> <block type="comment" id="Ku!5P!l7NEGhrcyTsEm"> <field name="COMMENT">Thermostat Flur - Sollwert 18°C</field> <next> <block type="control" id="WyjBu|}HxN%5a%#.VGM}"> <mutation delay_input="false"></mutation> <field name="OID">innogy-smarthome.0.Flur.Heizkörper-Flur.PointTemperature</field> <field name="WITH_DELAY">FALSE</field> <value name="VALUE"> <block type="math_number" id="3YMvNWd3Ct5I2eD]v:Q}"> <field name="NUM">18</field> </block> </value> <next> <block type="comment" id="8.(2dRy/Rrd/#Ck8p:V"> <field name="COMMENT">Thermostat Stube vorne - Sollwert 20°C</field> <next> <block type="control" id="yBGkX#XxVH~jL#;6N!{c"> <mutation delay_input="false"></mutation> <field name="OID">innogy-smarthome.0.Stube-1.Heizkörper-Stube.PointTemperature</field> <field name="WITH_DELAY">FALSE</field> <value name="VALUE"> <block type="math_number" id="Y9mAJL0om4wvNbGQfrPe"> <field name="NUM">20</field> </block> </value> <next> <block type="comment" id="t1h9PQVSYjr%s23hei^^"> <field name="COMMENT">Thermostat Stube hinten - Sollwert 20°C</field> <next> <block type="control" id="}}E@5M/=~:r@KIA?/8wr"> <mutation delay_input="false"></mutation> <field name="OID">innogy-smarthome.0.Stube-1.Heizkörper-Stube-1.PointTemperature</field> <field name="WITH_DELAY">FALSE</field> <value name="VALUE"> <block type="math_number" id="[:4SYd@1Aj3=@oi|+U3b"> <field name="NUM">20</field> </block> </value> <next> <block type="comment" id="V]H%4Z/Pxh{:C*,jb1-h"> <field name="COMMENT">Radio AUS Büro</field> <next> <block type="control" id="2+kl1TS_/1:-oF)j:k#O"> <mutation delay_input="true"></mutation> <field name="OID">alexa2.0.Echo-Devices.G070RQ13813305NG.Player.controlPause</field> <field name="WITH_DELAY">TRUE</field> <field name="DELAY_MS">3</field> <field name="UNIT">sec</field> <field name="CLEAR_RUNNING">FALSE</field> <value name="VALUE"> <block type="logic_boolean" id="DI!7WImNlsi}|fT1QWH"> <field name="BOOL">TRUE</field> </block> </value> <next> <block type="comment" id="9Qi9jS]INmQnU03nciLb"> <field name="COMMENT">Radio AUS Küche</field> <next> <block type="control" id="]B_zDK-pU|=W8=p+p;J:"> <mutation delay_input="true"></mutation> <field name="OID">alexa2.0.Echo-Devices.G090U61091855EMG.Player.controlPause</field> <field name="WITH_DELAY">TRUE</field> <field name="DELAY_MS">3,5</field> <field name="UNIT">sec</field> <field name="CLEAR_RUNNING">FALSE</field> <value name="VALUE"> <block type="logic_boolean" id="THKLBbdR8r-WgCf2L{q"> <field name="BOOL">TRUE</field> </block> </value> <next> <block type="comment" id="n-$G0oK4mQE_.F}(T+=m"> <field name="COMMENT">Radio AUS Stube</field> <next> <block type="control" id="-Ln06*{qa?bbqPY%;M)8"> <mutation delay_input="true"></mutation> <field name="OID">alexa2.0.Echo-Devices.G090L91072450LMC.Player.controlPause</field> <field name="WITH_DELAY">TRUE</field> <field name="DELAY_MS">4</field> <field name="UNIT">sec</field> <field name="CLEAR_RUNNING">FALSE</field> <value name="VALUE"> <block type="logic_boolean" id="6i:%pjXUE)gzRiR%%1tN"> <field name="BOOL">TRUE</field> </block> </value> <next> <block type="comment" id="XT#J3D}%[8c9S3s@0U}"> <field name="COMMENT">Radio AUS Bastelkeller</field> <next> <block type="control" id="+}IfP$KSWIYgh1$_K?5"> <mutation delay_input="true"></mutation> <field name="OID">alexa2.0.Echo-Devices.G090LF1072120VMP.Player.controlPause</field> <field name="WITH_DELAY">TRUE</field> <field name="DELAY_MS">4,5</field> <field name="UNIT">sec</field> <field name="CLEAR_RUNNING">FALSE</field> <value name="VALUE"> <block type="logic_boolean" id="({(qLE)L2e$+vi(i2e;"> <field name="BOOL">TRUE</field> </block> </value> <next> <block type="comment" id="!Fe!hnfT-V~#?$Kz#J8."> <field name="COMMENT">Radio AUS Schlafzimmer</field> <next> <block type="control" id="KPSMY.L.6(Qc*22yBFXB"> <mutation delay_input="true"></mutation> <field name="OID">alexa2.0.Echo-Devices.G090XG0793042M4L.Player.controlPause</field> <field name="WITH_DELAY">TRUE</field> <field name="DELAY_MS">5</field> <field name="UNIT">sec</field> <field name="CLEAR_RUNNING">FALSE</field> <value name="VALUE"> <block type="logic_boolean" id="ViTHU|PSm2zG@Dj.s2D7"> <field name="BOOL">TRUE</field> </block> </value> <next> <block type="comment" id="kZBo@-2-oAr8nLg1m*o4"> <field name="COMMENT">Radio AUS Badezimmer</field> <next> <block type="control" id="sQw8.v:w#YXp#p-%4/0a"> <mutation delay_input="true"></mutation> <field name="OID">alexa2.0.Echo-Devices.G090XG0793042LJN.Player.controlPause</field> <field name="WITH_DELAY">TRUE</field> <field name="DELAY_MS">6</field> <field name="UNIT">sec</field> <field name="CLEAR_RUNNING">FALSE</field> <value name="VALUE"> <block type="logic_boolean" id="wV*N4vE(D+B+uNR[t2/"> <field name="BOOL">TRUE</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> </next> </block> </next> </block> </next> </block> </next> </block> </next> </block> </next> </block> </next> </block> </next> </block> </next> </block> </next> </block> </next> </block> </next> </block> </next> </block> </next> </block> </next> </block> </next> </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> </xml>
  • Mit Blockly Datenwerte auslesen und schreiben

    blockly heating javascript
    16
    1
    0 Stimmen
    16 Beiträge
    4k Aufrufe
    v522533V
    @StM47 stimmt, das mit den 15 minuten kannst du nicht beeinflussen. Dein anderes problem aber schon, indem du hilfsdatenpunkte verwendest. siehe mein blockly oben
  • [gelöst] optimale Reihenfolge von Befehlen

    4
    1
    0 Stimmen
    4 Beiträge
    273 Aufrufe
    docadamsD
    Vielen Dank, Problem geklärt.
  • Blockly Script verschoben

    1
    1
    0 Stimmen
    1 Beiträge
    156 Aufrufe
    Niemand hat geantwortet
  • [gelöst] Einschalten mit Zustandsabfrage

    blockly
    6
    0 Stimmen
    6 Beiträge
    580 Aufrufe
    paul53P
    @horido sagte: funktioniert super Dann markiere bitte das Thema in der Überschrift als [gelöst].
  • Hilfe bei Blockly

    11
    1
    0 Stimmen
    11 Beiträge
    827 Aufrufe
    paul53P
    @Icube sagte: so funktioniert es Dann markiere bitte das Thema in der Überschrift als [gelöst].
  • [gelöst] Zigbee Wert in Homematic schreiben

    blockly security
    4
    1
    0 Stimmen
    4 Beiträge
    315 Aufrufe
    HomoranH
    @hg6806 Bitte
  • hilfe bei script anpassung für abfrage/schleife

    blockly
    13
    1
    0 Stimmen
    13 Beiträge
    508 Aufrufe
    L
    @paul53 sagte in hilfe bei script anpassung für abfrage/schleife: @ltsalvatore sagte: dass sich "wert" der ersten if abfrage nur auf die objekt id des vorangegangenen trigger bezieht!? Ja, "Wert" ist der Wert des triggernden Datenpunktes zum Triggerzeitpunkt. @ltsalvatore sagte in hilfe bei script anpassung für abfrage/schleife: gibt es diesen falls nicht wert als eigenen punkt zu selektieren nicht ist ein Logik-Block. super, danke paul53, vor allem für die geduld :-) werde mir nachher nochmal deinen obigen vorschlag noch mal anschauen. müsste für mich nun alles etwas mehr sinn machen bzw. nachvollziehbarer sein.
  • Ping Adapter unter Proxmox

    6
    1
    0 Stimmen
    6 Beiträge
    304 Aufrufe
    4
    @paul53 said in Ping Adapter unter Proxmox: @4-Real sagte: "Aktuelle Zeit zwischen 17:15 und 04:00" würde nicht funktionieren, richtig? Doch, das funktioniert. Nur bei Astrozeiten funktioniert es nicht: "zwischen Sonnenuntergang und Sonnenaufgang" muss ersetzt werden durch "nicht zwischen Sonnenaufgang und Sonnenuntergang". Ah okay, interessant, also könnt ich das Script noch ein bisschen kürzen indem ich halt nur sage zwischen 17:15 und 04:00 Uhr?
  • Kino Steuerung mit Blockly und Harmony

    45
    0 Stimmen
    45 Beiträge
    4k Aufrufe
    D
    @Homoran da steht ja auch nicht mehr drin als hier... meine Frage war ob sich fertige Szenen mit TransitionTime ausführen lassen. einzelne Lampen funktioniert, aber eine Gruppe/ Raum möchte ich.

705

Online

32.7k

Benutzer

82.4k

Themen

1.3m

Beiträge