Weiter zum Inhalt

Blockly

6.6k Themen 79.8k Beiträge

Hilfe für Skripterstellung mit Blockly

NEWS

  • Pushover bei 0 Grad

    6
    0 Stimmen
    6 Beiträge
    273 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
    147 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
    274 Aufrufe
    docadamsD
    Vielen Dank, Problem geklärt.
  • Blockly Script verschoben

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

    blockly
    6
    0 Stimmen
    6 Beiträge
    598 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
    852 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
    317 Aufrufe
    HomoranH
    @hg6806 Bitte
  • hilfe bei script anpassung für abfrage/schleife

    blockly
    13
    1
    0 Stimmen
    13 Beiträge
    518 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
    316 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
    5k 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.
  • Rolladensteuerung mit nur einer Taste

    4
    0 Stimmen
    4 Beiträge
    836 Aufrufe
    P
    Hey Paul Danke für das Skript. funktioniert einwandfrei :) [image: 1575316638114-e37e48b7-c330-4b7e-832f-d0be3c5bff1b-grafik.png] Well done. :) lg Pat
  • Tastendruck von Logitech Fernbedienung auswerten

    5
    0 Stimmen
    5 Beiträge
    230 Aufrufe
    B
    @foxriver76 Den fakeroku versuche ich noch zu verstehen....
  • Blockly - Handyladezyklus intelligent steuern

    8
    3
    0 Stimmen
    8 Beiträge
    589 Aufrufe
    S
    @e-s Besten Dank für den Hinweis - 80% it is. Mal schauen wie ich damit über den Tag komme
  • Variable Tastenbelegung Aqara-Deconz

    blockly
    1
    0 Stimmen
    1 Beiträge
    305 Aufrufe
    Niemand hat geantwortet
  • Feststellen was genau getriggert hat

    7
    1
    0 Stimmen
    7 Beiträge
    525 Aufrufe
    paul53P
    @Fabian1 sagte: Sehr verwirrend, dass die Blöcke die selbe Farbe haben. Das habe ich auch schon angemeckert.
  • [Gelöst] Temperatur geregelte Gebläsesteuerung

    7
    1
    0 Stimmen
    7 Beiträge
    645 Aufrufe
    J
    @Neo82 Sag ich doch Trigger auf Temp. und einfach mit sonst ausschalten
  • Uhrzeit abfragen und Verzögern

    2
    1
    0 Stimmen
    2 Beiträge
    140 Aufrufe
    paul53P
    @Torsten_MG sagte: Astro, nächste Goldene Stunde) + 30min "Morgen" beginnt mit Ende Sonnenaufgang. Vorschlag: [image: 1575132338400-blockly_temp.jpg]
  • Bewegungsmelder blockly

    Verschoben blockly
    117
    1
    0 Stimmen
    117 Beiträge
    32k Aufrufe
    R
    @paul53 Hallo, Iobroker ist auf einem Beelink BT3 Pro unter Linux 10 (buster) installiert. Da ist nur Iobroker und das BS installiert. Einziger installierter Browser ist Firefox. Deswegen konnte ich mit der Meldung nichts anfangen.
  • [gelöst] Blockly beendet sich selber

    blockly
    8
    1
    0 Stimmen
    8 Beiträge
    575 Aufrufe
    paul53P
    @Beliar_666 sagte: Was kommt jetzt noch in die Trigger hinein? Nichts. So funktioniert es auch, wenn die verwaisten Blöcke gelöscht werden.

518

Online

32.8k

Benutzer

82.8k

Themen

1.3m

Beiträge