Skip to content

Blockly

Hilfe für Skripterstellung mit Blockly

6.5k Topics 79.3k Posts

NEWS

  • GELÖST: Text der Werteliste über Telegram ausgeben anstatt Wert ( Zahl)

    8
    0 Votes
    8 Posts
    724 Views
    iomountainI
    Funktionieren tut es auch so, aber wenn du rechts oben auf die Flagge klickst um dein Blockly zu prüfen [image: 1555493038576-239830bf-1d59-4bbd-987f-60a14d25145d-image.png] kommt sonst [image: 1555492985132-46115ad3-3416-4ede-99ca-8c82718d183c-image.png]
  • Doppelter Tastendruck innerhalb 3 Sekunden [gelöst]

    11
    0 Votes
    11 Posts
    3k Views
    paul53P
    @HoerMirAuf sagte: Das Blockly funktioniert top Dann markiere bitte das Thema in der Überschrift als [gelöst].
  • Steuerung Rolladen Fehlermeldung

    3
    2
    0 Votes
    3 Posts
    197 Views
    M
    Hallo, das ging ja schnell. :slightly_smiling_face: Hat super funktioniert. Dankeschön Grüße Markus F
  • Wind Abfrage mit Openweather

    47
    1
    0 Votes
    47 Posts
    3k Views
    liv-in-skyL
    @Semie1 ehrlich gesagt, weiß ich das nicht genau - habe selbst habe current - was ich versteh: 5 tage(day1 bis day 5) voraus - plus 3 stunden voraus (day 0) - und natürlich current (jetzt) wenn du beim regen day0 nimmst bist du 3 stunden voraus - aber ehrlich gesagt - bei mir treffen die regen zustände meist nicht das tatsächliche wetter geschehen - daher habe ich mich in meiner vis für das radar bild entschieden - diese bilder bewegen sich um einen bestimmten minuten satz - das sehe ich, wie die wolken ziehen und schätze dann, ob es bei mir regnen wird - das reicht mir [image: 1555252211075-image-11.png] http://www.wetter24.de/meteo/automatic-gif/radar.teaser/radar_de_teaser.gif
  • Letzten Tag eines Monats

    blockly
    3
    0 Votes
    3 Posts
    1k Views
    umbmU
    https://forum.iobroker.net/topic/19491/cronjob-immer-letzter-tag-im-monat
  • 0 Votes
    11 Posts
    1k Views
    S
    @dslraser hier ist das fertige Skript [image: 1555183664557-door.png] <xml xmlns="http://www.w3.org/1999/xhtml"> <variables> <variable type="" id="M3m7O(~[HxAyvaZ`X9fc">dingdong</variable> <variable type="undefined" id="timeout">timeout</variable> <variable type="undefined" id="Intervall">Intervall</variable> <variable type="undefined" id="timeout3">timeout3</variable> <variable type="undefined" id="timeout2">timeout2</variable> </variables> <block type="on" id="k]$B;N;31WP-1t,*.qMY" x="-2438" y="-1362"> <field name="OID">cloud.0.services.Door</field> <field name="CONDITION">ne</field> <field name="ACK_CONDITION"></field> <statement name="STATEMENT"> <block type="variables_set" id="np)k3#L^*ND){3JUGc0$"> <field name="VAR" id="M3m7O(~[HxAyvaZ`X9fc" variabletype="">dingdong</field> <value name="VALUE"> <block type="text" id="n1upn[Gc2|F+.k7;.q%#"> <field name="TEXT">&lt;speak&gt;&lt;say-as interpret-as="interjection"&gt;ding dong&lt;/say-as&gt;,&lt;speak&gt;&lt;voice name="Alexa"&gt;Es klingelt an der Haustür&lt;/voice&gt;&lt;/speak&gt;</field> </block> </value> <next> <block type="timeouts_clearinterval" id="|Uln^,p|+cf#@}Lt#7`S"> <field name="NAME">Intervall</field> <next> <block type="controls_if" id="lzhT95AO^8[e]v~+.91x"> <value name="IF0"> <block type="logic_compare" id="v:xG5Go0Ttc7i`|Om[Wg"> <field name="OP">EQ</field> <value name="A"> <block type="get_value" id="t/ZL:ZNgLjn$K_zNL8As"> <field name="ATTR">val</field> <field name="OID">cloud.0.services.Door</field> </block> </value> <value name="B"> <block type="logic_boolean" id="rniEEUT8)NdbRIVwl5H["> <field name="BOOL">TRUE</field> </block> </value> </block> </value> <statement name="DO0"> <block type="comment" id="M(u*]*Q4TYC$!MB`#i#F"> <field name="COMMENT">ECHO Wohnzimmer</field> <next> <block type="control" id=")en[Es_ZKi-`1NPhg)k4"> <mutation delay_input="false"></mutation> <field name="OID">alexa2.0.Echo-Devices.G2A0RF04820202VK.Commands.ssml</field> <field name="WITH_DELAY">FALSE</field> <value name="VALUE"> <block type="text_join" id="Gx|EFOt/ZM4jRIss,SM~"> <mutation items="1"></mutation> <value name="ADD0"> <block type="variables_get" id=":0(:#oES+{pa3_tsyj#v"> <field name="VAR" id="M3m7O(~[HxAyvaZ`X9fc" variabletype="">dingdong</field> </block> </value> </block> </value> <next> <block type="comment" id="on=EC!a0W!5GtEMU4RSt"> <field name="COMMENT">Lampe Wohnzimmer</field> <next> <block type="control" id="AHTnnWEX?D6,fyL`2#ZK"> <mutation delay_input="false"></mutation> <field name="OID">sonoff.0.Wohnzimmerleuchte.POWER1</field> <field name="WITH_DELAY">FALSE</field> <value name="VALUE"> <block type="logic_boolean" id="P37yZdjG~TQT3Vnx:)[n"> <field name="BOOL">TRUE</field> </block> </value> <next> <block type="control" id=";:D~bXnVVq.3me{Sk*YK"> <mutation delay_input="false"></mutation> <field name="OID">sonoff.0.Wohnzimmerstrahler.POWER</field> <field name="WITH_DELAY">FALSE</field> <value name="VALUE"> <block type="logic_boolean" id="!s{Zr%euZ.lcb{H:icGz"> <field name="BOOL">TRUE</field> </block> </value> <next> <block type="control" id="rI4i)b?Tus^2!skY*;JT"> <mutation delay_input="false"></mutation> <field name="OID">sonoff.0.Stehlampe.POWER</field> <field name="WITH_DELAY">FALSE</field> <value name="VALUE"> <block type="logic_boolean" id="weTaLB#JVs9m6/GId]Q."> <field name="BOOL">TRUE</field> </block> </value> <next> <block type="comment" id="uiK`hL2]yR^rNmy]YTJ5"> <field name="COMMENT">ECHO Küche</field> <next> <block type="control" id="wbI5_bWXwsEp6MR(Wrgs"> <mutation delay_input="false"></mutation> <field name="OID">alexa2.0.Echo-Devices.G090LF11749612G9.Commands.ssml</field> <field name="WITH_DELAY">FALSE</field> <value name="VALUE"> <block type="text_join" id=".*Za73IG;:{%#):oT{i2"> <mutation items="1"></mutation> <value name="ADD0"> <block type="variables_get" id=")zS*5~GL`Ae!$G$89sTt"> <field name="VAR" id="M3m7O(~[HxAyvaZ`X9fc" variabletype="">dingdong</field> </block> </value> </block> </value> <next> <block type="comment" id="[C`hZ^c6g0W?+Z~~U5an"> <field name="COMMENT">Lampe Küche</field> <next> <block type="control" id="TqWScaKtMTIyJS}cR)4F"> <mutation delay_input="false"></mutation> <field name="OID">sonoff.0.Küchenlicht.POWER</field> <field name="WITH_DELAY">FALSE</field> <value name="VALUE"> <block type="logic_boolean" id="E}`L5}AlV]SjFUl.R1If"> <field name="BOOL">TRUE</field> </block> </value> <next> <block type="timeouts_settimeout" id="E3wbHE,hz7v`0~8oB]h`"> <field name="NAME">timeout</field> <field name="DELAY">2</field> <field name="UNIT">sec</field> <statement name="STATEMENT"> <block type="comment" id="Jg8W!*C7HRZ*)Is:VhsT"> <field name="COMMENT">Lampe Wohnzimmer</field> <next> <block type="control" id="ww=i2Fm0ST@/:hqt,ITi"> <mutation delay_input="false"></mutation> <field name="OID">sonoff.0.Wohnzimmerleuchte.POWER1</field> <field name="WITH_DELAY">FALSE</field> <value name="VALUE"> <block type="logic_boolean" id="]9QtXPw_]w)%DsZiZJ*E"> <field name="BOOL">FALSE</field> </block> </value> <next> <block type="control" id="pJGqW(|P;|`K6U#:ilaU"> <mutation delay_input="false"></mutation> <field name="OID">sonoff.0.Wohnzimmerstrahler.POWER</field> <field name="WITH_DELAY">FALSE</field> <value name="VALUE"> <block type="logic_boolean" id="|q%p@be=1;9|*AS?t?ZP"> <field name="BOOL">FALSE</field> </block> </value> <next> <block type="control" id="^gQti+F:JwaAO8Qzser6"> <mutation delay_input="false"></mutation> <field name="OID">sonoff.0.Stehlampe.POWER</field> <field name="WITH_DELAY">FALSE</field> <value name="VALUE"> <block type="logic_boolean" id="r{Y/[s(p2.cH=?`{i52*"> <field name="BOOL">FALSE</field> </block> </value> <next> <block type="comment" id="V$5~/2_{$,mDqjbWsksC"> <field name="COMMENT">Lampe Küche</field> <next> <block type="control" id="A=DY0W4i}?}(lz,-`1N="> <mutation delay_input="false"></mutation> <field name="OID">sonoff.0.Küchenlicht.POWER</field> <field name="WITH_DELAY">FALSE</field> <value name="VALUE"> <block type="logic_boolean" id="}u,rrPqnO[42%rc[-x`6"> <field name="BOOL">FALSE</field> </block> </value> </block> </next> </block> </next> </block> </next> </block> </next> </block> </next> </block> </statement> <next> <block type="timeouts_setinterval" id="k@.H@[JR[(vstjR9Jm.="> <field name="NAME">Intervall</field> <field name="INTERVAL">5</field> <field name="UNIT">sec</field> <statement name="STATEMENT"> <block type="comment" id="$W;bRo]Xqps%CNbK2mlz"> <field name="COMMENT">ECHO Wohnzimmer</field> <next> <block type="control" id="}%e%kDh$?WnEPQf)XLq-"> <mutation delay_input="false"></mutation> <field name="OID">alexa2.0.Echo-Devices.G2A0RF04820202VK.Commands.ssml</field> <field name="WITH_DELAY">FALSE</field> <value name="VALUE"> <block type="text_join" id="Q0ita0{:e(zJRLsBl+L8"> <mutation items="1"></mutation> <value name="ADD0"> <block type="variables_get" id="zd1o^+`ME-ls@@0MFL?r"> <field name="VAR" id="M3m7O(~[HxAyvaZ`X9fc" variabletype="">dingdong</field> </block> </value> </block> </value> <next> <block type="comment" id="d=4Q_A,I1`G8q^G|dRtg"> <field name="COMMENT">Lampe Wohnzimmer</field> <next> <block type="control" id="KO/+]d{7v03GwX;YRkVs"> <mutation delay_input="false"></mutation> <field name="OID">sonoff.0.Wohnzimmerleuchte.POWER1</field> <field name="WITH_DELAY">FALSE</field> <value name="VALUE"> <block type="logic_boolean" id="~gUo9^TL%c*%OoMd:(0{"> <field name="BOOL">TRUE</field> </block> </value> <next> <block type="control" id="(L3e%B/db/3~tC{gyBZx"> <mutation delay_input="false"></mutation> <field name="OID">sonoff.0.Wohnzimmerstrahler.POWER</field> <field name="WITH_DELAY">FALSE</field> <value name="VALUE"> <block type="logic_boolean" id="lOn#yQd^7AJb-,%(cS]~"> <field name="BOOL">TRUE</field> </block> </value> <next> <block type="control" id="V{VCE-r+^m*ys}ZU.gP4"> <mutation delay_input="false"></mutation> <field name="OID">sonoff.0.Stehlampe.POWER</field> <field name="WITH_DELAY">FALSE</field> <value name="VALUE"> <block type="logic_boolean" id="n8Fss104]{|DxYBSx[if"> <field name="BOOL">TRUE</field> </block> </value> <next> <block type="comment" id="duH[)r-B+:vF]?:%~c]U"> <field name="COMMENT">ECHO Küche</field> <next> <block type="control" id=")/KZ9N:tv=}UEP~Fv(mD"> <mutation delay_input="false"></mutation> <field name="OID">alexa2.0.Echo-Devices.G090LF11749612G9.Commands.ssml</field> <field name="WITH_DELAY">FALSE</field> <value name="VALUE"> <block type="text_join" id="S5HX)]bF/s)e~1fPG~d."> <mutation items="1"></mutation> <value name="ADD0"> <block type="variables_get" id="QlGrLA6|iTV2$REtd8#%"> <field name="VAR" id="M3m7O(~[HxAyvaZ`X9fc" variabletype="">dingdong</field> </block> </value> </block> </value> <next> <block type="comment" id="MRK7f;Dk;^1*FJ[EYZa$"> <field name="COMMENT">Lampe Küche</field> <next> <block type="control" id="nOc$hI_^#|:*L)IL1PR("> <mutation delay_input="false"></mutation> <field name="OID">sonoff.0.Küchenlicht.POWER</field> <field name="WITH_DELAY">FALSE</field> <value name="VALUE"> <block type="logic_boolean" id="a5LSpcSYFWp]s1z0Bm0`"> <field name="BOOL">TRUE</field> </block> </value> <next> <block type="timeouts_settimeout" id="j]8)ZR8|ryJ_BCXl`xQT"> <field name="NAME">timeout2</field> <field name="DELAY">2</field> <field name="UNIT">sec</field> <statement name="STATEMENT"> <block type="control" id="q#xX5jm;{hR0aMow;0Oq"> <mutation delay_input="false"></mutation> <field name="OID">sonoff.0.Wohnzimmerleuchte.POWER1</field> <field name="WITH_DELAY">FALSE</field> <value name="VALUE"> <block type="logic_boolean" id=":E}y8~$u(O`yh5=l4Z5J"> <field name="BOOL">FALSE</field> </block> </value> <next> <block type="control" id="TxF:g6mES6G}9ByxpZ|B"> <mutation delay_input="false"></mutation> <field name="OID">sonoff.0.Wohnzimmerstrahler.POWER</field> <field name="WITH_DELAY">FALSE</field> <value name="VALUE"> <block type="logic_boolean" id="cv`n*N-7nc_:{Zp;,es`"> <field name="BOOL">FALSE</field> </block> </value> <next> <block type="control" id="}/73MHa9tb/s^${!by9_"> <mutation delay_input="false"></mutation> <field name="OID">sonoff.0.Stehlampe.POWER</field> <field name="WITH_DELAY">FALSE</field> <value name="VALUE"> <block type="logic_boolean" id="nWJu0nz/LZ7-?f8N2$!w"> <field name="BOOL">FALSE</field> </block> </value> <next> <block type="control" id="%w!VX+J0Lq|gtAvo4Dye"> <mutation delay_input="false"></mutation> <field name="OID">sonoff.0.Küchenlicht.POWER</field> <field name="WITH_DELAY">FALSE</field> <value name="VALUE"> <block type="logic_boolean" id="HxMaqDdOU^jRcj:BGLtv"> <field name="BOOL">FALSE</field> </block> </value> </block> </next> </block> </next> </block> </next> </block> </statement> </block> </next> </block> </next> </block> </next> </block> </next> </block> </next> </block> </next> </block> </next> </block> </next> </block> </next> </block> </next> </block> </statement> <next> <block type="timeouts_settimeout" id="iiaM#Q#p#-!KJ0SdVU@%"> <field name="NAME">timeout3</field> <field name="DELAY">14</field> <field name="UNIT">sec</field> <statement name="STATEMENT"> <block type="control" id=";Pl$4~[E[,_AoRFr3!+3"> <mutation delay_input="false"></mutation> <field name="OID">cloud.0.services.Door</field> <field name="WITH_DELAY">FALSE</field> <value name="VALUE"> <block type="logic_boolean" id="ZETJ-Q{JIEXb?ZaI2BOd"> <field name="BOOL">FALSE</field> </block> </value> </block> </statement> </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> </next> </block> </next> </block> </statement> </block> </xml>
  • Xiaomi Dash Button schaltet nicht nach Blockly

    blockly
    11
    1
    0 Votes
    11 Posts
    825 Views
    MyzerATM
    du gehst auf deinen ersten Beitrag hier und klickst auf die drei punkte und auf bearbeiten und oben im Titel schreibst du vor deinem Titel [gelöst] [image: 1555159431391-6a5e7d72-d2aa-4a7a-b1a7-aceb045053d8-grafik.png]
  • Alexa und Nuki mit Blockly

    2
    0 Votes
    2 Posts
    256 Views
    ?
    Das Nuki hat ein Objekt mit dem Namen state und das wird mit Zahlen angegeben. Wenn also der Wert von Objekt die Zahl X hat dann lass Alexa sagen: Blablabla
  • Warum schaltet Pushover nicht richtig?

    53
    2
    0 Votes
    53 Posts
    4k Views
    Z
    Habs geändert... SO habe ich immer eine Pushnachricht 2x bekommen beim Anziehen und beim Abfallen ;) läuft alles... Danke nochmal euch beiden! :v:
  • Stop Timeout keine Wirkung

    4
    1
    0 Votes
    4 Posts
    705 Views
    AsgothianA
    @rantanplan sagte in Stop Timeout keine Wirkung: Was sagt denn die Reihenfolge der Debug Ausgabe? Ich würde, zur Sicherheit, vor jedem Timer ein "Stop Timer" setzen. Da ist die Lösung versteckt. Du solltest folgendes versuchen: Jeweils vor dem Timeout prüfen ob der Timeout schon aktiv ist. Wenn ja, dann keinen weiteren setzen.
  • Lichtsteuerung Farben und Helligkeit

    19
    1
    0 Votes
    19 Posts
    1k Views
    MyzerATM
    so bin nun dem nachgegangen und es hat sich herausgestellt das die lampen auch per Tuya Adapter steuerbar sind, muss mich nur mal damit ein wenig auseinandersetzen [image: 1555011260506-623c36ac-8c25-4d7d-b340-8860ea3e0458-grafik.png]
  • Blockly Script- tägliche Laufzeit

    7
    0 Votes
    7 Posts
    1k Views
    Dr. BakteriusD
    @highline sagte in Blockly Script- tägliche Laufzeit: Hast du dazu für einen Anfänger eventuell ein Blockly-Beispiel? Das wäre super! Sorry, aber ich bin die nächste Zeit nicht an meinem PC. Vielleicht kann dir wer anderer helfen? Du kommst aber sicher selbst bald auf die Lösung wenn du dich etwas damit beschäftigst und die Logik verstehst.
  • Eine Frage zum und/oder Logikbaustein

    9
    1
    0 Votes
    9 Posts
    660 Views
    BBTownB
    @mehrwiedu Wenn der Trigger nichts beinhaltet, dann greift der ins leere .... die Triggerinformation wird nicht verarbeitet ... wie auch
  • Nuki 2.0 soll Lampen anschalten

    19
    1
    0 Votes
    19 Posts
    2k Views
    smaragdschlangeS
    Hallo zusammen, @tsiobroker also, wenn ich das hier jetzt richtig verstanden habe, hattest Du bereits eine Anbindung an die Bridge in ioBroker, bevor Du den Adapter installiert hast, richtig? Meiner Erfahrung nach stört die Nutzung z.B. eines Scripts die Kommunikation zwischen Nuki-Adapter und Nuki-Bridge. Solltest Du also den Adapter nutzen, solltest Du alle anderen Scripte, die mit der Bridge kommunizieren, deaktivieren.
  • Xiaomi Mi Smartswitch funktioniert nur sporadisch in Blockly

    20
    2
    0 Votes
    20 Posts
    980 Views
    jmeister79J
    Guten morgen, danke für den hinweis, ichw erde das mal ausprobieren, bin neulich etwas daran verzweifelt weil ich das in blockly nicht sooo gazn verstehe. Ich habe es jetzt erstmal durch eine Besonderheit im Xiaomi Bewegungsmelder gelöst. Der hat eine Variable die die Zeit seit der letzten Bewegung bis 600s hochzählt. Die tut ja genau das was ich suche. Da spare ich mir den Timer. Ich werde bei Gelegenheit mal das Blockly vorstellen, finde es ganz spannend. Habe noch Handmodes für den Entfeuchter eingebaut usw. Nils
  • [gelöst] Sonnenauf- und untergang vom Vortag?

    6
    2
    0 Votes
    6 Posts
    754 Views
    R
    Warum so umständlich? Wenn ich richtig verstanden habe, willst du, dass beim Tür Öffnen zwischen Sonnenuntergang und Sonnenaufgang das Licht angeht!? Also, wenn Tür auf und aktuelle Zeit nicht zwischen Sonnenaufgang und Sonnenuntergang dann Licht an! Wie weiter oben schon geschrieben wurde, sollte es egal sein, ob die SA/SU Zeit vom Vortag stammt oder nicht! Enrico
  • 0 Votes
    20 Posts
    1k Views
    MyzerATM
    so habs jetzt mal so gemacht, kann es aber grade nicht testen, Frauchen hört Musik ^^ [image: 1554889657588-eed625a0-d201-45bc-bb1d-5951aa07ef05-grafik.png]
  • [gelöst] Konvertierungsproblem mit Zahl in Zeit

    21
    1
    0 Votes
    21 Posts
    3k Views
    rantanplanR
    Eine super Diskusionsrunde! Habe mal wieder was gelernt. Danke an alle Teilnehmer.
  • Astrofunktion schaltet nicht wie geplant.

    blockly
    21
    1
    0 Votes
    21 Posts
    3k Views
    Beliar_666B
    @Dutchman sagte in Astrofunktion schaltet nicht wie geplant.: jup wird noch so 2-3 Wochen dauern Damit ist meine Frage auf GIT auch beantwortet.... ;-)
  • [Gelöst] Trigger 3 x in 15 minuten >>> dann

    blockly
    53
    0 Votes
    53 Posts
    6k Views
    M
    @nevermind Ich habe mein ursprüngliches script mit dem queue von @Asgothian zusammengeführt und somit sicherheitstechnisch erweitert. Ich finde, das ist die optimale Lösung.

481

Online

32.6k

Users

82.3k

Topics

1.3m

Posts