Skip to content

Blockly

Hilfe für Skripterstellung mit Blockly

6.5k Themen 79.2k Beiträge

NEWS

  • Wert zwischenspeichern und erhöhen dann zurückschreiben

    2
    0 Stimmen
    2 Beiträge
    243 Aufrufe
    H
    [image: 1581856361230-unbenannt.png] Blockyscript <xml xmlns="http://www.w3.org/1999/xhtml"> <variables> <variable type="undefined" id="timeout2">timeout2</variable> <variable type="undefined" id="timeout">timeout</variable> <variable type="undefined" id="timeout4">timeout4</variable> </variables> <block type="schedule" id="U:!h~?_CbrAVPk,pt}-," x="-1962" y="-237"> <field name="SCHEDULE">*/6 * * * * *</field> <statement name="STATEMENT"> <block type="controls_if" id="Z4!7,LpZ*z;p#NQ3R92("> <value name="IF0"> <block type="logic_compare" id="dJeJ1Y}Sd}TGa/o^rOb8"> <field name="OP">EQ</field> <value name="A"> <block type="get_value" id="!Rb]2z%T5`@DdM`2I=!~"> <field name="ATTR">val</field> <field name="OID">tradfri.0.L-65559.alive</field> </block> </value> <value name="B"> <block type="logic_boolean" id="y3faO^pMgWGRlJ16b46b"> <field name="BOOL">FALSE</field> </block> </value> </block> </value> <statement name="DO0"> <block type="timeouts_settimeout" id="N]ll-M$BV2QO_Q]djO~q"> <field name="NAME">timeout2</field> <field name="DELAY">200</field> <field name="UNIT">ms</field> <statement name="STATEMENT"> <block type="control" id="1E*6M3*_SU;P,IjAlBoF"> <mutation delay_input="false"></mutation> <field name="OID">aDatenpunkte.0.Kinderzimmerhilfsvariable</field> <field name="WITH_DELAY">FALSE</field> <value name="VALUE"> <block type="get_value" id="236cP-T)Bb2X`KwtnmHN"> <field name="ATTR">val</field> <field name="OID">tradfri.0.L-65559.lightbulb.brightness</field> </block> </value> <next> <block type="debug" id="Eo8t#r9vyFyE0#.*!ik*"> <field name="Severity">log</field> <value name="TEXT"> <shadow type="text" id="=um#8AFkEg43*)4cg1Ma"> <field name="TEXT">test</field> </shadow> <block type="text_join" id="gaw:_Gv)e4-+f%R03O=H"> <mutation items="5"></mutation> <value name="ADD0"> <block type="text" id="1S.Fo4=:[v3HE+EtySod"> <field name="TEXT">Speichern </field> </block> </value> <value name="ADD1"> <block type="text" id="r~_mVOr06C~vZcs0R!Qo"> <field name="TEXT">Speicher </field> </block> </value> <value name="ADD2"> <block type="get_value" id="39$)Q{jjR@dGs!+2p|8{"> <field name="ATTR">val</field> <field name="OID">aDatenpunkte.0.Kinderzimmerhilfsvariable</field> </block> </value> <value name="ADD3"> <block type="text" id="5=qRO_(bl?;-:/Y4m:d7"> <field name="TEXT"> DimmerBrightness </field> </block> </value> <value name="ADD4"> <block type="get_value" id="{r#/rNsseC;RMnk[D`U]"> <field name="ATTR">val</field> <field name="OID">tradfri.0.L-65559.lightbulb.brightness</field> </block> </value> </block> </value> </block> </next> </block> </statement> <next> <block type="timeouts_settimeout" id="(i91($!0@Zc%X2b/h.x3"> <field name="NAME">timeout</field> <field name="DELAY">500</field> <field name="UNIT">ms</field> <statement name="STATEMENT"> <block type="control" id="wL95q7#xya2opk3Jsfuk"> <mutation delay_input="false"></mutation> <field name="OID">tradfri.0.L-65559.lightbulb.brightness</field> <field name="WITH_DELAY">FALSE</field> <value name="VALUE"> <block type="math_arithmetic" id=")NkLbRp0zb9fqxtiB}D2"> <field name="OP">ADD</field> <value name="A"> <shadow type="math_number" id="F~U4I`,.-Wk%u.6B.S1M"> <field name="NUM">1</field> </shadow> <block type="get_value" id="G2MMb(?EH3K~)pE~l}iz"> <field name="ATTR">val</field> <field name="OID">tradfri.0.L-65559.lightbulb.brightness</field> </block> </value> <value name="B"> <shadow type="math_number" id="Uvu71PEKX49*%Pb;BGzq"> <field name="NUM">2</field> </shadow> </value> </block> </value> <next> <block type="debug" id="?;Ld!([@=~xRL/Gk_ee("> <field name="Severity">log</field> <value name="TEXT"> <shadow type="text" id="=um#8AFkEg43*)4cg1Ma"> <field name="TEXT">test</field> </shadow> <block type="text_join" id="4V-i`abyP.CO81R1aUG0"> <mutation items="5"></mutation> <value name="ADD0"> <block type="text" id="SoJbw72$VMS,bAn.KP2o"> <field name="TEXT">__Erhöhen </field> </block> </value> <value name="ADD1"> <block type="text" id="[MS|[#MRJPxRXLoPy2NF"> <field name="TEXT">Speicher </field> </block> </value> <value name="ADD2"> <block type="get_value" id="QVw=O~8^6./aDzOIQLHN"> <field name="ATTR">val</field> <field name="OID">aDatenpunkte.0.Kinderzimmerhilfsvariable</field> </block> </value> <value name="ADD3"> <block type="text" id="M6}ZziNA).dF3)DH@f7S"> <field name="TEXT"> DimmerBrightness </field> </block> </value> <value name="ADD4"> <block type="get_value" id="M!==bhZ?(S7LH=VvK2+."> <field name="ATTR">val</field> <field name="OID">tradfri.0.L-65559.lightbulb.brightness</field> </block> </value> </block> </value> </block> </next> </block> </statement> <next> <block type="timeouts_settimeout" id="uO|}9y6wZW213Is_.,%T"> <field name="NAME">timeout4</field> <field name="DELAY">700</field> <field name="UNIT">ms</field> <statement name="STATEMENT"> <block type="control" id="w4+8wdyJKMUU@(nu~~~?"> <mutation delay_input="true"></mutation> <field name="OID">tradfri.0.L-65559.lightbulb.brightness</field> <field name="WITH_DELAY">TRUE</field> <field name="DELAY_MS">1000</field> <field name="UNIT">ms</field> <field name="CLEAR_RUNNING">TRUE</field> <value name="VALUE"> <block type="get_value" id="%*^{$Bs4@P]HUrpO1gqh"> <field name="ATTR">val</field> <field name="OID">aDatenpunkte.0.Kinderzimmerhilfsvariable</field> </block> </value> <next> <block type="debug" id="C^5|.h,T9]^Zf0EG=;dU"> <field name="Severity">log</field> <value name="TEXT"> <shadow type="text" id="=um#8AFkEg43*)4cg1Ma"> <field name="TEXT">test</field> </shadow> <block type="text_join" id="2FgobS$bjR/nYHV|}=Os"> <mutation items="5"></mutation> <value name="ADD0"> <block type="text" id="I^XVA6u?/~N6?^AaI*Pa"> <field name="TEXT">___Zurück </field> </block> </value> <value name="ADD1"> <block type="text" id="+(3BUVQ;snk[Qx#U7S#-"> <field name="TEXT">Speicher </field> </block> </value> <value name="ADD2"> <block type="get_value" id=".%[8woj[EY!*;yu@1?lz"> <field name="ATTR">val</field> <field name="OID">aDatenpunkte.0.Kinderzimmerhilfsvariable</field> </block> </value> <value name="ADD3"> <block type="text" id="6[VzeLlwqL*T/Q{_K.SZ"> <field name="TEXT"> DimmerBrightness </field> </block> </value> <value name="ADD4"> <block type="get_value" id="dE)N8i*8W1vgZ,K?)F.m"> <field name="ATTR">val</field> <field name="OID">tradfri.0.L-65559.lightbulb.brightness</field> </block> </value> </block> </value> </block> </next> </block> </statement> </block> </next> </block> </next> </block> </statement> </block> </statement> </block> </xml>
  • [Gelöst] Tuya Zentralsteuerung Rollos

    5
    0 Stimmen
    5 Beiträge
    574 Aufrufe
    B
    Habe es jetzt erfolgreich hinbekommen und Teile das mal hier, falls das mal jemand brauchen sollte: Ich habe zuerst einen virtuellen Rolladenschalter als custom Object unter Javascript.0 erstellt (RAW Ansicht) (Vorbild waren meine Tuyaschalter) [image: 1581858068368-eb85d64d-c426-4273-a490-4083ae1050ba-grafik.png] Dann ein neues Blocklyscript erstellt (anbei der Teil mit dem alle Rollos hochfahren) [image: 1581858199597-dd275aaa-7074-4471-bbef-bb0ba73465d3-grafik.png] Am Ende sieht mein HabPanel jetzt so aus [image: 1581858539803-463c365e-0ab6-4f2b-a76a-ca46d6d5bc0d-grafik.png] Bin noch neu in dem Thema, daher alles noch am Anfang :)
  • Wiederholende Ausgabe in Telegram

    4
    0 Stimmen
    4 Beiträge
    808 Aufrufe
    J
    Ich habe den Fehler gefunden. Es lag nicht an dem Interval, sondern an dem Trigger. Der Trigger wurde auf "ist wahr" geprüft. Dadurch wurde er mehrfach gestartet und somit auch mehrfach (innerhalb von 2400ms) die Telegram-Nachricht gesendet. Mit dem Umstellen auf "wurde geändert" im Trigger läuft das Script nur einmal und auch die Nachricht wird nur einmal gesendet. Das fertige Script sieht nun wie folgt aus: [image: 1581768350196-2020-02-15-13_00_40-javascript-iobroker.png]
  • Blockly treibt mich in den Wahnsinn 😂

    blockly
    2
    0 Stimmen
    2 Beiträge
    192 Aufrufe
    Homer.J.H
    @HeinrichB Morgen ist bei mir genauso und dann kommt noch der schöne Kreis dazu das nichts mehr reagiert. Dann kurz warten wieder einen Schritt und das selbe. Ist schon ein bisschen nervig.
  • Blink Kamera

    1
    0 Stimmen
    1 Beiträge
    328 Aufrufe
    Niemand hat geantwortet
  • Fehler bei Script Export

    2
    1
    0 Stimmen
    2 Beiträge
    95 Aufrufe
    -cs--
    Hallo, habe gerade selbiges, hast Du schon was rausgefunden?
  • DWD Meldung zeigt nicht alles

    10
    2
    0 Stimmen
    10 Beiträge
    659 Aufrufe
    S
    @Homoran und genau die geht nicht......ich hab von JSON zu wenig Ahnung.
  • Scribt mit unterschiedlichen Kontakten funktioniert nicht.

    1
    5
    0 Stimmen
    1 Beiträge
    196 Aufrufe
    Niemand hat geantwortet
  • Alarm wenn über Zeit X Wert zu hoch ist.

    blockly
    4
    0 Stimmen
    4 Beiträge
    356 Aufrufe
    OliverIOO
    ich würde den stromverbrauch direkt messen und die historie anschalten (hast wahrscheinlich schon gemacht) schauen wie lange dieser maximale stromverbrauch so ca anhält. dann einen gleitenden Durchschnitt berechnen lassen, für diesen Zeitraum dann einen schwellwert definieren auf basis des gleitenden durchschnitts definieren wo du sagst, das es jetzt zu hoch ist. ein weiteres skript bauen, das dann bei erreichen des schwellwerts die entsprehcenden aktionen durchführt der gleitende durchschnitt puffert kurzzeitige spitzen ab, so das der alarm nicht gleich sofort losgeht, sondern erst dann wenn eine gewisse zeit der stromverbrauch erhöht ist. skript gibts hier https://www.iobroker.net/docu/index-319.htm?page_id=3670&lang=de im forum gabs dazu auch eine diskussion
  • [Hilfe] Steckdose auf Knopfdruck einschalten und prüfen ob

    5
    1
    0 Stimmen
    5 Beiträge
    581 Aufrufe
    S
    @CruziX du hast natürlich vollkommen recht, es muss kleiner als 10 heißen. Danke für den Hinweis! Sobald ich zu Hause bin prüfe ich ob es funktioniert und gebe Feedback. Danke und VG
  • Waschmaschinen fertig & Wäsche aufhängen

    14
    1
    0 Stimmen
    14 Beiträge
    1k Aufrufe
    MyzerATM
    @MartinK Postkasten wäre toll, nur ist der 5 Stockwerke unter uns, also nicht erreichbar
  • Mal wieder Rolladenschalter

    16
    0 Stimmen
    16 Beiträge
    593 Aufrufe
    M
    Hallo Script läuft. Vielen Dank. Jetzt geht es weiter einen normalen Taster zu programmieren. Das Rolladenprogramm hab ich mir eben mal runtergeladen - macht ja eigentlich genau das was ich will. Allerdings muss ich mir dann die Rolladentaster wieder als script schreiben. Aber ich werde mir das mal genauer anschauen. An alle vielen Dank für die Hilfe. Grüße Dirk
  • Blockly und MQTT komisches Verhalten

    2
    4
    0 Stimmen
    2 Beiträge
    572 Aufrufe
    F
    @foto2004 So Leute ich habe es nun hinbekommen, falls es jemanden interessiert ich habe das Blockly folgt geändert: [image: 1581507145330-bildschirmfoto-2020-02-12-um-12.28.53-resized.png]
  • Anwesenheit Skript funktioniert nicht

    blockly
    1
    1
    0 Stimmen
    1 Beiträge
    268 Aufrufe
    Niemand hat geantwortet
  • FB Anrufbeantworter auf Echo ausgeben

    1
    0 Stimmen
    1 Beiträge
    191 Aufrufe
    Niemand hat geantwortet
  • [gelöst]Sonoff bei Sonnenauf/unter schalten und BWM steu.

    11
    0 Stimmen
    11 Beiträge
    878 Aufrufe
    N
    @paul53 sagte in [gelöst]Sonoff bei Sonnenauf/unter schalten und BWM steu.: @newBroker sagte: Was macht auf der rechten Seite die Variable "Wert"? Das ist keine Variable (unter "Variablen"), sondern eine Eigenschaft des Trigger-Datenpunktes (unter "Trigger"). Sie enthält den Wert des Triggers, also true bei "Bewegung erkannt". Ahh jetzt, Ja! Vielen Dank :+1: :upside_down_face:
  • Abfrage von Daten aus iobrocker per KNX Bus auslesen

    1
    0 Stimmen
    1 Beiträge
    238 Aufrufe
    Niemand hat geantwortet
  • Datenmapping KNX > HUE - HUE > KNX

    21
    1
    0 Stimmen
    21 Beiträge
    2k Aufrufe
    S
    @paul53 danke trotzdem für die Hilfe. Ich habe das alte noch ein wenig optimiert, so funktioniert es einwandfrei. [image: 1581429938100-30b99600-cac2-495a-9d42-14e82c98030f-image-resized.png] Hier noch der Blocky Code, falls andere diesen benötigen. <xml xmlns="http://www.w3.org/1999/xhtml"> <block type="comment" id="T~`/,zsTzrW~5?2hUoja" x="-2887" y="-937"> <field name="COMMENT">KNX schalten und Helligkeit setzen</field> <next> <block type="on_ext" id="sW9}K$jM|ubI0LaaQ?AN"> <mutation items="1"></mutation> <field name="CONDITION">any</field> <field name="ACK_CONDITION"></field> <value name="OID0"> <shadow type="field_oid" id="2es_x0f[u@d[7gf3PIg="> <field name="oid">knx.0.ioBroker.HUE_API.Arbeitszimmer_HUE_lightstrip_plus_schalten</field> </shadow> </value> <statement name="STATEMENT"> <block type="control" id="eI6eFeX(fcqK?n+}bd+r"> <mutation delay_input="false"></mutation> <field name="OID">hue.0.Hue_lightstrip_plus_1.on</field> <field name="WITH_DELAY">FALSE</field> <value name="VALUE"> <block type="convert_toboolean" id=",(NsX*lvw6E?8lC*SI`c"> <value name="VALUE"> <block type="on_source" id="TlstZ{sS~%H+L6Yh$iDK"> <field name="ATTR">state.val</field> </block> </value> </block> </value> </block> </statement> <next> <block type="on_ext" id="Pn#.R~sPbk]bU)gu.v;X"> <mutation items="1"></mutation> <field name="CONDITION">any</field> <field name="ACK_CONDITION"></field> <value name="OID0"> <shadow type="field_oid" id="yMSqOpiV`+lN;*PWeHW)"> <field name="oid">knx.0.ioBroker.HUE_API.Arbeitszimmer_HUE_lightstrip_plus_Helligkeitswert</field> </shadow> </value> <statement name="STATEMENT"> <block type="control" id="9y5yytGCSt$WP$CC}wm/"> <mutation delay_input="false"></mutation> <field name="OID">hue.0.Hue_lightstrip_plus_1.level</field> <field name="WITH_DELAY">FALSE</field> <value name="VALUE"> <block type="get_value" id="Gnf;(7l=^A6;6#)OIqs|"> <field name="ATTR">val</field> <field name="OID">knx.0.ioBroker.HUE_API.Arbeitszimmer_HUE_lightstrip_plus_Helligkeitswert</field> </block> </value> </block> </statement> <next> <block type="comment" id="Zt!a?;Qi5}{Kete@3z$Z"> <field name="COMMENT">KNX RGB setzen</field> <next> <block type="on_ext" id="o5OeOn})e%C3SC.FY#3B"> <mutation items="1"></mutation> <field name="CONDITION">any</field> <field name="ACK_CONDITION"></field> <value name="OID0"> <shadow type="field_oid" id="b=.S@|0LH3WaZiE7TQnY"> <field name="oid">knx.0.ioBroker.HUE_API.Arbeitszimmer_HUE_lightstrip_plus_R</field> </shadow> </value> <statement name="STATEMENT"> <block type="control" id="lH+F}uxKV5UQC0X.w@S7"> <mutation delay_input="false"></mutation> <field name="OID">hue.0.Hue_lightstrip_plus_1.r</field> <field name="WITH_DELAY">FALSE</field> <value name="VALUE"> <block type="math_arithmetic" id="$_p2*%[cOLy@PEirI=~u"> <field name="OP">MULTIPLY</field> <value name="A"> <shadow type="math_number" id="eqz+9knwAcCYk5m*q+I_"> <field name="NUM">1</field> </shadow> <block type="get_value" id="V0;Cjx!Le^P,q%V$W#j+"> <field name="ATTR">val</field> <field name="OID">knx.0.ioBroker.HUE_API.Arbeitszimmer_HUE_lightstrip_plus_R</field> </block> </value> <value name="B"> <shadow type="math_number" id="xvUjXH}v*y6dZ7qA#~VW"> <field name="NUM">2.54</field> </shadow> </value> </block> </value> </block> </statement> <next> <block type="on_ext" id="ei_{([w?bwzVGLGZb-;e"> <mutation items="1"></mutation> <field name="CONDITION">any</field> <field name="ACK_CONDITION"></field> <value name="OID0"> <shadow type="field_oid" id="U{yHh`tY6f8Xt:MX^RJj"> <field name="oid">knx.0.ioBroker.HUE_API.Arbeitszimmer_HUE_lightstrip_plus_G</field> </shadow> </value> <statement name="STATEMENT"> <block type="control" id="Y+/b_KUcfnTHVrg=GL-M"> <mutation delay_input="false"></mutation> <field name="OID">hue.0.Hue_lightstrip_plus_1.g</field> <field name="WITH_DELAY">FALSE</field> <value name="VALUE"> <block type="math_arithmetic" id="STt-9^l4V:C@A@5#s%oh"> <field name="OP">MULTIPLY</field> <value name="A"> <shadow type="math_number" id="AsNKVkqC!6;kN=[1u}iG"> <field name="NUM">1</field> </shadow> <block type="get_value" id="MDCFr831ITN^Ir?R6.1A"> <field name="ATTR">val</field> <field name="OID">knx.0.ioBroker.HUE_API.Arbeitszimmer_HUE_lightstrip_plus_G</field> </block> </value> <value name="B"> <shadow type="math_number" id="%6fLuA;lTtYA+)nZopz3"> <field name="NUM">2.54</field> </shadow> </value> </block> </value> </block> </statement> <next> <block type="on_ext" id="BaKlRg0cpY:q^Q~q$KO)"> <mutation items="1"></mutation> <field name="CONDITION">any</field> <field name="ACK_CONDITION"></field> <value name="OID0"> <shadow type="field_oid" id="3C:IJ3=wPu!x!t8RZKH,"> <field name="oid">knx.0.ioBroker.HUE_API.Arbeitszimmer_HUE_lightstrip_plus_B</field> </shadow> </value> <statement name="STATEMENT"> <block type="control" id="s?~|E1%6Fc7JRr+G:~H0"> <mutation delay_input="false"></mutation> <field name="OID">hue.0.Hue_lightstrip_plus_1.b</field> <field name="WITH_DELAY">FALSE</field> <value name="VALUE"> <block type="math_arithmetic" id="T9=M1u]uRwWFZH|r/_r="> <field name="OP">MULTIPLY</field> <value name="A"> <shadow type="math_number" id="AsNKVkqC!6;kN=[1u}iG"> <field name="NUM">1</field> </shadow> <block type="get_value" id="NswJY5d_Hut,!1j+Fp^z"> <field name="ATTR">val</field> <field name="OID">knx.0.ioBroker.HUE_API.Arbeitszimmer_HUE_lightstrip_plus_B</field> </block> </value> <value name="B"> <shadow type="math_number" id="FB#@a*F#9`DK(-eBVcmV"> <field name="NUM">2.54</field> </shadow> </value> </block> </value> </block> </statement> </block> </next> </block> </next> </block> </next> </block> </next> </block> </next> </block> </next> </block> <block type="comment" id="fQClQ1-Ay[n6k}}GNc(Q" x="-1837" y="-962"> <field name="COMMENT">HUE Status nach KNX Schalten und Helligkeit</field> <next> <block type="on_ext" id="Hz/aqz[iTr3Z~3%GM20["> <mutation items="1"></mutation> <field name="CONDITION">ne</field> <field name="ACK_CONDITION"></field> <value name="OID0"> <shadow type="field_oid" id="UNTJ[CW54VoHo#WRu_o~"> <field name="oid">hue.0.Hue_lightstrip_plus_1.on</field> </shadow> </value> <statement name="STATEMENT"> <block type="controls_if" id="O,1z~Di@EnWb{4Lxl2E."> <value name="IF0"> <block type="logic_compare" id="fJLX5shUc=/{Sw,!jD@q"> <field name="OP">NEQ</field> <value name="A"> <block type="on_source" id="#0LB_r2Dy}zDp;[$k?@S"> <field name="ATTR">state.from</field> </block> </value> <value name="B"> <block type="text" id="GjO`626V][CrVBb|d@b`"> <field name="TEXT">system.adapter.javascript.0</field> </block> </value> </block> </value> <statement name="DO0"> <block type="control" id="_3+#qx4rJcFfT;0wqeHw"> <mutation delay_input="false"></mutation> <field name="OID">knx.0.ioBroker.HUE_API.Arbeitszimmer_HUE_lightstrip_plus_schalten</field> <field name="WITH_DELAY">FALSE</field> <value name="VALUE"> <block type="convert_toboolean" id="^(4`f@OJ}2sk]MJLz~NF"> <value name="VALUE"> <block type="on_source" id="0/JBNpq||h~f[m/~j`%L"> <field name="ATTR">state.val</field> </block> </value> </block> </value> </block> </statement> <next> <block type="update" id="+FSIg4J|K[4gs!)oc.w%"> <mutation delay_input="false"></mutation> <field name="OID">knx.0.ioBroker.HUE_API.Arbeitszimmer_HUE_lightstrip_plus_schalten_Status</field> <field name="WITH_DELAY">FALSE</field> <value name="VALUE"> <block type="get_value" id="mCE;,kO[/}7M]Ea,A5yk"> <field name="ATTR">val</field> <field name="OID">hue.0.Hue_lightstrip_plus_1.on</field> </block> </value> </block> </next> </block> </statement> <next> <block type="on_ext" id=";Yg%$9`!-8;CL`vSH0El"> <mutation items="1"></mutation> <field name="CONDITION">ne</field> <field name="ACK_CONDITION"></field> <value name="OID0"> <shadow type="field_oid" id="u6%*qZY38R8;RJkIXrkd"> <field name="oid">hue.0.Hue_lightstrip_plus_1.level</field> </shadow> </value> <statement name="STATEMENT"> <block type="controls_if" id="E[P.5DjPHk_;eGn2o2Yb"> <value name="IF0"> <block type="logic_compare" id="a1cHJ+74vZ4wWtMR/.fp"> <field name="OP">NEQ</field> <value name="A"> <block type="on_source" id="gc`qX-R%~{?x~v-ZTha)"> <field name="ATTR">state.from</field> </block> </value> <value name="B"> <block type="text" id="4/exVgGa+OQer%f~A:IG"> <field name="TEXT">system.adapter.javascript.0</field> </block> </value> </block> </value> <statement name="DO0"> <block type="control" id="_plSilsfI)RQZ4=IjrL_"> <mutation delay_input="false"></mutation> <field name="OID">knx.0.ioBroker.HUE_API.Arbeitszimmer_HUE_lightstrip_plus_Helligkeitswert</field> <field name="WITH_DELAY">FALSE</field> <value name="VALUE"> <block type="on_source" id="MC,Av;i(66.A^fa4rsWe"> <field name="ATTR">state.val</field> </block> </value> </block> </statement> <next> <block type="update" id="f:]zy$}82$KXsg=oc}I~"> <mutation delay_input="false"></mutation> <field name="OID">knx.0.ioBroker.HUE_API.Arbeitszimmer_HUE_lightstrip_plus_Helligkeitswert_Status</field> <field name="WITH_DELAY">FALSE</field> <value name="VALUE"> <block type="get_value" id="`HQQ]6Ss=XgAWhTXUW2E"> <field name="ATTR">val</field> <field name="OID">hue.0.Hue_lightstrip_plus_1.level</field> </block> </value> </block> </next> </block> </statement> <next> <block type="comment" id="6-#R(8dN2n5;g3VwH#L?"> <field name="COMMENT">HUE Status nach KNX RGB</field> <next> <block type="on_ext" id="A(9mRWI:M@(VojA=0/:O"> <mutation items="1"></mutation> <field name="CONDITION">ne</field> <field name="ACK_CONDITION"></field> <value name="OID0"> <shadow type="field_oid" id="aHlmkGx3ut`Q5Q;2ywP0"> <field name="oid">hue.0.Hue_lightstrip_plus_1.r</field> </shadow> </value> <statement name="STATEMENT"> <block type="update" id="6nO-O0_(~w;B]LYaTZKU"> <mutation delay_input="false"></mutation> <field name="OID">knx.0.ioBroker.HUE_API.Arbeitszimmer_HUE_lightstrip_plus_R_Status</field> <field name="WITH_DELAY">FALSE</field> <value name="VALUE"> <block type="math_arithmetic" id="y|I/UBT^{YK^xs0l:WD3"> <field name="OP">DIVIDE</field> <value name="A"> <shadow type="math_number" id="J!..N`GU}R$9+4V-yeYn"> <field name="NUM">1</field> </shadow> <block type="get_value" id="bETfr_q+~1;#%P~aNK-M"> <field name="ATTR">val</field> <field name="OID">hue.0.Hue_lightstrip_plus_1.r</field> </block> </value> <value name="B"> <shadow type="math_number" id="Pq4:rSs%2pDSg${Ofe`o"> <field name="NUM">2.54</field> </shadow> </value> </block> </value> </block> </statement> <next> <block type="on_ext" id="e[=.7ashK4?LZX%JYE^7"> <mutation items="1"></mutation> <field name="CONDITION">ne</field> <field name="ACK_CONDITION"></field> <value name="OID0"> <shadow type="field_oid" id="_qJ07wWc5@T?ltZ08hi?"> <field name="oid">hue.0.Hue_lightstrip_plus_1.g</field> </shadow> </value> <statement name="STATEMENT"> <block type="update" id="@NJeBTDC#H*01~CQ~|c`"> <mutation delay_input="false"></mutation> <field name="OID">knx.0.ioBroker.HUE_API.Arbeitszimmer_HUE_lightstrip_plus_G_Status</field> <field name="WITH_DELAY">FALSE</field> <value name="VALUE"> <block type="math_arithmetic" id="$LkKrSEKc1()7V^CXZ`!"> <field name="OP">DIVIDE</field> <value name="A"> <shadow type="math_number" id="J!..N`GU}R$9+4V-yeYn"> <field name="NUM">1</field> </shadow> <block type="get_value" id="LGx-2`Gvw=)7)2k(qew1"> <field name="ATTR">val</field> <field name="OID">hue.0.Hue_lightstrip_plus_1.g</field> </block> </value> <value name="B"> <shadow type="math_number" id="^M~.H+T)Q6w*AS{{`7_-"> <field name="NUM">2.54</field> </shadow> </value> </block> </value> </block> </statement> <next> <block type="on_ext" id="`:Y*ssY+Y_QF$wL}?.:="> <mutation items="1"></mutation> <field name="CONDITION">ne</field> <field name="ACK_CONDITION"></field> <value name="OID0"> <shadow type="field_oid" id="eh(x_X+WmA7f](y[.OZu"> <field name="oid">hue.0.Hue_lightstrip_plus_1.b</field> </shadow> </value> <statement name="STATEMENT"> <block type="update" id="j=UR+3^:M3$UH7Q8G|:Z"> <mutation delay_input="false"></mutation> <field name="OID">knx.0.ioBroker.HUE_API.Arbeitszimmer_HUE_lightstrip_plus_B_Status</field> <field name="WITH_DELAY">FALSE</field> <value name="VALUE"> <block type="math_arithmetic" id="zgF_m_lvpSya.%:n)cx2"> <field name="OP">DIVIDE</field> <value name="A"> <shadow type="math_number" id="J!..N`GU}R$9+4V-yeYn"> <field name="NUM">1</field> </shadow> <block type="get_value" id="jgn}0iTXT5tMG_zBCVOd"> <field name="ATTR">val</field> <field name="OID">hue.0.Hue_lightstrip_plus_1.g</field> </block> </value> <value name="B"> <shadow type="math_number" id="]QqvLuJ7Ot3uqc}NAR-)"> <field name="NUM">2.54</field> </shadow> </value> </block> </value> </block> </statement> </block> </next> </block> </next> </block> </next> </block> </next> </block> </next> </block> </next> </block> </xml>
  • Anfängerfrage zu Skripten: Pro Abfrage ein eigenes Script?

    7
    0 Stimmen
    7 Beiträge
    585 Aufrufe
    UhulaU
    @Uwe2020 Genau so!
  • [gelöst] Scripte die mehrfach auslösen und Objekte

    blockly communication
    8
    2
    0 Stimmen
    8 Beiträge
    819 Aufrufe
    A
    Hallo Zusammen, wollte noch kurz Feedback geben. Ich hatte das alles umgesetzt, und seither klappt es Prima. Vielen Dank an alle! VG

623

Online

32.6k

Benutzer

82.3k

Themen

1.3m

Beiträge