Skip to content

Blockly

Hilfe für Skripterstellung mit Blockly

6.6k Topics 79.5k Posts

NEWS

  • HM DIS WM55 - Icon über rpc löschen

    blockly
    1
    0 Votes
    1 Posts
    187 Views
    No one has replied
  • Idee gesucht: Alexa Timer Restlaufzeit

    38
    0 Votes
    38 Posts
    4k Views
    andiko2A
    ok werde dahin wechseln.
  • Schaltzeiten Addieren, Gesamt "An" in Minuten ..

    6
    1
    0 Votes
    6 Posts
    3k Views
    paul53P
    @Mento sagte: Könntest du mir den code zur Verfügung stellen? Spoiler <xml xmlns="http://www.w3.org/1999/xhtml"> <variables> <variable type="" id="E`qm`o|L-sO)k*04AxaC">ed</variable> </variables> <block type="on_ext" id="wNNWp~Y_FZe|v#%-dVwx" x="-162" y="-513"> <mutation items="2"></mutation> <field name="CONDITION">ne</field> <field name="ACK_CONDITION"></field> <value name="OID0"> <shadow type="field_oid" id="~?t}50$cE*vhNwt/9d{k"> <field name="oid">sonoff.0.creationx-1023.DS18B20_Temperature</field> </shadow> </value> <value name="OID1"> <shadow type="field_oid" id="Hpa0]B73T)Sl=V{evgz2"> <field name="oid">fritzdect.0.DECT200_087610178347.temp</field> </shadow> </value> <statement name="STATEMENT"> <block type="controls_if" id="RtbEZklb).NV+Z98Gef:"> <value name="IF0"> <block type="time_compare" id="hH9U#G+TH0pk@~BgyC^A"> <mutation end_time="true"></mutation> <field name="OPTION">between</field> <field name="START_TIME">11:45</field> <field name="END_TIME">18:15</field> </block> </value> <statement name="DO0"> <block type="controls_if" id="f`]_ZnrJPO+/s2gj8/sr"> <mutation elseif="1"></mutation> <value name="IF0"> <block type="logic_operation" id="Ay:;6+j:q;d8n/9*)VQC" inline="false"> <field name="OP">AND</field> <value name="A"> <block type="logic_compare" id="uLfZ.8ij68Im%Zp4D[K^"> <field name="OP">GT</field> <value name="A"> <block type="get_value" id="0MF^84cfN$rvZt-sMm7V"> <field name="ATTR">val</field> <field name="OID">sonoff.0.creationx-1023.DS18B20_Temperature</field> </block> </value> <value name="B"> <block type="math_arithmetic" id="kO*{.nQyNy]#0AQMs^@E"> <field name="OP">ADD</field> <value name="A"> <shadow type="math_number" id="S-?[ltaJSwGg=L^bp!Mh"> <field name="NUM">1</field> </shadow> <block type="get_value" id="fUzf0{W!S.r?tCW2os-8"> <field name="ATTR">val</field> <field name="OID">fritzdect.0.DECT200_087610178347.temp</field> </block> </value> <value name="B"> <shadow type="math_number" id="MuGm=)+OJsJ.%A.7J70)"> <field name="NUM">1</field> </shadow> <block type="math_number" id="u9EWK?-EMe(imqdeoX54"> <field name="NUM">4</field> </block> </value> </block> </value> </block> </value> <value name="B"> <block type="logic_compare" id=":bVQVcrIL(YDY32VCsAp"> <field name="OP">EQ</field> <value name="A"> <block type="get_value" id="Qq4-:mE3r.sA9^D{Luee"> <field name="ATTR">val</field> <field name="OID">fritzdect.0.DECT200_087610178347.state</field> </block> </value> <value name="B"> <block type="logic_boolean" id="%C|:bx-oZCzz_A7vqcWK"> <field name="BOOL">FALSE</field> </block> </value> </block> </value> </block> </value> <statement name="DO0"> <block type="control" id="/-2XhHkBmKey*R%[!n?d"> <mutation delay_input="false"></mutation> <field name="OID">fritzdect.0.DECT200_087610178347.state</field> <field name="WITH_DELAY">FALSE</field> <value name="VALUE"> <block type="logic_boolean" id="q7t)HORVod)v9]3W}jo2"> <field name="BOOL">TRUE</field> </block> </value> </block> </statement> <value name="IF1"> <block type="logic_operation" id="Yy~I1gw@#1s|eb*^QU]s" inline="false"> <field name="OP">AND</field> <value name="A"> <block type="logic_compare" id="gJ(-S([ECw`S;(0i=r+M"> <field name="OP">LT</field> <value name="A"> <block type="get_value" id=":;OaqB@6DgEvHKMx[Z/="> <field name="ATTR">val</field> <field name="OID">sonoff.0.creationx-1023.DS18B20_Temperature</field> </block> </value> <value name="B"> <block type="math_arithmetic" id="!,vG%j$6J{Ikzg:x~x?U"> <field name="OP">ADD</field> <value name="A"> <shadow type="math_number" id="S-?[ltaJSwGg=L^bp!Mh"> <field name="NUM">1</field> </shadow> <block type="get_value" id="C-xfh:R`9N#Rsvj7?gaz"> <field name="ATTR">val</field> <field name="OID">fritzdect.0.DECT200_087610178347.temp</field> </block> </value> <value name="B"> <shadow type="math_number" id="MuGm=)+OJsJ.%A.7J70)"> <field name="NUM">1</field> </shadow> <block type="math_number" id="B5/nTLNzT9]2HGKj)k=M"> <field name="NUM">4</field> </block> </value> </block> </value> </block> </value> <value name="B"> <block type="logic_compare" id="fsEVLCKjDeTnXQO4viQs"> <field name="OP">EQ</field> <value name="A"> <block type="get_value" id="G2%KCoV,9q)w;P-cWe8F"> <field name="ATTR">val</field> <field name="OID">fritzdect.0.DECT200_087610178347.state</field> </block> </value> <value name="B"> <block type="logic_boolean" id="T#4?AUYpx3)^tR)foJe("> <field name="BOOL">TRUE</field> </block> </value> </block> </value> </block> </value> <statement name="DO1"> <block type="control" id="gG{^EIio~OS*1nMq(CEu"> <mutation delay_input="true"></mutation> <field name="OID">fritzdect.0.DECT200_087610178347.state</field> <field name="WITH_DELAY">TRUE</field> <field name="DELAY_MS">50</field> <field name="UNIT">sec</field> <field name="CLEAR_RUNNING">FALSE</field> <value name="VALUE"> <block type="logic_boolean" id="C_xtJ}B3Z+oFPE:v?=+w"> <field name="BOOL">FALSE</field> </block> </value> </block> </statement> </block> </statement> <next> <block type="controls_if" id="-%l-D?i;KD83Qi8{S#u0"> <value name="IF0"> <block type="logic_operation" id="Y56yfZwbe-u2O0CTTO,-" inline="false"> <field name="OP">AND</field> <value name="A"> <block type="time_compare_ex" id="1i9lU97W+J-eLC`CGBNw"> <mutation end_time="false" actual_time="true"></mutation> <field name="USE_ACTUAL_TIME">TRUE</field> <field name="OPTION">&gt;</field> <value name="START_TIME"> <shadow type="text" id="Eq9Cu/~/=7d(jR!4`3Pm"> <field name="TEXT">18:20</field> </shadow> </value> </block> </value> <value name="B"> <block type="logic_compare" id="dnF}Dk^~5RI+e)g:O1oN"> <field name="OP">EQ</field> <value name="A"> <block type="get_value" id="-zW/+Lp3:})J^MF;sIMQ"> <field name="ATTR">val</field> <field name="OID">fritzdect.0.DECT200_087610178347.state</field> </block> </value> <value name="B"> <block type="logic_boolean" id="^d[x-)l*1:/VIr3=kVyi"> <field name="BOOL">TRUE</field> </block> </value> </block> </value> </block> </value> <statement name="DO0"> <block type="control" id="Jm3z*dMhXRRf!Our3?ne"> <mutation delay_input="true"></mutation> <field name="OID">fritzdect.0.DECT200_087610178347.state</field> <field name="WITH_DELAY">TRUE</field> <field name="DELAY_MS">20</field> <field name="UNIT">sec</field> <field name="CLEAR_RUNNING">FALSE</field> <value name="VALUE"> <block type="logic_boolean" id="iraX-caBHny?Py:,|Xe{"> <field name="BOOL">FALSE</field> </block> </value> </block> </statement> </block> </next> </block> </statement> <next> <block type="on_ext" id="(;}k#gj(B8O%:y(8J{,Q"> <mutation items="1"></mutation> <field name="CONDITION">ne</field> <field name="ACK_CONDITION"></field> <value name="OID0"> <shadow type="field_oid" id="`5[f^5v.jLycf`Os(xgo"> <field name="oid">default</field> </shadow> <block type="text" id="OU}@/_}#NA1MbjgW;?WI"> <field name="TEXT">fritzdect.0.DECT200_087610178347.state</field> </block> </value> <statement name="STATEMENT"> <block type="controls_if" id="uUk?IXEtvd9ElEd.$0SH"> <value name="IF0"> <block type="logic_negate" id="k;:UHp9Z.mOi;izEzD+;"> <value name="BOOL"> <block type="on_source" id="UoXrzFXQ+Sr`_uYi6hY/"> <field name="ATTR">state.val</field> </block> </value> </block> </value> <statement name="DO0"> <block type="math_change" id="9J3]oUsMBpmy:5SfkMw7"> <field name="VAR" id="E`qm`o|L-sO)k*04AxaC" variabletype="">ed</field> <value name="DELTA"> <shadow type="math_number" id="X6Z{c![3aM!ITT0Avf{C"> <field name="NUM">1</field> </shadow> <block type="math_arithmetic" id="xAfgjF{W$2Zp@.qr`0d)" inline="false"> <field name="OP">DIVIDE</field> <value name="A"> <shadow type="math_number" id="NqW1c)DE0+{w#SXlc~Fx"> <field name="NUM">1</field> </shadow> <block type="math_arithmetic" id="Qo)5)#AinD,NK__B?KkO" inline="false"> <field name="OP">MINUS</field> <value name="A"> <shadow type="math_number" id="2p!3#Py6}f]gNQ!:)Qbs"> <field name="NUM">1</field> </shadow> <block type="on_source" id="u(]b1pUwq=|#K1CPsVkT"> <field name="ATTR">state.lc</field> </block> </value> <value name="B"> <shadow type="math_number" id="+E[ka_P9UbE;!;Ok5PSr"> <field name="NUM">1</field> </shadow> <block type="on_source" id="Hi=n~,8B+M|TF[O[--$j"> <field name="ATTR">oldState.lc</field> </block> </value> </block> </value> <value name="B"> <shadow type="math_number" id="G`#C*jQB4@M-%w,1f*{p"> <field name="NUM">1</field> </shadow> <block type="math_number" id="T|.d0,3qdrH8boq[-?Z`"> <field name="NUM">60000</field> </block> </value> </block> </value> </block> </statement> </block> </statement> <next> <block type="schedule" id="XN~GXwqSPWyk}H~l~K)Z"> <field name="SCHEDULE">15 18 * * *</field> <statement name="STATEMENT"> <block type="controls_if" id="$6jH0BuAb(6@ztv)`f=+"> <value name="IF0"> <block type="get_value_var" id=".8go/3x}.@2hhCX}WSa|"> <field name="ATTR">val</field> <value name="OID"> <shadow type="text" id="zW.J?}rJ;*,d0X(H!!AX"> <field name="TEXT">fritzdect.0.DECT200_087610178347.state</field> </shadow> </value> </block> </value> <statement name="DO0"> <block type="control" id="EZn@l+8n~g73=sP-6yMz"> <mutation delay_input="false"></mutation> <field name="OID">Object ID</field> <field name="WITH_DELAY">FALSE</field> <value name="VALUE"> <block type="logic_boolean" id="k7,uN26l^YJk*x3mLWo]"> <field name="BOOL">FALSE</field> </block> </value> </block> </statement> </block> </statement> <next> <block type="schedule" id="Kob;^Bz=rn6.aWoG=`(["> <field name="SCHEDULE">45 11 * * *</field> <statement name="STATEMENT"> <block type="variables_set" id="Z#Q6h3XIg/#s!q9J5T?O"> <field name="VAR" id="E`qm`o|L-sO)k*04AxaC" variabletype="">ed</field> <value name="VALUE"> <block type="math_number" id="ULCi/5qJtJ=cV_EM^yK="> <field name="NUM">0</field> </block> </value> </block> </statement> </block> </next> </block> </next> </block> </next> </block> </xml>
  • Fernseher Zeitverzögert ausschalten

    21
    1
    0 Votes
    21 Posts
    2k Views
    BBTownB
    @Freakezoid Wäre für deine Anforderung eine einfache "Schaltverzögrung" im Blocky-Element des TV denn nicht ausreichend? [image: 1562502357899-7e3092ef-32df-4ba7-8b1b-69684811ea69-grafik.png] Wenn Du zufällig auch einen "Broadlink" hast (für Fernbedienungssignale?), dann hätte ich eine Alternative für dich zum Ausschalten des SAMSUNG, sofern der Sasmsung Adapter nicht zuverlässig funktioniert. Brroadlink-Code zum Eiinschalten von SAMSUNG TVs 2600d200949413371237133712121213121212131212123713371238121212121213121212121337121212131138123812121213113812131138123812121212123812381212120006009494123713371238121212121213121212121238123713371212121312121213121212371312121212381237121311131238121212371238121213121237123812121200060094941238123713371212121312121212121312371238123713121212121311131212123812121213113812381212121212381212123812371312121212381237121312000d050000000000000000 Brroadlink-Code zum Ausschalten von SAMSUNG TVs 2600d200969413361337123812121212131211131113123812381237131210141212121310141113121311131136153712131014123713371238133612131113123712381212120006009494123813361436121311131212121310141237133712381311121212131113121211141113121212381238131111131139123713371337111311131139123713121200060094941336123813361411121212131113121212381237133712121213111312121312111312131113123712381311121311381238123713371212121311381337121212000d050000000000000000
  • Terrariumlicht

    2
    0 Votes
    2 Posts
    114 Views
    J
    @Jens78 sorry aber text wird noch so wieder geben wie ich ihn schreibe
  • Luftfeuchtigkeitsabfrage > Pushover

    20
    1
    0 Votes
    20 Posts
    654 Views
    TG70T
    Ich habe es jetzt mal so gelöst. Aktuell ist es ja eher trocken... hat bisher aber noch keine Zeit es manuell zu testen. [image: 1562425649507-luftfeuchtigkeit.png]
  • [gelöst] TV an/aus script stoppt immer wieder

    blockly
    50
    1
    0 Votes
    50 Posts
    5k Views
    BBTownB
    @zyklop ändere einfach in deinem ersten Beitrag den Betreff indem Du ein [gelöst] vor der eigentlichen Überschrift schreibst
  • (gelöst) eine Aktion nach einer Zeit ausführen

    blockly
    11
    1
    0 Votes
    11 Posts
    459 Views
    ostseereiterO
    @BBTown das erste von dir hat schon funktioniert danke an alle.
  • Wie am besten Zeitplan umsetzen ? Pool Pumpe

    blockly
    5
    0 Votes
    5 Posts
    641 Views
    liv-in-skyL
    @ChrisXY hab dieses projekt mal gesehen - da gibt es auch eine gui - habe es selber nicht getestet aber vielleicht wäre es was für dich https://forum.iobroker.net/topic/23346/vorlage-variable-zeitsteuerung-mit-vis-editor/2
  • (gelöst) WM 55 Status per Blockly setzen

    blockly
    13
    1
    0 Votes
    13 Posts
    1k Views
    H
    Es ist ein wenig komplizierter wie gedacht: Das Display mag es wohl nicht, wenn ein Icon gesetzt wird und es dazu keinen Text gibt. Durch das Neuanlegen des Gerätes waren die Metadaten in den Textfeldern leer. Wenn man die erst beschreibt und dann das Icon setzt geht das auch wieder. Ich setzte die Textfeldern nun auch neu wenn sich nur das Icon ändert. Übrigens jetzt auch ohne Fehlermeldung im Log. Ich habe den Titel des Beitrages mal geändert und als "Gelöst" gekennzeichnet. Danke und Gruß Holger
  • Funktionsweise von Funktionen

    blockly
    2
    0 Votes
    2 Posts
    213 Views
    paul53P
    @schweiger2 sagte: Ich habe sehr wenig darüber im Internetz oder im Forum gefunden. SELFHTML und Mozilla helfen.
  • Warnung nach 15min

    16
    1
    0 Votes
    16 Posts
    1k Views
    UweRLPU
    Ich hätte diesen Vorschlag :blush: [image: 1562247353681-vorschlag.jpg]
  • Script zum ändern eines Datenpunktes von 1 auf 0

    3
    0 Votes
    3 Posts
    240 Views
    T
    :flushed: Ah, hinter dem Zahnrad ist das else zu finden Danke!
  • Exec wget aus iobroker nicht möglich ?

    blockly
    3
    0 Votes
    3 Posts
    710 Views
    C
    jup kein fehler der wird ausgeführt. Nun geht es auch wieder .. weiss nicht wieso. Werde es jetzt mal beobachten. Danke
  • Dimmer mit Helligkeitswert - zwischen zwei Werten

    21
    0 Votes
    21 Posts
    2k Views
    capitaenzC
    @Homoran Danke für den Tipp, aber heute reicht es mir grad. Schau erstmal das die Lampe wieder bei dir wieder aus bleibt =) VG Leif
  • Leds schalten nicht Ws2812

    72
    1
    0 Votes
    72 Posts
    5k Views
    SeiteBallon74S
    Alles klar. Danke dir für die Hilfe
  • Berechnung der Liter in der Zisterne

    23
    2
    0 Votes
    23 Posts
    2k Views
    Amnesia1211A
    @umbm Habe es leider nicht so ganz verstanden wie es geht wenn ich ehrlich bin,[image: 1561479762743-funktionen_fuer_dp.png] dachte ich bekomme es hin aber, leider hat es nicht geklappt :anguished: Hast du vielleicht ein kleines "Tutorial" wie man vorgehen muss. Sorry das ich so doof frage.
  • Zähler + X dann ausführen

    2
    0 Votes
    2 Posts
    264 Views
    paul53P
    @ludino sagte: dann bei 5, dann 10 dann 15 usw... [image: 1561900768197-blockly_temp.jpg]
  • Error Meldungen nach Update der Script Engine

    4
    0 Votes
    4 Posts
    256 Views
    paul53P
    @peleroform sagte: Da hat es zwar angezeigt, dass es erfolgreich war, aber angezeigt wurde mir keine instanz. Was bedeutet: Keine Instanz angezeigt ? Die Versionsnummer bleibt 4.1.13. Man merkt den Unterschied nur an den ausbleibenden Fehlermeldungen.
  • Alarmanlage mit Pushover - Probleme

    3
    1
    0 Votes
    3 Posts
    396 Views
    R
    Super, jetzt läufts. Okay ich muss ein Moment warten zwischen Fenster schließen und Türe Abschließen. Sonst bekommt das System es noch nicht mit. Aber es läuft. Nun Fehlt noch der Punkt, Alarm bei abgeschlossen. Aber da probiere ich erstmal selber aus und gucke ob ich es hin bekomme. Aber wird schon. Kann ich den verschiedene "Programmstreifen" in einem zusammen fassen oder ist an sich besser für Jeden Streifen ein Programm? Also Programm a zum Scharfschalten der Alarmanlage und Programm b zum überwachen der Alarmanlage im eingeschaltetem Zustand. Michael

304

Online

32.7k

Users

82.4k

Topics

1.3m

Posts