Skip to content

Blockly

Hilfe für Skripterstellung mit Blockly

6.5k Themen 79.5k Beiträge

NEWS

  • Bewegungsmelder

    24
    0 Stimmen
    24 Beiträge
    3k Aufrufe
    A
    @David-Froebus Fazit nach einigen Tagen Praxis-Test: Nachdem ich den Script frisch aktiviere läuft alles reibungslos. Aber nach einem Tag schon verändert sich die Sache wie folgt: Ich drücke den Taster, gehe nicht ins Zimmer und das Licht geht bereits nach 3 Sek. aus. D.h. die erste eingestellte Zeit wird völlig ignoriert, oder aber es hat sich verändert. Der zweite Block funktioniert nach wie vor super. Pausiere ich den Script und lasse ihn sofort wieder laufen, dann funzt alles perfekt. Hast du vielleicht eine Idee, was da im Hintergrung schief läuft ?????? :cry:
  • Eingefrorener Sensor -> Script zum Check?

    blockly template monitoring
    8
    0 Stimmen
    8 Beiträge
    410 Aufrufe
    AsgothianA
    @paul53 sagte in Eingefrorener Sensor -> Script zum Check?: Die Wandlung nach Minuten enthält die Minuten der Uhrzeit, ist also für die Zeitdifferenz unbrauchbar. Mist - ich hatte mich dunkel erinnert das da was war. Danke fuer die Klarstellung. A.
  • Mittels Datenpunkt Rolladenfunktion beeinflussen

    7
    0 Stimmen
    7 Beiträge
    357 Aufrufe
    paul53P
    @snuggels72 sagte: Wert WEEK_PROGRAM_CHANNEL_LOCKS auf "1" setzen. Das klappt aber nicht. Verwende "steuere" anstelle von "aktualisiere" und übergebe als Wert die Zahl 1. EDIT: Laut HmIP-Doku ist das der falsche Datenpunkt (read only). [image: 1603107600246-hmip_rollos_wp.jpg]
  • Wolf Ism8i Warmwassersolltemperatur

    blockly
    1
    0 Stimmen
    1 Beiträge
    171 Aufrufe
    Niemand hat geantwortet
  • [gelöst]seltsames blockly trigger problem

    blockly
    22
    2
    0 Stimmen
    22 Beiträge
    1k Aufrufe
    liv-in-skyL
    @paul53 jetzt weiß ich es - damit kann ich leben
  • Script Logik Optimierung für Licht Steuerung

    24
    4
    0 Stimmen
    24 Beiträge
    4k Aufrufe
    T
    Nach erfolgreichem Wohnungsumzug haben sich die Voraussetzung ein wenig geändert. In der alten Wohnung, hatte ich Xiaomi LED Strips verwendet bei der ich den integrierten Taster zum Ein-/Ausschalten verwendete. Dies konnte man ja dank der Lösung von @paul53 per Variable und Wert/Ursprung lösen. In der neuen Küche habe ich auf die 4x BlitzWolf LT-11 Strips gesetzt und zum manuellen Dauerbetrieb habe ich 2x Aqara ZigBee Taster jeweils für die Linke und Rechte Seite montiert. Logik bleibt ähnlich... Falls man(n) die Küche in der Nacht betritt, triggert der Aqara Bewegungssensor die linke und rechte Unterseite. Nach über 120 Sekunden keine Bewegungserkennung sollen die beiden Unterseiten wieder ausgeschaltet werden. Dies funktioniert soweit wie es soll, konnte ja fast komplett aus der alten Xiaomi Logik übernommen werden. Mein Problem ist die Dauerbeleuchtung über die beiden Taster. Irgendwie habe ich da ein Problem, denn aktuell schaltet er zwar die Beleucht oben und unten zwar an, jedoch kann ich diese nicht ausschalten bzw. greift wohl zusätzlich noch die Bewegungslogik mit ein? Obwohl gerade am Tag der Datenpunkt "Nachtcheck" eigentlich auf "false" steht. Hier mal die Blockly Logik aktuell und unten drunter ein Blockly export... Taster rechts: [image: 1603020048312-taster_rechts.png] Taster links: [image: 1603020058015-taster_links.png] Aqara Bewegungssensor: [image: 1603020057818-bwm.png] Blockly export: Spoiler <xml xmlns="https://developers.google.com/blockly/xml"> <variables> <variable id="3t=Qb]Fgt~!a8nbX30:r">Taster rechts</variable> <variable id="sQQhM6(ocGqUgVaj;U/f">Taster links</variable> </variables> <block type="comment" id="31f(lHiPEPOxDwdpLg/9" x="38" y="38"> <field name="COMMENT">Aqara Taster rechts</field> <next> <block type="on_ext" id="u9+^qFj!il,42nv7{!L-"> <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="oZ`6emoMfq7|l@lmht]x"> <field name="oid">zigbee.0.00158d0004272786.click</field> </shadow> </value> <statement name="STATEMENT"> <block type="variables_set" id="K,H{#eIPV`p:t)xE+Msc"> <field name="VAR" id="3t=Qb]Fgt~!a8nbX30:r">Taster rechts</field> <value name="VALUE"> <block type="on_source" id="Jrf?D.6)`?/4*,LnoJY5"> <field name="ATTR">state.val</field> </block> </value> <next> <block type="comment" id="g3iz/f4wMp,4Ts.@g{8L"> <field name="COMMENT">Oben rechts</field> <next> <block type="controls_if" id="kS$VoSrJh_=rsaC0+!R~"> <mutation else="1"></mutation> <value name="IF0"> <block type="logic_compare" id="!cXeK$hSSgwk+nVo$o!L"> <field name="OP">EQ</field> <value name="A"> <block type="get_value" id="%,z7VQCzrkyX@edF.neZ"> <field name="ATTR">val</field> <field name="OID">alexa2.0.Smart-Home-Devices.46efd144-cd48-4d82-935f-c63d5a11d02c.powerState</field> </block> </value> <value name="B"> <block type="logic_boolean" id="L:p0o#lF=#:ulwLY^.gR"> <field name="BOOL">FALSE</field> </block> </value> </block> </value> <statement name="DO0"> <block type="control" id=":51g~C}3?/byXN1W!*I["> <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation> <field name="OID">alexa2.0.Smart-Home-Devices.46efd144-cd48-4d82-935f-c63d5a11d02c.brightness</field> <field name="WITH_DELAY">FALSE</field> <value name="VALUE"> <block type="math_number" id="JMvjNGWH$ECn4v_yowje"> <field name="NUM">70</field> </block> </value> </block> </statement> <statement name="ELSE"> <block type="control" id="y2Pcpt3@An?Wg#pf{df9"> <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation> <field name="OID">alexa2.0.Smart-Home-Devices.46efd144-cd48-4d82-935f-c63d5a11d02c.powerState</field> <field name="WITH_DELAY">FALSE</field> <value name="VALUE"> <block type="logic_boolean" id="kO0O%QFJ|jF~0x(/;QY!"> <field name="BOOL">FALSE</field> </block> </value> </block> </statement> <next> <block type="comment" id="Sy`3-fFAT{9rUo_6n#{M"> <field name="COMMENT">Unten rechts</field> <next> <block type="controls_if" id="C$c}fC5z68c3+ABY8nOO"> <mutation else="1"></mutation> <value name="IF0"> <block type="logic_compare" id=".j7!d*CoBY+Uv$dfuF;Q"> <field name="OP">EQ</field> <value name="A"> <block type="get_value" id="]+R0HPfLJrUm]@bKsDk#"> <field name="ATTR">val</field> <field name="OID">alexa2.0.Smart-Home-Devices.f31f759c-1d77-48fd-be97-dce756a82609.powerState</field> </block> </value> <value name="B"> <block type="logic_boolean" id="N,holrneR4?)~np?Q7i|"> <field name="BOOL">FALSE</field> </block> </value> </block> </value> <statement name="DO0"> <block type="control" id="9GI:z4NoYUWJsUjq`2I!"> <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation> <field name="OID">alexa2.0.Smart-Home-Devices.f31f759c-1d77-48fd-be97-dce756a82609.brightness</field> <field name="WITH_DELAY">FALSE</field> <value name="VALUE"> <block type="math_number" id="8E$aeUEO3uJRIN,$3kol"> <field name="NUM">70</field> </block> </value> </block> </statement> <statement name="ELSE"> <block type="control" id="E3qSiOS0c?FAEW-(j`(D"> <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation> <field name="OID">alexa2.0.Smart-Home-Devices.f31f759c-1d77-48fd-be97-dce756a82609.powerState</field> <field name="WITH_DELAY">FALSE</field> <value name="VALUE"> <block type="logic_boolean" id="s?/);FmKgD`?o+6MHhTn"> <field name="BOOL">FALSE</field> </block> </value> </block> </statement> <next> <block type="comment" id="P0(h[Q7D5zJid70.*]n%"> <field name="COMMENT">Ausschalten</field> <next> <block type="controls_if" id="Dzbk6;)q{zT.fPZ@rsr;"> <value name="IF0"> <block type="logic_operation" id="bucL$jly2f@qvqqus#7M" inline="false"> <field name="OP">AND</field> <value name="A"> <block type="logic_compare" id="0g#0}qyGQ#+xF[0!23nl"> <field name="OP">EQ</field> <value name="A"> <block type="get_value" id=".3JDWSEKcL3Ve1a{r7v?"> <field name="ATTR">val</field> <field name="OID">alexa2.0.Smart-Home-Devices.46efd144-cd48-4d82-935f-c63d5a11d02c.powerState</field> </block> </value> <value name="B"> <block type="logic_boolean" id="4r@Y]ve$KmBqR_;6/BC~"> <field name="BOOL">TRUE</field> </block> </value> </block> </value> <value name="B"> <block type="logic_compare" id="f8}A+C,3P}@tXR.$yFkt"> <field name="OP">EQ</field> <value name="A"> <block type="get_value" id="`S7hh0y7VZM}92QJ3qv_"> <field name="ATTR">val</field> <field name="OID">alexa2.0.Smart-Home-Devices.f31f759c-1d77-48fd-be97-dce756a82609.powerState</field> </block> </value> <value name="B"> <block type="logic_boolean" id="4m(lHFa6TKJrq=5;eL6#"> <field name="BOOL">TRUE</field> </block> </value> </block> </value> </block> </value> <statement name="DO0"> <block type="control" id="fYuY1{1Wj9i`Er5dUT@E"> <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation> <field name="OID">alexa2.0.Smart-Home-Devices.46efd144-cd48-4d82-935f-c63d5a11d02c.powerState</field> <field name="WITH_DELAY">FALSE</field> <value name="VALUE"> <block type="logic_boolean" id="g31Q%}3ZNx4.xSximS{{"> <field name="BOOL">FALSE</field> </block> </value> <next> <block type="control" id="+/+2ne:c!K_UvY9`fd3|"> <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation> <field name="OID">alexa2.0.Smart-Home-Devices.f31f759c-1d77-48fd-be97-dce756a82609.powerState</field> <field name="WITH_DELAY">FALSE</field> <value name="VALUE"> <block type="logic_boolean" id="T{3v]$}-cXhPl[C7$imZ"> <field name="BOOL">FALSE</field> </block> </value> </block> </next> </block> </statement> </block> </next> </block> </next> </block> </next> </block> </next> </block> </next> </block> </next> </block> </statement> <next> <block type="comment" id="j+@VY`FL;j$B1Yg$ig6U"> <field name="COMMENT">Aqara Taster links</field> <next> <block type="on_ext" id="}P]}6!@*aq5X!k4FY(%o"> <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="Y({{mltANZ_R~AXFP?yc"> <field name="oid">zigbee.0.00158d0004283edb.click</field> </shadow> </value> <statement name="STATEMENT"> <block type="variables_set" id="KU)FQCD8lF#B@3$kvvkE"> <field name="VAR" id="sQQhM6(ocGqUgVaj;U/f">Taster links</field> <value name="VALUE"> <block type="on_source" id="|q05AE*F1q^C.HP=2)-t"> <field name="ATTR">state.val</field> </block> </value> <next> <block type="comment" id="XGfLf-vcbi*(98#%$_F1"> <field name="COMMENT">Oben links</field> <next> <block type="controls_if" id="iuW:sQrIlU:BSr}.?9BG" disabled="true"> <mutation else="1"></mutation> <value name="IF0"> <block type="logic_compare" id="$m2s5|F|cb8bi[7DBjmC"> <field name="OP">EQ</field> <value name="A"> <block type="get_value" id="|1l/`60`AM]#L?7]/G%g"> <field name="ATTR">val</field> <field name="OID">alexa2.0.Smart-Home-Devices.48c5ef2e-f9e6-4bb3-9405-9314fa8b2d99.powerState</field> </block> </value> <value name="B"> <block type="logic_boolean" id="$sU,E@*0y{+jPN;Z43wT"> <field name="BOOL">FALSE</field> </block> </value> </block> </value> <statement name="DO0"> <block type="control" id="pH|=P}4CQnF=DvbLvYu7"> <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation> <field name="OID">alexa2.0.Smart-Home-Devices.48c5ef2e-f9e6-4bb3-9405-9314fa8b2d99.brightness</field> <field name="WITH_DELAY">FALSE</field> <value name="VALUE"> <block type="math_number" id="ZLLG?~a,+m`lmEe6R_*h"> <field name="NUM">70</field> </block> </value> </block> </statement> <statement name="ELSE"> <block type="control" id="PyIzT]tHWJO%5mYW|2.:"> <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation> <field name="OID">alexa2.0.Smart-Home-Devices.48c5ef2e-f9e6-4bb3-9405-9314fa8b2d99.powerState</field> <field name="WITH_DELAY">FALSE</field> <value name="VALUE"> <block type="logic_boolean" id="W|D@:Npa04V%[jJ5lz8u"> <field name="BOOL">FALSE</field> </block> </value> </block> </statement> <next> <block type="comment" id="kFX~OdN(MkL*xx0;+(:1"> <field name="COMMENT">Unten links</field> <next> <block type="controls_if" id="?a*#/I].=F5#}FY!?528"> <mutation else="1"></mutation> <value name="IF0"> <block type="logic_compare" id="J2[UyAE)pY`3iQ,T0AE]"> <field name="OP">EQ</field> <value name="A"> <block type="get_value" id="aP]$*/K=pbglhr4jy+$U"> <field name="ATTR">val</field> <field name="OID">alexa2.0.Smart-Home-Devices.b3535e91-aead-44a1-8b17-2c8b1c1c2d4b.powerState</field> </block> </value> <value name="B"> <block type="logic_boolean" id="{!u;Nuj*i.*DuUu50z@P"> <field name="BOOL">FALSE</field> </block> </value> </block> </value> <statement name="DO0"> <block type="control" id="T,^gYI}pl},E}rX2REX]"> <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation> <field name="OID">alexa2.0.Smart-Home-Devices.b3535e91-aead-44a1-8b17-2c8b1c1c2d4b.brightness</field> <field name="WITH_DELAY">FALSE</field> <value name="VALUE"> <block type="math_number" id=":u0F/H1tZpE++o{1ByjC"> <field name="NUM">70</field> </block> </value> </block> </statement> <statement name="ELSE"> <block type="control" id="4W[=/::6[cBZs7%V:V^-"> <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation> <field name="OID">alexa2.0.Smart-Home-Devices.b3535e91-aead-44a1-8b17-2c8b1c1c2d4b.powerState</field> <field name="WITH_DELAY">FALSE</field> <value name="VALUE"> <block type="logic_boolean" id="EMzW+[QST7lT*U0;M14V"> <field name="BOOL">FALSE</field> </block> </value> </block> </statement> </block> </next> </block> </next> </block> </next> </block> </next> </block> </statement> <next> <block type="comment" id="vuC+ONZrR({6+_1N4doL"> <field name="COMMENT">Aqara BWM</field> <next> <block type="on" id="u;;D50`#m*Z;%2.Ey?nD"> <field name="OID">zigbee.0.00158d0004512481.no_motion</field> <field name="CONDITION">ne</field> <field name="ACK_CONDITION"></field> <statement name="STATEMENT"> <block type="controls_if" id="J!J@+d=):1Z6{ljOvpwc"> <value name="IF0"> <block type="logic_operation" id="0aK/YaLFHb|H(G7$GPZ{" inline="false"> <field name="OP">OR</field> <value name="A"> <block type="logic_negate" id="c[8zhX]@xf(0w^F*uSuJ"> <value name="BOOL"> <block type="variables_get" id="!u2rt7tx(]/)p{dF8ur)"> <field name="VAR" id="sQQhM6(ocGqUgVaj;U/f">Taster links</field> </block> </value> </block> </value> <value name="B"> <block type="logic_negate" id="^|GZ}g4*InD1k#qK[/(:"> <value name="BOOL"> <block type="variables_get" id="bqAckYr+lNe=HNWEi8Zo"> <field name="VAR" id="3t=Qb]Fgt~!a8nbX30:r">Taster rechts</field> </block> </value> </block> </value> </block> </value> <statement name="DO0"> <block type="comment" id="0Uq*WE2I^QkX5J[9Tk^e"> <field name="COMMENT">Unterschrank ausschalten</field> <next> <block type="controls_if" id="_@z*T/e|S/KN!,KJn=LU"> <value name="IF0"> <block type="logic_operation" id="J()`x(SC,p.1Sif=:8r2" inline="false"> <field name="OP">OR</field> <value name="A"> <block type="logic_compare" id="ITG~)7okR$pu23NW2m)!"> <field name="OP">GT</field> <value name="A"> <block type="get_value" id="Pc|DBMEL1SGc~aszPGfQ"> <field name="ATTR">val</field> <field name="OID">zigbee.0.00158d0004512481.no_motion</field> </block> </value> <value name="B"> <block type="math_number" id="l5a1Xx}$ZrO8x!TErKzC"> <field name="NUM">120</field> </block> </value> </block> </value> <value name="B"> <block type="logic_compare" id="P}`JBjN3xcW:G+q`SpPl"> <field name="OP">EQ</field> <value name="A"> <block type="get_value" id="lcJiDjY*!,[81k0A9S*%"> <field name="ATTR">val</field> <field name="OID">javascript.0.Nachtcheck</field> </block> </value> <value name="B"> <block type="logic_boolean" id="7,F}%3uG#Bi:uD%p]%}o"> <field name="BOOL">FALSE</field> </block> </value> </block> </value> </block> </value> <statement name="DO0"> <block type="comment" id="GRcFCihJDF${U|Bk7^hP"> <field name="COMMENT">Unten links</field> <next> <block type="control" id="7Y;9Y2Z_rMOf1sdc}10y"> <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation> <field name="OID">alexa2.0.Smart-Home-Devices.b3535e91-aead-44a1-8b17-2c8b1c1c2d4b.powerState</field> <field name="WITH_DELAY">FALSE</field> <value name="VALUE"> <block type="logic_boolean" id="ZEePuUdX9,I0rWdANKfB"> <field name="BOOL">FALSE</field> </block> </value> <next> <block type="comment" id="|[8fMR$.qp#nLsq5jN;b"> <field name="COMMENT">Unten rechts</field> <next> <block type="control" id="MC!(?0D*{%Q5e}DN7Skr"> <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation> <field name="OID">alexa2.0.Smart-Home-Devices.f31f759c-1d77-48fd-be97-dce756a82609.powerState</field> <field name="WITH_DELAY">FALSE</field> <value name="VALUE"> <block type="logic_boolean" id=",RaHGegt9Rxf?a+=n9QS"> <field name="BOOL">FALSE</field> </block> </value> </block> </next> </block> </next> </block> </next> </block> </statement> <next> <block type="comment" id="Og0Rb,EQwNceqy4aW0AW"> <field name="COMMENT">Unterschrank einschalten</field> <next> <block type="controls_if" id="VrE1nydx(PtY4ZVUncAu"> <value name="IF0"> <block type="logic_operation" id="7#|]EJug:Zl*=#-64r*X" inline="false"> <field name="OP">AND</field> <value name="A"> <block type="logic_compare" id="Sv*{o@n1eeM.@s99WV)9"> <field name="OP">LTE</field> <value name="A"> <block type="get_value" id="0$_7YL_;}ZaIVO44@y1V"> <field name="ATTR">val</field> <field name="OID">zigbee.0.00158d0004512481.no_motion</field> </block> </value> <value name="B"> <block type="math_number" id="wwN@zr6]3L$:O?@57P:-"> <field name="NUM">120</field> </block> </value> </block> </value> <value name="B"> <block type="logic_compare" id="?}XYwl[Pfml@Arc8Kno8"> <field name="OP">EQ</field> <value name="A"> <block type="get_value" id="=u;Di;v*?-2=AUMWtuC!"> <field name="ATTR">val</field> <field name="OID">javascript.0.Nachtcheck</field> </block> </value> <value name="B"> <block type="logic_boolean" id="M+YO+;s+6{^l#CldeY;E"> <field name="BOOL">TRUE</field> </block> </value> </block> </value> </block> </value> <statement name="DO0"> <block type="comment" id="BjWH(WH-u0]oQ6wdz]]M"> <field name="COMMENT">Unten links</field> <next> <block type="control" id=")Y?z!NDZ56z+T*umX)};"> <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation> <field name="OID">alexa2.0.Smart-Home-Devices.b3535e91-aead-44a1-8b17-2c8b1c1c2d4b.brightness</field> <field name="WITH_DELAY">FALSE</field> <value name="VALUE"> <block type="math_number" id="P4Y}:T8{{Jzm(=UP=yvM"> <field name="NUM">10</field> </block> </value> <next> <block type="comment" id="m}xQ~/g/fiW7R~.-S.-`"> <field name="COMMENT">Unten rechts</field> <next> <block type="control" id="l5V@B1115be9[hh#aAQN"> <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation> <field name="OID">alexa2.0.Smart-Home-Devices.f31f759c-1d77-48fd-be97-dce756a82609.brightness</field> <field name="WITH_DELAY">FALSE</field> <value name="VALUE"> <block type="math_number" id="*qdDM9S_8YpE8SovdD.+"> <field name="NUM">10</field> </block> </value> </block> </next> </block> </next> </block> </next> </block> </statement> </block> </next> </block> </next> </block> </next> </block> </statement> </block> </statement> </block> </next> </block> </next> </block> </next> </block> </next> </block> </next> </block> <block type="controls_if" id="1u;6?xx+*7ce?^vQyX!}" x="63" y="2213"> <value name="IF0"> <block type="logic_operation" id="GHp#nB*Qn_waDZ~pq5,;" inline="false"> <field name="OP">OR</field> <value name="A"> <block type="logic_negate" id="I1S,f^U+X:;/i|84V.5@"> <value name="BOOL"> <block type="variables_get" id="IR6:+mDC9/!=EL;OYTgK"> <field name="VAR" id="sQQhM6(ocGqUgVaj;U/f">Taster links</field> </block> </value> </block> </value> <value name="B"> <block type="logic_negate" id="Vq,:Myb??m%DDC!iCS_j"> <value name="BOOL"> <block type="variables_get" id="97]=Q`EO]||ZmLBs`_uU"> <field name="VAR" id="3t=Qb]Fgt~!a8nbX30:r">Taster rechts</field> </block> </value> </block> </value> </block> </value> <statement name="DO0"> <block type="comment" id="3$lyhmL]+FT=Sz+!A.V%"> <field name="COMMENT">Unterschrank ausschalten</field> <next> <block type="controls_if" id="3lIs-RiJ/.xDpmX5|3@_"> <value name="IF0"> <block type="logic_operation" id="[|^K8q/D9u.xHapy^p]H" inline="false"> <field name="OP">OR</field> <value name="A"> <block type="logic_compare" id="m`H]/fu(mlsf$sy-F|iZ"> <field name="OP">GT</field> <value name="A"> <block type="get_value" id="DbLFb?vO1~1TVO2M1{]O"> <field name="ATTR">val</field> <field name="OID">zigbee.0.00158d0004512481.no_motion</field> </block> </value> <value name="B"> <block type="math_number" id=";%:mgwI]|^:nkJP,/?U:"> <field name="NUM">120</field> </block> </value> </block> </value> <value name="B"> <block type="logic_compare" id="EcbU8@.N=|v`e?I=IPns"> <field name="OP">EQ</field> <value name="A"> <block type="get_value" id="#HM*%|!JF(VB{oG]@[Ku"> <field name="ATTR">val</field> <field name="OID">javascript.0.Nachtcheck</field> </block> </value> <value name="B"> <block type="logic_boolean" id="Sqr,4+G~_)OP9T4QY]Y5"> <field name="BOOL">FALSE</field> </block> </value> </block> </value> </block> </value> <statement name="DO0"> <block type="comment" id="}2otntyv:zpHHOMXE3LI"> <field name="COMMENT">Unten links</field> <next> <block type="control" id="!T3N:q1rhE^mId=ZaWaX"> <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation> <field name="OID">alexa2.0.Smart-Home-Devices.b3535e91-aead-44a1-8b17-2c8b1c1c2d4b.powerState</field> <field name="WITH_DELAY">FALSE</field> <value name="VALUE"> <block type="logic_boolean" id="IIz%a|Oz!@yjW$2w,-vX"> <field name="BOOL">FALSE</field> </block> </value> <next> <block type="comment" id="9j37y*#Uw#^u4ihUuCE?"> <field name="COMMENT">Unten rechts</field> <next> <block type="control" id="]EbnCc7}}p(,k,dBU?z}"> <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation> <field name="OID">alexa2.0.Smart-Home-Devices.f31f759c-1d77-48fd-be97-dce756a82609.powerState</field> <field name="WITH_DELAY">FALSE</field> <value name="VALUE"> <block type="logic_boolean" id="M7TKmcAq~,j8]~IHp^y%"> <field name="BOOL">FALSE</field> </block> </value> </block> </next> </block> </next> </block> </next> </block> </statement> <next> <block type="comment" id="x%(`JI1@5Xm^TS%qa!Tm"> <field name="COMMENT">Unterschrank einschalten</field> <next> <block type="controls_if" id="!gsGCagI}vy/Q1iwmTdO"> <value name="IF0"> <block type="logic_operation" id="g*05sWKl3~Hg(ob^Q,E%" inline="false"> <field name="OP">AND</field> <value name="A"> <block type="logic_compare" id="K5$uTjXcsltoHmtT`H?z"> <field name="OP">LTE</field> <value name="A"> <block type="get_value" id="*gOa^iv97#$c~S:uV;mn"> <field name="ATTR">val</field> <field name="OID">zigbee.0.00158d0004512481.no_motion</field> </block> </value> <value name="B"> <block type="math_number" id="ETC:HeXEIXJQ=b:2)b=Q"> <field name="NUM">120</field> </block> </value> </block> </value> <value name="B"> <block type="logic_compare" id="u^qB%UldesAQ@4^%2Rfn"> <field name="OP">EQ</field> <value name="A"> <block type="get_value" id="sPWPV1Psz=@1SASZcWJ9"> <field name="ATTR">val</field> <field name="OID">javascript.0.Nachtcheck</field> </block> </value> <value name="B"> <block type="logic_boolean" id="9^Oi?](U8y,sO@QyulTA"> <field name="BOOL">TRUE</field> </block> </value> </block> </value> </block> </value> <statement name="DO0"> <block type="comment" id="GVf*A,+uaW/|(Bhe_@kK"> <field name="COMMENT">Unten links</field> <next> <block type="control" id="6a@~SGkSwChj{_!qkSa?"> <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation> <field name="OID">alexa2.0.Smart-Home-Devices.b3535e91-aead-44a1-8b17-2c8b1c1c2d4b.brightness</field> <field name="WITH_DELAY">FALSE</field> <value name="VALUE"> <block type="math_number" id="_4$6N$1QBE#rBaTr*LI]"> <field name="NUM">10</field> </block> </value> <next> <block type="comment" id="w;HvP1,.{19|IyYmg!uX"> <field name="COMMENT">Unten rechts</field> <next> <block type="control" id="RoaY$B=zRXcmwaHtjvi9"> <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation> <field name="OID">alexa2.0.Smart-Home-Devices.f31f759c-1d77-48fd-be97-dce756a82609.brightness</field> <field name="WITH_DELAY">FALSE</field> <value name="VALUE"> <block type="math_number" id="!v;H)`bus}.8JHOy[X|}"> <field name="NUM">10</field> </block> </value> </block> </next> </block> </next> </block> </next> </block> </statement> </block> </next> </block> </next> </block> </next> </block> </statement> </block> </xml>
  • [gelöst] Verzögerung funktioniert nicht richtig

    13
    1
    0 Stimmen
    13 Beiträge
    489 Aufrufe
    M
    @paul53 Ja ist der vollständige code. timeout3 und 4 waren nur in einem deaktiviertem Block in Verwendung. Ich habe jetzt diesen Block gelöscht. Dann sind diese Variablen verschwunden und jetzt funktioniert es. Danke! Darf das sein, dass ein deaktivierter Block diese Auswirkung hat?
  • Steckdosen Status Blockly Script

    blockly
    3
    0 Stimmen
    3 Beiträge
    371 Aufrufe
    Sebastian 0S
    @paul53 wie einfach..... -.- ich danke dir vielmals!!
  • [gelöst] Werte in Datenpkt vergleichen funktioniert nicht

    8
    1
    0 Stimmen
    8 Beiträge
    386 Aufrufe
    S
    @Homoran[image: 1602951210948-loesung.jpg] Anfängerfehler... Vielen Dank! Das ist die Lösung!
  • Rollosteuerung an bestimmten Tag wechseln

    blockly
    2
    1
    0 Stimmen
    2 Beiträge
    176 Aufrufe
    liv-in-skyL
    @Idefix01 vorraussetzung: die normale steuerung sollte uns da nicht im weg sein, weil sie ja normalerweise nach 16:00 runterfährt und schon unten ist und am nächsten morgen wieder hochfährt, wenn es eh schon oben ist - ich nehme an, du hast solche festen zeiten für die rollosteuerung - eigentlich sollte auch das öffnen am 1.1 nicht nötig sein, weil deine hauptsteuerung das eh machen wird. also reicht es, dass rollo zu steuern - zu einer bestimmten zeit [image: 1602874863046-image-4.png] Spoiler <block xmlns="https://developers.google.com/blockly/xml" type="schedule" id=")s5Aiz)VzW$EMcnR/@VN" x="-862.6227416992188" y="62.094238281249886"> <field name="SCHEDULE">0 6 1 1 *</field> <statement name="STATEMENT"> <block type="control" id="W:HghlKn+Z:zhmzA*A]0"> <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation> <field name="OID">Object ID</field> <field name="WITH_DELAY">FALSE</field> </block> </statement> </block> Spoiler <block xmlns="https://developers.google.com/blockly/xml" type="schedule" id="[1@CYoE.@qX/5@a:bZt%" x="-862.9246215820312" y="-135.79244995117188"> <field name="SCHEDULE">0 16 31 12 *</field> <statement name="STATEMENT"> <block type="control" id="xGg-H$(*2xV`,tO0RnNP"> <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation> <field name="OID">Object ID</field> <field name="WITH_DELAY">FALSE</field> </block> </statement> </block> wenn du in diesem blockly auf edit im schedule gehst- mußt du das [image: 1602875100738-image-5.png] auswählen um es für testzwecke zu ändern
  • Heizungssteuerung wenn Fenster geöffnet ist

    16
    2
    0 Stimmen
    16 Beiträge
    1k Aufrufe
    paul53P
    @René-D sagte: Kann es sein, dass ich die Falsche Objekt ID eingetragen habe? Das kann ich nicht beurteilen. @René-D sagte in Heizungssteuerung wenn Fenster geöffnet ist: Wenn das Fenster zu ist, dann ist der Wert von dem Fensterkontakt auf "false", wird es geöffnet, ändert es sich auf "true" Bau mal eine Log-Ausgabe ein: [image: 1602861282191-blockly_temp.jpg]
  • [GELÖST] Lichter Überwachen und Info bei Ausfall

    8
    3
    0 Stimmen
    8 Beiträge
    703 Aufrufe
    paul53P
    @Spegeli sagte: jetzt gehts. Dann ersetze bitte in der Überschrift [HILFE GESUCHT] durch [gelöst].
  • DP wurde aktualisiert anerkannt ist "egal","Update","Befehl"

    15
    1
    0 Stimmen
    15 Beiträge
    1k Aufrufe
    AlCalzoneA
    @paul53 sagte in DP wurde aktualisiert anerkannt ist "egal","Update","Befehl": Wenn es keine Rückmeldung gibt (433 MHz, IR), bleibt nichts anderes übrig. @fastfoot sagte in DP wurde aktualisiert anerkannt ist "egal","Update","Befehl": wenn das Polling nur alle paar Sekunden erfolgt? Stimmt natürlich. Ich bin eher in den Gefilden unterwegs, wo direkte Kommunikation erfolgt.
  • Blockly über Googlekalender steuern

    blockly
    14
    1
    0 Stimmen
    14 Beiträge
    2k Aufrufe
    D
    @jensven Danke Dir für den Denkanstoß. Werde mir das mal als Umsetzung für meine Vorhabe anschauen und testen.
  • mihome Blockly

    blockly scenes
    2
    1
    0 Stimmen
    2 Beiträge
    276 Aufrufe
    M
    @patrick039212 [image: 1602798774000-d53d13b5-e1ee-4143-8fd8-a6bdd2e1ad1d-image.png] [image: 1602798803446-1016c954-7b16-4a95-b6f5-b3b4d3fa4a02-image.png]
  • Blockly Schleifen

    Verschoben blockly
    2
    1
    0 Stimmen
    2 Beiträge
    427 Aufrufe
    M
    @norman Was ist denn das Trigger-Objekt. Wie oft wird das ausgelöst? Bei jeder Auslösung wird die Schleife mindestens einmal durchlaufen! [image: 1602794664545-90fe0731-b37b-4a13-9d2a-c77b233cb069-image.png]
  • Lichtsteuerung bei Ankunft

    20
    0 Stimmen
    20 Beiträge
    1k Aufrufe
    dslraserD
    @joachim-knape sagte in Lichtsteuerung bei Ankunft: @dslraser wie baue ich denn da jetzt astrozeiten ein.. kopfkratz oder so... [image: 1602791647288-bildschirmfoto-2020-10-15-um-21.53.32.png] Blockly Export <xml xmlns="https://developers.google.com/blockly/xml"> <block type="on_ext" id="wo+n7k.axGoXczYz%s|Z" x="112" y="62"> <mutation xmlns="http://www.w3.org/1999/xhtml" items="2"></mutation> <field name="CONDITION">gt</field> <field name="ACK_CONDITION"></field> <value name="OID0"> <shadow type="field_oid" id="E[#qZzqWB;9[?2AZ9!1w"> <field name="oid">default</field> </shadow> </value> <value name="OID1"> <shadow type="field_oid" id="x[=WA763_i[|sd`-0ygv"> <field name="oid">default</field> </shadow> </value> <statement name="STATEMENT"> <block type="controls_if" id="@|9?zj1#jBDY!)p%uF=w"> <value name="IF0"> <block type="time_compare_ex" id="gG|43tDqnH+tSoDQgU=Q"> <mutation xmlns="http://www.w3.org/1999/xhtml" end_time="true" actual_time="true"></mutation> <field name="USE_ACTUAL_TIME">TRUE</field> <field name="OPTION">between</field> <value name="START_TIME"> <shadow type="text" id="_!8!$R;N(l)N]3?6jM,H"> <field name="TEXT">12:00</field> </shadow> <block type="time_astro" id="JpJ;,er2-Jxz%gM5QEZ{"> <field name="TYPE">sunset</field> <field name="OFFSET">0</field> </block> </value> <value name="END_TIME"> <shadow type="text" id="3@~d:{r][Dv4cj@V#e%!"> <field name="TEXT">18:00</field> </shadow> <block type="time_astro" id="*$:M-i:%z6w?4ru??r[@"> <field name="TYPE">sunrise</field> <field name="OFFSET">0</field> </block> </value> </block> </value> <statement name="DO0"> <block type="controls_if" id="Is/ndd^-}wEDGo`eD;b#"> <value name="IF0"> <block type="logic_operation" id="iWRE};StGgIGY.UEdFlB" inline="false"> <field name="OP">OR</field> <value name="A"> <block type="logic_compare" id="~2,u[a.|I8z=}},ARRZ,"> <field name="OP">EQ</field> <value name="A"> <block type="get_value" id="Sy=X[;.hN}v5XmdM#l4z"> <field name="ATTR">val</field> <field name="OID">ID auswählen</field> </block> </value> <value name="B"> <block type="logic_boolean" id="7uM.~%=3Q=$Ds^@?2Luu"> <field name="BOOL">TRUE</field> </block> </value> </block> </value> <value name="B"> <block type="logic_compare" id="k)Q2AA#jx,@;f%U9R%d`"> <field name="OP">EQ</field> <value name="A"> <block type="get_value" id="=uK_.,g|~]uff@?mKAaF"> <field name="ATTR">val</field> <field name="OID">ID auswählen</field> </block> </value> <value name="B"> <block type="logic_boolean" id="O%6p^BLiVpi93D+r!E^Y"> <field name="BOOL">TRUE</field> </block> </value> </block> </value> </block> </value> <statement name="DO0"> <block type="control" id="#4rpLhqe!8R,ze1DZk7I"> <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation> <field name="OID">Object ID</field> <field name="WITH_DELAY">FALSE</field> <value name="VALUE"> <block type="logic_boolean" id="i%xTm9};5+jpn(1)IyY9"> <field name="BOOL">TRUE</field> </block> </value> <next> <block type="control" id="AEbfr1;^Fk(oKFL?qz,F"> <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="true"></mutation> <field name="OID">Object ID</field> <field name="WITH_DELAY">TRUE</field> <field name="DELAY_MS">5</field> <field name="UNIT">min</field> <field name="CLEAR_RUNNING">TRUE</field> <value name="VALUE"> <block type="logic_boolean" id="`(4aD2x}6%~o2*oS(!PZ"> <field name="BOOL">FALSE</field> </block> </value> </block> </next> </block> </statement> </block> </statement> </block> </statement> </block> </xml> EDIT: Oder so, weil Astro hat glaube ich irgendein Problem mit dem Tageswechsel (irgendwas war da, weiß ich aber leider nicht mehr genau...) [image: 1602791837841-bildschirmfoto-2020-10-15-um-21.56.04.png] Blockly Export <xml xmlns="https://developers.google.com/blockly/xml"> <block type="on_ext" id="wo+n7k.axGoXczYz%s|Z" x="112" y="62"> <mutation xmlns="http://www.w3.org/1999/xhtml" items="2"></mutation> <field name="CONDITION">gt</field> <field name="ACK_CONDITION"></field> <value name="OID0"> <shadow type="field_oid" id="E[#qZzqWB;9[?2AZ9!1w"> <field name="oid">default</field> </shadow> </value> <value name="OID1"> <shadow type="field_oid" id="x[=WA763_i[|sd`-0ygv"> <field name="oid">default</field> </shadow> </value> <statement name="STATEMENT"> <block type="controls_if" id="@|9?zj1#jBDY!)p%uF=w"> <value name="IF0"> <block type="time_compare_ex" id="gG|43tDqnH+tSoDQgU=Q"> <mutation xmlns="http://www.w3.org/1999/xhtml" end_time="true" actual_time="true"></mutation> <field name="USE_ACTUAL_TIME">TRUE</field> <field name="OPTION">not between</field> <value name="START_TIME"> <shadow type="text" id="_!8!$R;N(l)N]3?6jM,H"> <field name="TEXT">12:00</field> </shadow> <block type="time_astro" id="JpJ;,er2-Jxz%gM5QEZ{"> <field name="TYPE">sunrise</field> <field name="OFFSET">0</field> </block> </value> <value name="END_TIME"> <shadow type="text" id="3@~d:{r][Dv4cj@V#e%!"> <field name="TEXT">18:00</field> </shadow> <block type="time_astro" id="*$:M-i:%z6w?4ru??r[@"> <field name="TYPE">sunset</field> <field name="OFFSET">0</field> </block> </value> </block> </value> <statement name="DO0"> <block type="controls_if" id="Is/ndd^-}wEDGo`eD;b#"> <value name="IF0"> <block type="logic_operation" id="iWRE};StGgIGY.UEdFlB" inline="false"> <field name="OP">OR</field> <value name="A"> <block type="logic_compare" id="~2,u[a.|I8z=}},ARRZ,"> <field name="OP">EQ</field> <value name="A"> <block type="get_value" id="Sy=X[;.hN}v5XmdM#l4z"> <field name="ATTR">val</field> <field name="OID">ID auswählen</field> </block> </value> <value name="B"> <block type="logic_boolean" id="7uM.~%=3Q=$Ds^@?2Luu"> <field name="BOOL">TRUE</field> </block> </value> </block> </value> <value name="B"> <block type="logic_compare" id="k)Q2AA#jx,@;f%U9R%d`"> <field name="OP">EQ</field> <value name="A"> <block type="get_value" id="=uK_.,g|~]uff@?mKAaF"> <field name="ATTR">val</field> <field name="OID">ID auswählen</field> </block> </value> <value name="B"> <block type="logic_boolean" id="O%6p^BLiVpi93D+r!E^Y"> <field name="BOOL">TRUE</field> </block> </value> </block> </value> </block> </value> <statement name="DO0"> <block type="control" id="#4rpLhqe!8R,ze1DZk7I"> <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation> <field name="OID">Object ID</field> <field name="WITH_DELAY">FALSE</field> <value name="VALUE"> <block type="logic_boolean" id="i%xTm9};5+jpn(1)IyY9"> <field name="BOOL">TRUE</field> </block> </value> <next> <block type="control" id="AEbfr1;^Fk(oKFL?qz,F"> <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="true"></mutation> <field name="OID">Object ID</field> <field name="WITH_DELAY">TRUE</field> <field name="DELAY_MS">5</field> <field name="UNIT">min</field> <field name="CLEAR_RUNNING">TRUE</field> <value name="VALUE"> <block type="logic_boolean" id="`(4aD2x}6%~o2*oS(!PZ"> <field name="BOOL">FALSE</field> </block> </value> </block> </next> </block> </statement> </block> </statement> </block> </statement> </block> </xml>
  • Zeitrechnen

    blockly
    12
    1
    0 Stimmen
    12 Beiträge
    719 Aufrufe
    A
    @paul53 Hy Paul Ich habe einen Wassertank von 1000 lt. Mittels Wemos D1 ermittle ich die Distanz der Wasseroberfläche zum Sensor SR04 und ermittle so den aktuellen Füllstand. das funktioniert soweit ohne Probleme. jetzt möchte ich wieder die Anzahl Tage ermitteln zwischen voll und leer, damit ich abschätzen kann wie lange der Tank reicht. Jetzt kann ich ja die Zeitberechnung nicht mittels Trigger "Ist kleiner als letztes" starten, da mir ja der Sensor dauernd andere Werte liefert. Wie ist das umzusetzen? [image: 1602789572473-wassertank-anz-tage.jpg] Danke dir......:laughing:
  • Hilfe zu Fussbodenheizung

    2
    1
    0 Stimmen
    2 Beiträge
    142 Aufrufe
    Z
    @zyrrill thx problem gelöst funkt schon
  • Blockly Scripte fehlerhafte Daten, Lösung?

    3
    2
    0 Stimmen
    3 Beiträge
    159 Aufrufe
    B
    @Homoran hi, danke daß ist mir jetzt auch gerade aufgefallen und ich glaube ich habe bereits selber die Lösung gefunden, hoffe ich zumindest. [image: 1602774455124-netzbezug-blockly-script-neu.jpg] Ich beobachte es mal, aber es schaut um einiges besser aus, als die Vorgängerversionen Gruß

290

Online

32.7k

Benutzer

82.4k

Themen

1.3m

Beiträge