Skip to content

Blockly

6.6k Topics 79.8k Posts

Hilfe für Skripterstellung mit Blockly

NEWS

  • [GELOEST]Mit Blocky Rechnen

    2
    1
    0 Votes
    2 Posts
    273 Views
    paul53P
    @mymeyer sagte: has to be type "Number" but received type "number" "type": "number", in den Objekteigenschaften muss "number" klein geschrieben werden. Logs bitte in Code tags posten!
  • Durchschnitt über Wert aus History

    Moved
    3
    0 Votes
    3 Posts
    304 Views
    caravandriverC
    @mcu Danke!
  • Telegram Meldung wird 2x geschickt

    3
    1
    0 Votes
    3 Posts
    230 Views
    D
    @nordischerjung Ich bau das Mal so um und berichte Morgen. Danke schon mal für den Vorschlag.
  • Blockly Trockner Überwachung "Problem"

    31
    2
    0 Votes
    31 Posts
    3k Views
    W
    @paul53 Ok ich glaube ich hab es verstanden, bzw. ich versuche es jetzt mal und wenn nochmal fragen sind, dann melde ich mich nochmal. Danke
  • Gelöst!!! Datenpunkte an cron übergeben

    6
    2
    0 Votes
    6 Posts
    597 Views
    K
    @paul53 Hi Paul, ich habe deinen Aufbau noch einmal nachgebaut, warum auch immer funktioniert er jetzt auch ohne Fehlermeldung. Ich habe wieder etwas gelernt. Vielen Dank für dein Hilfe! [image: 1656942559426-cron-ganz-neu-terrassenrollladen-resized.jpg] Spoiler <xml xmlns="https://developers.google.com/blockly/xml"> <variables> <variable id="Y%pufia=8!##Q0/KdW{5">zeit</variable> <variable type="cron" id="schaltzeit">schaltzeit</variable> </variables> <block type="procedures_defnoreturn" id="Wmf3`4h5g3onUOpRc0fk" x="-537" y="12"> <mutation> <arg name="zeit" varid="Y%pufia=8!##Q0/KdW{5"></arg> </mutation> <field name="NAME">etwas tun</field> <comment pinned="false" h="80" w="160">Extrahiert aus einem Datenpunkt die Zeit und fügt diese in den cron ein</comment> <statement name="STACK"> <block type="comment" id="^xO{D@;,:!0$$}hBW0bh"> <field name="COMMENT">erstellt eine Liste aus der Variablen zeit</field> <next> <block type="variables_set" id="T;@!m-bR|)E:fD+7on={"> <field name="VAR" id="Y%pufia=8!##Q0/KdW{5">zeit</field> <value name="VALUE"> <block type="lists_split" id="z{@%Q#.E-t!-$Y?tVFq~"> <mutation mode="SPLIT"></mutation> <field name="MODE">SPLIT</field> <value name="INPUT"> <block type="variables_get" id=":oh0wv-(9$qXNIUQ(@HH"> <field name="VAR" id="Y%pufia=8!##Q0/KdW{5">zeit</field> </block> </value> <value name="DELIM"> <shadow type="text" id="Q|wm{FPZ!roAlQloxo|_"> <field name="TEXT">:</field> </shadow> <block type="text" id="mKV_]dQ`k]j5BJPbn09$"> <field name="TEXT">:</field> </block> </value> </block> </value> <next> <block type="comment" id="!R^F|:S$^Z*i!B^i##(9"> <field name="COMMENT">Liste wird zum eintragen der Zeit in cron</field> <next> <block type="comment" id="KJ$Z;@nekb{)|,jTNtGh"> <field name="COMMENT">ausgewertet</field> <next> <block type="schedule_create" id="#uF?4kc0|K;)wRTv8tW8"> <field name="NAME">schaltzeit</field> <value name="SCHEDULE"> <shadow type="field_cron" id="~J85aJ3%eTvuf?xh*w[."> <field name="CRON">* * * * *</field> </shadow> <block type="cron_builder" id="DUx8HcU[Slc*p=@UXA8A"> <mutation xmlns="http://www.w3.org/1999/xhtml" seconds="false" as_line="false"></mutation> <field name="LINE">FALSE</field> <field name="WITH_SECONDS">FALSE</field> <value name="DOW"> <shadow type="text" id="O$%1Iy.kR4o,)x/jNv:m"> <field name="TEXT">*</field> </shadow> </value> <value name="MONTHS"> <shadow type="text" id=",P?C=uBVBD$r*W0UpQUX"> <field name="TEXT">*</field> </shadow> </value> <value name="DAYS"> <shadow type="text" id="vK(;DJy**!Mh4fxc,0Gu"> <field name="TEXT">*</field> </shadow> </value> <value name="HOURS"> <shadow type="text" id="T{%ldSUl^jdUu4e%6Gm;"> <field name="TEXT">*</field> </shadow> <block type="lists_getIndex" id="-#L`(Co4JA|%|-#Z?Fu2"> <mutation statement="false" at="true"></mutation> <field name="MODE">GET</field> <field name="WHERE">FROM_START</field> <value name="VALUE"> <block type="variables_get" id="n2()]?@glZiXRuRl}mR."> <field name="VAR" id="Y%pufia=8!##Q0/KdW{5">zeit</field> </block> </value> <value name="AT"> <block type="math_number" id="tsM9{Xnh*?{v-_=/Lg|p"> <field name="NUM">1</field> </block> </value> </block> </value> <value name="MINUTES"> <shadow type="text" id="D@snQRdOF#|8uFMfmXX{"> <field name="TEXT">*</field> </shadow> <block type="lists_getIndex" id="Tj{PEXJdJY)Oc.:$HrCm"> <mutation statement="false" at="true"></mutation> <field name="MODE">GET</field> <field name="WHERE">FROM_START</field> <value name="VALUE"> <block type="variables_get" id=",Ic^L?QVC|9DbmLJ8kWJ"> <field name="VAR" id="Y%pufia=8!##Q0/KdW{5">zeit</field> </block> </value> <value name="AT"> <block type="math_number" id="*r4nWNS8?NY8g_u6,t]c"> <field name="NUM">2</field> </block> </value> </block> </value> </block> </value> <statement name="STATEMENT"> <block type="comment" id="iZeQXFS]1zc{22q^rW/6"> <field name="COMMENT">Steuert den Terrassenrolladen mit einer Zufallszahl</field> <next> <block type="control" id="f]O`0boFjO{7^pOPr)1P"> <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation> <field name="OID">alias.0.Rolläden.Terrassentür</field> <field name="WITH_DELAY">FALSE</field> <value name="VALUE"> <block type="math_random_int" id="cT77:#6|)!!H]Qsd|-Z]"> <value name="FROM"> <shadow type="math_number" id="FuUwLi2;W97%)XtACY@m"> <field name="NUM">1</field> </shadow> <block type="math_number" id="i$:AYAI%KH?U=gSHhuG]"> <field name="NUM">45</field> </block> </value> <value name="TO"> <shadow type="math_number" id=":6g6!%C2:_G.4fP9BUe*"> <field name="NUM">100</field> </shadow> <block type="math_number" id="y$46Zr2LDb~zytskl/p4"> <field name="NUM">52</field> </block> </value> </block> </value> </block> </next> </block> </statement> <next> <block type="comment" id="{8/cm7mhzQ]Ae`Ep%KoM"> <field name="COMMENT">Konsolenausgabe zum überprüfen der geschriebenen</field> <next> <block type="comment" id="1gquG0r0S-^n]}c)CRX+"> <field name="COMMENT">Werte</field> <next> <block type="debug" id="kU~Cyhy?E$jN1TcB]6Z#"> <field name="Severity">log</field> <value name="TEXT"> <shadow type="text" id="t5)r,W9`kc{r7~Dq`fd."> <field name="TEXT">test</field> </shadow> <block type="cron_builder" id="t{(G[a(N:^N-vERm_cKd"> <mutation xmlns="http://www.w3.org/1999/xhtml" seconds="false" as_line="false"></mutation> <field name="LINE">FALSE</field> <field name="WITH_SECONDS">FALSE</field> <value name="DOW"> <shadow type="text" id="Qr1BkSOt,iXgbK3wv6:N"> <field name="TEXT">*</field> </shadow> </value> <value name="MONTHS"> <shadow type="text" id="|P5(,AbZ7NANUxw2Web+"> <field name="TEXT">*</field> </shadow> </value> <value name="DAYS"> <shadow type="text" id="cw?dTzPR7,F|e%U1e*xV"> <field name="TEXT">*</field> </shadow> </value> <value name="HOURS"> <shadow type="text"> <field name="TEXT">*</field> </shadow> <block type="lists_getIndex" id="OnqB(hn+OcJTCfL%?W.,"> <mutation statement="false" at="true"></mutation> <field name="MODE">GET</field> <field name="WHERE">FROM_START</field> <value name="VALUE"> <block type="variables_get" id=",:9x|;|U7I;bt:^9*^o3"> <field name="VAR" id="Y%pufia=8!##Q0/KdW{5">zeit</field> </block> </value> <value name="AT"> <block type="math_number" id="|iE(gW6hH1rHg4ZPT9$v"> <field name="NUM">1</field> </block> </value> </block> </value> <value name="MINUTES"> <shadow type="text"> <field name="TEXT">*</field> </shadow> <block type="lists_getIndex" id="0,=|a583Gfnc(VsDj~?="> <mutation statement="false" at="true"></mutation> <field name="MODE">GET</field> <field name="WHERE">FROM_START</field> <value name="VALUE"> <block type="variables_get" id="D5YXoI3Ap][b%F-_F~b!"> <field name="VAR" id="Y%pufia=8!##Q0/KdW{5">zeit</field> </block> </value> <value name="AT"> <block type="math_number" id="w(Pf8W;/#b}S-8-m:hp+"> <field name="NUM">2</field> </block> </value> </block> </value> </block> </value> </block> </next> </block> </next> </block> </next> </block> </next> </block> </next> </block> </next> </block> </next> </block> </statement> </block> <block type="comment" id="01)$bEQ0.r`P?dQjn8Q5" x="213" y="613"> <field name="COMMENT">Schreibt in die Variable zeit den Wert aus dem datenpunkt</field> <next> <block type="procedures_callnoreturn" id="OyxQu1;=WJ#y^7?rPSy."> <mutation name="etwas tun"> <arg name="zeit"></arg> </mutation> <value name="ARG0"> <block type="get_value" id="-*_^uavj{~7Nen2Pao6="> <field name="ATTR">val</field> <field name="OID">0_userdata.0.Katzenklappe.Rolladenschaltzeit_aus</field> </block> </value> <next> <block type="comment" id="j+h.e)M~mwm)[[13yf8B"> <field name="COMMENT">Trigger damit cron beim ändern der</field> <next> <block type="comment" id="?P2+]mmv|Daa:iEsuExq"> <field name="COMMENT">Öffnungszeit geändert wird</field> <next> <block type="on_ext" id="Y_^k7nFYY7~7%c0Y+200"> <mutation xmlns="http://www.w3.org/1999/xhtml" items="1"></mutation> <field name="CONDITION">ne</field> <field name="ACK_CONDITION"></field> <value name="OID0"> <shadow type="field_oid" id="qCbD`YRaQyF4dUzy@fi{"> <field name="oid">default</field> </shadow> <block type="field_oid" id="n/|9,4Z_699F7)On_yE$"> <field name="oid">0_userdata.0.Katzenklappe.Rolladenschaltzeit_aus</field> </block> </value> <statement name="STATEMENT"> <block type="schedule_clear" id="t=shQM(35qs;VzOpwcqC"> <field name="NAME">schaltzeit</field> <next> <block type="procedures_callnoreturn" id="ihLo#7}_O)Q26_(j!70X"> <mutation name="etwas tun"> <arg name="zeit"></arg> </mutation> <value name="ARG0"> <block type="on_source" id="bY10~~[p[[vRf~IFCAdO"> <field name="ATTR">state.val</field> </block> </value> </block> </next> </block> </statement> </block> </next> </block> </next> </block> </next> </block> </next> </block> </xml>
  • Skript umgebaut, jetzt funktioniert es nicht mehr

    3
    1
    0 Votes
    3 Posts
    190 Views
    Thomas BraunT
    @mcu Na klar... Wie doof von mir...
  • aktuelle Benzinpreise in Telegramm anzeigen

    Moved
    15
    0 Votes
    15 Posts
    1k Views
    V
    @homoran sagte in aktuelle Benzinpreise in Telegramm anzeigen: @venjacob und klappt es jetzt? Habe das gestern aben geändert und siehe da. Es hat geklappt. Ich werde das mit Alexa auch noch versuchen umtusetzen. DANKE
  • Schalter nach einer bestimmten Zeit ausschalten

    6
    1
    0 Votes
    6 Posts
    390 Views
    I
    @homoran Herzlichen Dank! ..... und es funktioniert. Ich bin erst vor kurzem auf den IoBroker, gestossen. Ist ein Wahnsinn, was man mit diesen Teil alles machen kann. Hier lassen sich auch für einen "nicht-Elektriker und Programmierer" wie mich viele sinnvolle Dinge im Haus lösen.
  • 0 Votes
    4 Posts
    571 Views
    paul53P
    @loredo sagte: Wie willst du das ganze ohne Trigger und ohne Timer auswerten? So: [image: 1656782294053-bild_2022-07-02_191813571.png] Die Wahrscheinlichkeit, dass das Skript oder die Instanz innerhalb von 2 Minuten noch einmal neu gestartet wird, ist äußerst gering.
  • [gelöst] Szene mit ZustandsPrüfung (evtl. Blockly)

    7
    1
    0 Votes
    7 Posts
    387 Views
    DJMarc75D
    @n811e Sehr gerne !
  • This topic is deleted!

    4
    0 Votes
    4 Posts
    5 Views
  • Blockly Pushover wenn DP länger als XXX auf OFF steht

    13
    0 Votes
    13 Posts
    690 Views
    paul53P
    @n811e sagte: Möglichkeit, das ganze ab dann stündlich zu wiederholen, Intervall anstelle von timeout. [image: 1656689928604-bild_2022-07-01_173848198.png]
  • Summe zwischen zwei Werten

    2
    0 Votes
    2 Posts
    258 Views
    paul53P
    @fir3drag0n sagte: das Delta möchte ich aufsummieren. Eine kumulierte Differenz Neu - Alt? [image: 1656688482803-bild_2022-07-01_171442407.png]
  • Blockly: Schwierigkeiten mit ids vom Selektor. Hilfe

    Moved
    17
    0 Votes
    17 Posts
    2k Views
    T
    @paul53 Ich habs nun geschafft. Hat etwas Zeit und Nerven gekostet. :-) Hab ein script von folgender seite übernommen und etwas verändert. https://www.machs-smart.de/iobroker-offene-fenster-zaehlen-blockly/ Nochmal vielen Dank für eure Hilfe!!! Hier nun mein script, falls es jemand benötigt. <xml xmlns="https://developers.google.com/blockly/xml"> <variables> <variable id="Fwt*3`3ScyT(qDt?gf(T">ObjectID</variable> <variable id="cTIvd#0frb]}?DN^7oUd">Liste-komplett</variable> <variable id="MLrrG!H:mqglsc.Y_Ljh">Liste-Licht-An</variable> <variable id="}K$K4dup~Vnv!`[}vnQy">Liste-Licht-Aus</variable> <variable id="9sl@{VQ/amrd~ZTB}e/O">i</variable> </variables> <block type="procedures_defcustomreturn" id="]lQM=r`L^2M}s^@n(USH" x="-112" y="-887"> <mutation statements="false"> <arg name="ObjectID" varid="Fwt*3`3ScyT(qDt?gf(T"></arg> </mutation> <field name="NAME">Name</field> <field name="SCRIPT">bGV0IG5hbWUgPSBnZXRPYmplY3QoT2JqZWN0SUQpLmNvbW1vbi5uYW1lOwovL2lmKHR5cGVvZiByb29tID09ICdvYmplY3QnKSByZXR1cm4gcm9vbS5kZTsKcmV0dXJuIG5hbWU7</field> <comment pinned="false" h="80" w="160">Beschreibe diese Funktion …</comment> </block> <block type="on_ext" id="RT3@Kxqxg#w3f=(kzwCu" x="-112" y="-862"> <mutation xmlns="http://www.w3.org/1999/xhtml" items="1"></mutation> <field name="CONDITION">ne</field> <field name="ACK_CONDITION"></field> <value name="OID0"> <shadow type="field_oid" id="0)0sp$I1ccfm%4Sde-mT"> <field name="oid">default</field> </shadow> <block type="selector" id=",lvP%A]1J?Mf^@0s2D%["> <field name="TEXT">state[id=*](functions=Licht)</field> </block> </value> <statement name="STATEMENT"> <block type="variables_set" id="EaZb.Nmx4%jg9Z;%%B!-"> <field name="VAR" id="cTIvd#0frb]}?DN^7oUd">Liste-komplett</field> <value name="VALUE"> <block type="text" id="Wh^sL0z$W-HIc=.KAWpS"> <field name="TEXT"></field> </block> </value> <next> <block type="variables_set" id="SS-}=kJy|nP`aiAV1-xb"> <field name="VAR" id="MLrrG!H:mqglsc.Y_Ljh">Liste-Licht-An</field> <value name="VALUE"> <block type="lists_create_with" id="$AFtq:sq?.LYHWTSs$x|"> <mutation items="0"></mutation> </block> </value> <next> <block type="variables_set" id="o_#fa#./grwL0VYZXhV1"> <field name="VAR" id="}K$K4dup~Vnv!`[}vnQy">Liste-Licht-Aus</field> <value name="VALUE"> <block type="lists_create_with" id="P~^2(u_E4rR`PYMfolf}"> <mutation items="0"></mutation> </block> </value> <next> <block type="controls_forEach" id="~PaFX`X@5n{TM9K^{Jw6"> <field name="VAR" id="9sl@{VQ/amrd~ZTB}e/O">i</field> <value name="LIST"> <block type="selector" id="xQ^Q5{h5V@5PLI+YO@i."> <field name="TEXT">state[id=*](functions=Licht)</field> </block> </value> <statement name="DO"> <block type="controls_if" id="-3J;6~}7Ac!D}IR`/Dr1"> <mutation else="1"></mutation> <value name="IF0"> <block type="get_value_var" id=")kSAuROX6lA-U2N,FJ1Q"> <field name="ATTR">val</field> <value name="OID"> <shadow type="text" id="e+?Z+-m0_DLYGl{zT3ix"> <field name="TEXT"></field> </shadow> <block type="variables_get" id="!fALmmY3PSF+?rGHUXQ,"> <field name="VAR" id="9sl@{VQ/amrd~ZTB}e/O">i</field> </block> </value> </block> </value> <statement name="DO0"> <block type="lists_setIndex" id="-zUiNM(}BsoQ].Hu.|mx" inline="false"> <mutation at="false"></mutation> <field name="MODE">INSERT</field> <field name="WHERE">FIRST</field> <value name="LIST"> <block type="variables_get" id="Q0Hct8=ken4m!!W]js)U"> <field name="VAR" id="MLrrG!H:mqglsc.Y_Ljh">Liste-Licht-An</field> </block> </value> <value name="TO"> <block type="procedures_callcustomreturn" id="2fUjFt9g8rVF/XheoN.x"> <mutation name="Name"> <arg name="ObjectID"></arg> </mutation> <value name="ARG0"> <block type="variables_get" id="k:Is?gkGPl/=r1X^,k3K"> <field name="VAR" id="9sl@{VQ/amrd~ZTB}e/O">i</field> </block> </value> </block> </value> </block> </statement> <statement name="ELSE"> <block type="lists_setIndex" id="-jTzj32XiFWfi?n1Y/LN" inline="false"> <mutation at="false"></mutation> <field name="MODE">INSERT</field> <field name="WHERE">FIRST</field> <value name="LIST"> <block type="variables_get" id="2~tv/YW~42Q$E*%G;Pqi"> <field name="VAR" id="}K$K4dup~Vnv!`[}vnQy">Liste-Licht-Aus</field> </block> </value> <value name="TO"> <block type="procedures_callcustomreturn" id="`Zdw5Kh*[(IY72pyr_o("> <mutation name="Name"> <arg name="ObjectID"></arg> </mutation> <value name="ARG0"> <block type="variables_get" id="dTq}?1$ruG%K+237sR}z"> <field name="VAR" id="9sl@{VQ/amrd~ZTB}e/O">i</field> </block> </value> </block> </value> </block> </statement> </block> </statement> <next> <block type="controls_if" id="%xroGCihVu8$~$xQ{]ke"> <value name="IF0"> <block type="logic_negate" id="u(+LUZ2=D}K8JRKt()tg"> <value name="BOOL"> <block type="lists_isEmpty" id="zS,AjUzHt0uWh$(li$,h"> <value name="VALUE"> <block type="variables_get" id="b),0*5k:oMF~4H^Xx.Hw"> <field name="VAR" id="MLrrG!H:mqglsc.Y_Ljh">Liste-Licht-An</field> </block> </value> </block> </value> </block> </value> <statement name="DO0"> <block type="text_append" id="xgCK}K@KSx){tg%A(xl5"> <field name="VAR" id="cTIvd#0frb]}?DN^7oUd">Liste-komplett</field> <value name="TEXT"> <shadow type="text"> <field name="TEXT"></field> </shadow> <block type="text" id="-HV%tM;_jbL/K_)=V78_"> <field name="TEXT">Licht An: </field> </block> </value> <next> <block type="text_append" id="mQWs]oKZy!!UBi#)2pN:"> <field name="VAR" id="cTIvd#0frb]}?DN^7oUd">Liste-komplett</field> <value name="TEXT"> <shadow type="text"> <field name="TEXT"></field> </shadow> <block type="lists_split" id="vo;Gre#7RVr3M6$mk7E:"> <mutation mode="JOIN"></mutation> <field name="MODE">JOIN</field> <value name="INPUT"> <block type="variables_get" id="o(LRYzD:?:_v5aTHyYuJ"> <field name="VAR" id="MLrrG!H:mqglsc.Y_Ljh">Liste-Licht-An</field> </block> </value> <value name="DELIM"> <shadow type="text" id="lIp}_n+[0|`={eJh]aEe"> <field name="TEXT">, </field> </shadow> <block type="text_newline" id="3VGu|;nAg9JYe;6n*G8Q"> <field name="Type">\n</field> </block> </value> </block> </value> <next> <block type="text_append" id=":+)c7I}{1/nyEBI7mJJ{"> <field name="VAR" id="cTIvd#0frb]}?DN^7oUd">Liste-komplett</field> <value name="TEXT"> <shadow type="text" id="33ABK`PY}NDK3PSrP/}e"> <field name="TEXT"></field> </shadow> <block type="text_newline" id="o(@3V35-R{~llLN+.p?K"> <field name="Type">\n</field> </block> </value> </block> </next> </block> </next> </block> </statement> <next> <block type="controls_if" id="L!}N25QKJ[D61;a?bf%?"> <value name="IF0"> <block type="logic_negate" id="P#;v$=eLxCHvoTF^|O)k"> <value name="BOOL"> <block type="lists_isEmpty" id="7GdP`ErgKtT#V1*MU9gK"> <value name="VALUE"> <block type="variables_get" id="T`YMrp]-^RFDhRULk,7z"> <field name="VAR" id="}K$K4dup~Vnv!`[}vnQy">Liste-Licht-Aus</field> </block> </value> </block> </value> </block> </value> <statement name="DO0"> <block type="text_append" id="rr-Lu!{,+|n3Pz}r,/|q"> <field name="VAR" id="cTIvd#0frb]}?DN^7oUd">Liste-komplett</field> <value name="TEXT"> <shadow type="text" id="u#~AR/M~-4pVtl1Oc_:7"> <field name="TEXT"></field> </shadow> <block type="text" id="rHg4[Q1;k=YZ/r;j3e$B"> <field name="TEXT">Licht Aus: </field> </block> </value> <next> <block type="text_append" id="(`NHR}HYpw]:P`ZNgy6X"> <field name="VAR" id="cTIvd#0frb]}?DN^7oUd">Liste-komplett</field> <value name="TEXT"> <shadow type="text" id="LHw-8A|w9lQp3_kLp8XM"> <field name="TEXT"></field> </shadow> <block type="lists_split" id="s{W^YIjtci(NGf{R![Df"> <mutation mode="JOIN"></mutation> <field name="MODE">JOIN</field> <value name="INPUT"> <block type="variables_get" id="u4US1gL%m8Myl{MI]BFp"> <field name="VAR" id="}K$K4dup~Vnv!`[}vnQy">Liste-Licht-Aus</field> </block> </value> <value name="DELIM"> <shadow type="text" id="),t^.5%yN_V(;k~5h}?^"> <field name="TEXT">, </field> </shadow> <block type="text_newline" id="gTATzQaSaQpWZDg1}MY("> <field name="Type">\n</field> </block> </value> </block> </value> </block> </next> </block> </statement> </block> </next> </block> </next> </block> </next> </block> </next> </block> </next> </block> </statement> </block> <block type="on_ext" id="Q:@R}~bt`:M4%+)V6`zJ" x="538" y="-837"> <mutation xmlns="http://www.w3.org/1999/xhtml" items="1"></mutation> <field name="CONDITION">any</field> <field name="ACK_CONDITION"></field> <value name="OID0"> <shadow type="field_oid" id="z%tb_ZB,HVK@M.K^TYt="> <field name="oid">telegram.0.communicate.request</field> </shadow> </value> <statement name="STATEMENT"> <block type="controls_if" id="H~Dx_I9YlQNeP;w^aiZ~"> <value name="IF0"> <block type="logic_compare" id="3PgRt8mZnR2mBU:S1I+t"> <field name="OP">EQ</field> <value name="A"> <block type="get_value" id="n0f(7]0?,_9%b8tB9.P*"> <field name="ATTR">val</field> <field name="OID">telegram.0.communicate.request</field> </block> </value> <value name="B"> <block type="text" id="8Ar66k/.ZtW0`)*%umv]"> <field name="TEXT">[Timur]Status Licht</field> </block> </value> </block> </value> <statement name="DO0"> <block type="telegram" id="ys1J1;eU^O3UbQr1SxTa"> <field name="INSTANCE">.0</field> <field name="LOG"></field> <field name="SILENT">FALSE</field> <field name="PARSEMODE">default</field> <field name="DISABLE_WEB_PAGE_PREVIEW">FALSE</field> <value name="MESSAGE"> <shadow type="text"> <field name="TEXT">text</field> </shadow> <block type="variables_get" id="(2UX:[,PkWn9*/xyCX:G"> <field name="VAR" id="cTIvd#0frb]}?DN^7oUd">Liste-komplett</field> </block> </value> </block> </statement> </block> </statement> </block> </xml>
  • Blockly wird unregelmäßig ausgeführt, kein Debug!

    17
    2
    0 Votes
    17 Posts
    1k Views
    B
    @apollon77 hing mit dem Tasterzusammen da ich immer wieder timeouts hatte, habe die Rollotaster jetzt ersetzt und keine Probleme.
  • *GELÖST* Bestimmter Zeitabschnitt als Bedingung für Blockly

    11
    0 Votes
    11 Posts
    737 Views
    G
    @homoran und @paul53 Ich habe das Skipt von paul53 1:1 übernommen und an die Stelle bevor die Zeiten ins Spiel kommen eingebaut. Jetzt bin ich gespannt was in den nächsten Tagen passiert (denn es regnet gerade und das Fenster muss zu bleiben). :) Ich setze den Status mal auf "gelöst",, in der Hoffnung dass ich es richtig eingesetzt habe. Vielen Dank euch beiden nochmal!
  • Limit von Variablen pro Blockly?

    blockly
    15
    0 Votes
    15 Posts
    1k Views
    JB_SullivanJ
    @paul53 sagte in Limit von Variablen pro Blockly?: Das hast Du so programmiert, dass jeder Wert ständig angezeigt wird, auch wenn er über Stunden konstant bleibt. Was wolltest Du erreichen? OK - habe ich das? Dann habe ich die Logik dahinter missverstanden :( Ich dachte wenn der Wert nicht mit der Vorgabe überein stimmt, wird der DP auch nicht zur Anzeige frei gegeben - was ja auch sehr häufig "funktioniert" hat - aber auch sehr häufig nicht :) Ich habe nun alle Variablen verworfen und das Blockly so aufgebaut wie in deinem letzten Beispiel. LÄUFT PERFEKT !!! Nun ist es genau so wie ich es mir ursprünglich erdacht hatte - Vielen Dank nochmal dafür. Ich sehe schon, ich muss noch viel lernen ......
  • "docker cp" oder "docker exec" funktionieren nicht

    2
    0 Votes
    2 Posts
    172 Views
    OliverIOO
    @sven-reichert sagte in "docker cp" oder "docker exec" funktionieren nicht: Beide Kommandos schlagen fehl, egal ob ich "sudo" davor schreibe oder nicht. wie lautet die fehlermeldung? @sven-reichert sagte in "docker cp" oder "docker exec" funktionieren nicht: iobroker ALL=(ALL) NOPASSWD: /bin/docker -bash: Syntaxfehler beim unerwarteten Wort `(' die anweisung ist nix zum ausführen, sondern muss in die datei /etc/sudoers eingetragen werden, bzw. besser in eine eigene datei unterhalb von /etc/sudoers.d/ dort liegt auch schon die datei von iobroker, die bestimmten befehlen die sudo rechte einräumt. detailbeschreibung hier https://wiki.ubuntuusers.de/sudo/Konfiguration/ zu beachten ist, diese datei oder das verzeichnis ist nicht als volume definiert. d.h. nach Neustart des containers sind die Änderungen wieder weg. daher solltest du die datei als eigenes volume definieren und irgendwo in einem hostverzeichnis ablegen. Ablageort der Dateien /var/lib/motioneye/Camera2/*.mp4 auch hier würde ich für den container ein eigenes volume definieren und diesen in ein verzeichnis auf dem host system legen. dann kannst du mit normalen befehlen auf die datei referenzieren (du musst das gleiche verzeichnis als volume nur auch im iobroker container einblenden.)
  • Automatisch Instanz aktivieren

    7
    1
    0 Votes
    7 Posts
    292 Views
    HomoranH
    @brainbug sagte in Automatisch Instanz aktivieren: Ja es geht ja auch bei mir. bei mir auch! Danke! [image: 1656618259938-screenshot_20220630-214054_firefox.jpg] Wenn ich jetzt oben den Strom abschalte, gehen alle 4 Instanzen aus. Dann geht das Warndreieck bei den Konfig der Klimaanlagen an.
  • Stromverbauch mit Blockly saldieren und auswerten

    25
    0 Votes
    25 Posts
    3k Views
    Q
    Ist es nicht alles eine Frage des Stromzählers. Saldiert er die Phasen? Also: 1: 2 2: - 4 3: 5 Auf 2 ist nur das Balkonkraftwerk. Ist dein Gesamtverbrauch nun 7 (nicht saldierend) oder 3 (saldierend)?

265

Online

32.8k

Users

82.9k

Topics

1.3m

Posts