NEWS
licht für meine Schildköte unterschiedlich Zeitschalten
-
Hallo ich zebreche mir seid einieger zeit den kopf wie ich den zeitpalan mit einem Blockly script umsetzen kann
es ist für eine steckdose

-
Hallo ich zebreche mir seid einieger zeit den kopf wie ich den zeitpalan mit einem Blockly script umsetzen kann
es ist für eine steckdose

@horst-böttcher Trigger auf die früheste Zeit zu der die Steckdose angehen soll.
Danach fragst du den aktuellen Monat ab und definierst dann wie lange die Lampe brennt.
Alternativ zu den jeweiligen An- und Ausschaltzeiten triggern damit ein Neustart überstanden werden kann.Beispiel März:
Trigger um 9 Uhr -> Falles März -> An
Trigger um 15 Uhr -> Falls März -> Aus
usw. -
@horst-böttcher Trigger auf die früheste Zeit zu der die Steckdose angehen soll.
Danach fragst du den aktuellen Monat ab und definierst dann wie lange die Lampe brennt.
Alternativ zu den jeweiligen An- und Ausschaltzeiten triggern damit ein Neustart überstanden werden kann.Beispiel März:
Trigger um 9 Uhr -> Falles März -> An
Trigger um 15 Uhr -> Falls März -> Aus
usw.@lessthanmore Es sollte also so gehen
<xml xmlns="https://developers.google.com/blockly/xml"> <block type="schedule" id="V=G+ewqu#xG7|K9B~gcV" x="-187" y="-312"> <field name="SCHEDULE">{"time":{"start":"08:00","exactTime":true},"valid":{"from":"11.12.2023"},"period":{"months":"[1,2,11,12]"}}</field> <statement name="STATEMENT"> <block type="control" id="H,!6MF.PwPZ|B@s89?#F"> <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation> <field name="OID">zigbee.0.00178801089dbdd5.state</field> <field name="WITH_DELAY">FALSE</field> <value name="VALUE"> <block type="logic_boolean" id="WnuXlXd767W5^-KW*dDU"> <field name="BOOL">TRUE</field> </block> </value> </block> </statement> <next> <block type="schedule" id="i0yPw%~5TJ?7_ED#:nI$"> <field name="SCHEDULE">{"time":{"start":"13:00","exactTime":true},"period":{"months":"[1,2,12]"},"valid":{"from":"11.12.2023"}}</field> <statement name="STATEMENT"> <block type="control" id=",Se(vDJO=;$j@Qd?=UjL"> <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation> <field name="OID">zigbee.0.00178801089dbdd5.state</field> <field name="WITH_DELAY">FALSE</field> <value name="VALUE"> <block type="logic_boolean" id="@S_OBpg-9t#l}glnUZd|"> <field name="BOOL">FALSE</field> </block> </value> </block> </statement> <next> <block type="schedule" id="tvRpf`@:M5=5=@TIF;3p"> <field name="SCHEDULE">{"time":{"start":"08:00","exactTime":true},"valid":{"from":"11.12.2023"},"period":{"months":"[3]"}}</field> <statement name="STATEMENT"> <block type="control" id="8}V,y,TK}dwb`O5rKKys"> <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation> <field name="OID">zigbee.0.00178801089dbdd5.state</field> <field name="WITH_DELAY">FALSE</field> <value name="VALUE"> <block type="logic_boolean" id="E?qvV~_^wFSkK?U=L/bA"> <field name="BOOL">TRUE</field> </block> </value> </block> </statement> <next> <block type="schedule" id="f:S1btk=0Wj|/+eijs%1"> <field name="SCHEDULE">{"time":{"start":"14:00","exactTime":true},"period":{"months":"[3]"},"valid":{"from":"11.12.2023"}}</field> <statement name="STATEMENT"> <block type="control" id="SePuD@*vW7C!BC_Jw:a~"> <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation> <field name="OID">zigbee.0.00178801089dbdd5.state</field> <field name="WITH_DELAY">FALSE</field> <value name="VALUE"> <block type="logic_boolean" id="9vI95k_C@1v^2h/JCjbt"> <field name="BOOL">FALSE</field> </block> </value> </block> </statement> <next> <block type="schedule" id="IV{h@{QaB}JZ.iB_VSu%"> <field name="SCHEDULE">{"time":{"start":"08:00","exactTime":true},"valid":{"from":"11.12.2023"},"period":{"months":"[4,10]"}}</field> <statement name="STATEMENT"> <block type="control" id="eF?ljeY)@(BJnfp]:6_j"> <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation> <field name="OID">zigbee.0.00178801089dbdd5.state</field> <field name="WITH_DELAY">FALSE</field> <value name="VALUE"> <block type="logic_boolean" id=")p5VmlsNuU`~GLgol2M6"> <field name="BOOL">TRUE</field> </block> </value> </block> </statement> <next> <block type="schedule" id="7QD`!([~v_}EM*kv)Cgh"> <field name="SCHEDULE">{"time":{"start":"16:00","exactTime":true},"valid":{"from":"11.12.2023"},"period":{"months":"[4,10]"}}</field> <statement name="STATEMENT"> <block type="control" id="!6H1E8ON!LE$leJVn)Wp"> <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation> <field name="OID">zigbee.0.00178801089dbdd5.state</field> <field name="WITH_DELAY">FALSE</field> <value name="VALUE"> <block type="logic_boolean" id="5Ip7t.OAMrNS7|cO^@WF"> <field name="BOOL">FALSE</field> </block> </value> </block> </statement> <next> <block type="schedule" id="S8HqlTJXPH7nSHkaPC|j"> <field name="SCHEDULE">{"time":{"start":"08:00","exactTime":true},"period":{"months":"[5,9]"},"valid":{"from":"11.12.2023"}}</field> <statement name="STATEMENT"> <block type="control" id="@7#w]gp?ba~n!(U#Ls`2"> <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation> <field name="OID">zigbee.0.00178801089dbdd5.state</field> <field name="WITH_DELAY">FALSE</field> <value name="VALUE"> <block type="logic_boolean" id="6zM?m^zU=K~~T`e%oE/v"> <field name="BOOL">TRUE</field> </block> </value> </block> </statement> <next> <block type="schedule" id=":y}yo[||T(W1~{}z=joL"> <field name="SCHEDULE">{"time":{"start":"18:00","exactTime":true},"valid":{"from":"11.12.2023"},"period":{"months":"[5,9]"}}</field> <statement name="STATEMENT"> <block type="control" id="u2f?/?1k=Qc}2e*^.[{%"> <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation> <field name="OID">zigbee.0.00178801089dbdd5.state</field> <field name="WITH_DELAY">FALSE</field> <value name="VALUE"> <block type="logic_boolean" id=".J(b=X1`c9olro*i|3Hu"> <field name="BOOL">FALSE</field> </block> </value> </block> </statement> <next> <block type="schedule" id="TZA)hf.3@^D#]-bTTzSL"> <field name="SCHEDULE">{"time":{"start":"08:00","exactTime":true},"valid":{"from":"11.12.2023"},"period":{"months":"[6,7]"}}</field> <statement name="STATEMENT"> <block type="control" id="D{fqRW4TScHzecKzD,~3"> <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation> <field name="OID">zigbee.0.00178801089dbdd5.state</field> <field name="WITH_DELAY">FALSE</field> <value name="VALUE"> <block type="logic_boolean" id="Rijy}ar}~{HJHm/[aV_;"> <field name="BOOL">TRUE</field> </block> </value> </block> </statement> <next> <block type="schedule" id="u@O?!f1$(VD?)L2BVhom"> <field name="SCHEDULE">{"time":{"start":"21:00","exactTime":true},"valid":{"from":"11.12.2023"},"period":{"months":"[6,7]"}}</field> <statement name="STATEMENT"> <block type="control" id="#3fxuA|kDVq7isY?$jk3"> <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation> <field name="OID">zigbee.0.00178801089dbdd5.state</field> <field name="WITH_DELAY">FALSE</field> <value name="VALUE"> <block type="logic_boolean" id="Wg)Vi|8Hq{7h3ofmnTk0"> <field name="BOOL">FALSE</field> </block> </value> </block> </statement> <next> <block type="schedule" id="g,[+MXi4,Au2BO.FK4A_"> <field name="SCHEDULE">{"time":{"start":"08:00","exactTime":true},"valid":{"from":"11.12.2023"},"period":{"months":"[8]"}}</field> <statement name="STATEMENT"> <block type="control" id="D[sMbZHg(TOpwP/adtD."> <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation> <field name="OID">zigbee.0.00178801089dbdd5.state</field> <field name="WITH_DELAY">FALSE</field> <value name="VALUE"> <block type="logic_boolean" id="BLjY/+7,#35`j^vq|D3k"> <field name="BOOL">TRUE</field> </block> </value> </block> </statement> <next> <block type="schedule" id="?CO[5g6U/vU,~Qv/@n]Q"> <field name="SCHEDULE">{"time":{"start":"19:00","exactTime":true},"valid":{"from":"11.12.2023"},"period":{"months":"[8]"}}</field> <statement name="STATEMENT"> <block type="control" id="?]c=Q4GP~z-?KkQ9#2CO"> <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation> <field name="OID">zigbee.0.00178801089dbdd5.state</field> <field name="WITH_DELAY">FALSE</field> <value name="VALUE"> <block type="logic_boolean" id="_7f%9*tV:3aF|8#W6^2s"> <field name="BOOL">FALSE</field> </block> </value> </block> </statement> </block> </next> </block> </next> </block> </next> </block> </next> </block> </next> </block> </next> </block> </next> </block> </next> </block> </next> </block> </next> </block> </next> </block> </xml> -
@lessthanmore Es sollte also so gehen
<xml xmlns="https://developers.google.com/blockly/xml"> <block type="schedule" id="V=G+ewqu#xG7|K9B~gcV" x="-187" y="-312"> <field name="SCHEDULE">{"time":{"start":"08:00","exactTime":true},"valid":{"from":"11.12.2023"},"period":{"months":"[1,2,11,12]"}}</field> <statement name="STATEMENT"> <block type="control" id="H,!6MF.PwPZ|B@s89?#F"> <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation> <field name="OID">zigbee.0.00178801089dbdd5.state</field> <field name="WITH_DELAY">FALSE</field> <value name="VALUE"> <block type="logic_boolean" id="WnuXlXd767W5^-KW*dDU"> <field name="BOOL">TRUE</field> </block> </value> </block> </statement> <next> <block type="schedule" id="i0yPw%~5TJ?7_ED#:nI$"> <field name="SCHEDULE">{"time":{"start":"13:00","exactTime":true},"period":{"months":"[1,2,12]"},"valid":{"from":"11.12.2023"}}</field> <statement name="STATEMENT"> <block type="control" id=",Se(vDJO=;$j@Qd?=UjL"> <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation> <field name="OID">zigbee.0.00178801089dbdd5.state</field> <field name="WITH_DELAY">FALSE</field> <value name="VALUE"> <block type="logic_boolean" id="@S_OBpg-9t#l}glnUZd|"> <field name="BOOL">FALSE</field> </block> </value> </block> </statement> <next> <block type="schedule" id="tvRpf`@:M5=5=@TIF;3p"> <field name="SCHEDULE">{"time":{"start":"08:00","exactTime":true},"valid":{"from":"11.12.2023"},"period":{"months":"[3]"}}</field> <statement name="STATEMENT"> <block type="control" id="8}V,y,TK}dwb`O5rKKys"> <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation> <field name="OID">zigbee.0.00178801089dbdd5.state</field> <field name="WITH_DELAY">FALSE</field> <value name="VALUE"> <block type="logic_boolean" id="E?qvV~_^wFSkK?U=L/bA"> <field name="BOOL">TRUE</field> </block> </value> </block> </statement> <next> <block type="schedule" id="f:S1btk=0Wj|/+eijs%1"> <field name="SCHEDULE">{"time":{"start":"14:00","exactTime":true},"period":{"months":"[3]"},"valid":{"from":"11.12.2023"}}</field> <statement name="STATEMENT"> <block type="control" id="SePuD@*vW7C!BC_Jw:a~"> <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation> <field name="OID">zigbee.0.00178801089dbdd5.state</field> <field name="WITH_DELAY">FALSE</field> <value name="VALUE"> <block type="logic_boolean" id="9vI95k_C@1v^2h/JCjbt"> <field name="BOOL">FALSE</field> </block> </value> </block> </statement> <next> <block type="schedule" id="IV{h@{QaB}JZ.iB_VSu%"> <field name="SCHEDULE">{"time":{"start":"08:00","exactTime":true},"valid":{"from":"11.12.2023"},"period":{"months":"[4,10]"}}</field> <statement name="STATEMENT"> <block type="control" id="eF?ljeY)@(BJnfp]:6_j"> <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation> <field name="OID">zigbee.0.00178801089dbdd5.state</field> <field name="WITH_DELAY">FALSE</field> <value name="VALUE"> <block type="logic_boolean" id=")p5VmlsNuU`~GLgol2M6"> <field name="BOOL">TRUE</field> </block> </value> </block> </statement> <next> <block type="schedule" id="7QD`!([~v_}EM*kv)Cgh"> <field name="SCHEDULE">{"time":{"start":"16:00","exactTime":true},"valid":{"from":"11.12.2023"},"period":{"months":"[4,10]"}}</field> <statement name="STATEMENT"> <block type="control" id="!6H1E8ON!LE$leJVn)Wp"> <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation> <field name="OID">zigbee.0.00178801089dbdd5.state</field> <field name="WITH_DELAY">FALSE</field> <value name="VALUE"> <block type="logic_boolean" id="5Ip7t.OAMrNS7|cO^@WF"> <field name="BOOL">FALSE</field> </block> </value> </block> </statement> <next> <block type="schedule" id="S8HqlTJXPH7nSHkaPC|j"> <field name="SCHEDULE">{"time":{"start":"08:00","exactTime":true},"period":{"months":"[5,9]"},"valid":{"from":"11.12.2023"}}</field> <statement name="STATEMENT"> <block type="control" id="@7#w]gp?ba~n!(U#Ls`2"> <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation> <field name="OID">zigbee.0.00178801089dbdd5.state</field> <field name="WITH_DELAY">FALSE</field> <value name="VALUE"> <block type="logic_boolean" id="6zM?m^zU=K~~T`e%oE/v"> <field name="BOOL">TRUE</field> </block> </value> </block> </statement> <next> <block type="schedule" id=":y}yo[||T(W1~{}z=joL"> <field name="SCHEDULE">{"time":{"start":"18:00","exactTime":true},"valid":{"from":"11.12.2023"},"period":{"months":"[5,9]"}}</field> <statement name="STATEMENT"> <block type="control" id="u2f?/?1k=Qc}2e*^.[{%"> <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation> <field name="OID">zigbee.0.00178801089dbdd5.state</field> <field name="WITH_DELAY">FALSE</field> <value name="VALUE"> <block type="logic_boolean" id=".J(b=X1`c9olro*i|3Hu"> <field name="BOOL">FALSE</field> </block> </value> </block> </statement> <next> <block type="schedule" id="TZA)hf.3@^D#]-bTTzSL"> <field name="SCHEDULE">{"time":{"start":"08:00","exactTime":true},"valid":{"from":"11.12.2023"},"period":{"months":"[6,7]"}}</field> <statement name="STATEMENT"> <block type="control" id="D{fqRW4TScHzecKzD,~3"> <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation> <field name="OID">zigbee.0.00178801089dbdd5.state</field> <field name="WITH_DELAY">FALSE</field> <value name="VALUE"> <block type="logic_boolean" id="Rijy}ar}~{HJHm/[aV_;"> <field name="BOOL">TRUE</field> </block> </value> </block> </statement> <next> <block type="schedule" id="u@O?!f1$(VD?)L2BVhom"> <field name="SCHEDULE">{"time":{"start":"21:00","exactTime":true},"valid":{"from":"11.12.2023"},"period":{"months":"[6,7]"}}</field> <statement name="STATEMENT"> <block type="control" id="#3fxuA|kDVq7isY?$jk3"> <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation> <field name="OID">zigbee.0.00178801089dbdd5.state</field> <field name="WITH_DELAY">FALSE</field> <value name="VALUE"> <block type="logic_boolean" id="Wg)Vi|8Hq{7h3ofmnTk0"> <field name="BOOL">FALSE</field> </block> </value> </block> </statement> <next> <block type="schedule" id="g,[+MXi4,Au2BO.FK4A_"> <field name="SCHEDULE">{"time":{"start":"08:00","exactTime":true},"valid":{"from":"11.12.2023"},"period":{"months":"[8]"}}</field> <statement name="STATEMENT"> <block type="control" id="D[sMbZHg(TOpwP/adtD."> <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation> <field name="OID">zigbee.0.00178801089dbdd5.state</field> <field name="WITH_DELAY">FALSE</field> <value name="VALUE"> <block type="logic_boolean" id="BLjY/+7,#35`j^vq|D3k"> <field name="BOOL">TRUE</field> </block> </value> </block> </statement> <next> <block type="schedule" id="?CO[5g6U/vU,~Qv/@n]Q"> <field name="SCHEDULE">{"time":{"start":"19:00","exactTime":true},"valid":{"from":"11.12.2023"},"period":{"months":"[8]"}}</field> <statement name="STATEMENT"> <block type="control" id="?]c=Q4GP~z-?KkQ9#2CO"> <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation> <field name="OID">zigbee.0.00178801089dbdd5.state</field> <field name="WITH_DELAY">FALSE</field> <value name="VALUE"> <block type="logic_boolean" id="_7f%9*tV:3aF|8#W6^2s"> <field name="BOOL">FALSE</field> </block> </value> </block> </statement> </block> </next> </block> </next> </block> </next> </block> </next> </block> </next> </block> </next> </block> </next> </block> </next> </block> </next> </block> </next> </block> </next> </block> </xml>@horst-böttcher Ja - für jedes Zeitintervall zwei Triggerpunkte setzen. Ich mache das aber immer vorzugsweise mit der CRON-Notation - die ist kürzer, und für mich Grufti auch gewohnter ;-)
Hier der Juni, wo Du möchtest, dass 13 Stunden pro Tag das Licht an ist...

Minute = 0, Stunde = 8, Tag=Egal, Monat = 6, Jahr = Egal => Im Juni wird täglich um 8:00 das Licht eingeschaltet
Minute = 0, Stunde = 21, Tag=Egal, Monat = 6, Jahr = Egal => Im Juni wird täglich um 21:00 das Licht ausgeschaltet21 - 8 = 13 Stunden....
-
Hallo ich zebreche mir seid einieger zeit den kopf wie ich den zeitpalan mit einem Blockly script umsetzen kann
es ist für eine steckdose

-
@paul53 Respekt für den wüsten Trick mit dem Verwursten des An/Ausschaltens in einem Cron-Job ;-)
Bei so etwas habe ich manchmal etwas Bedenken - spätestens, wenn man ein paar Wochen später über seinen Ideen brütet, und denkt "was habe ich mir damals bloß dabei gedacht...".
Aber das hier habe sogar ich begriffen ;-)
P.S. um den November müsste man sich wohl in besonderer Weise kümmern - mir scheint, dass es da einen gleitenden Übergang von 5 Stunden Tageslicht auf 0 Stunden am Ende des Monats geben soll ;-)
Hey! Du scheinst an dieser Unterhaltung interessiert zu sein, hast aber noch kein Konto.
Hast du es satt, bei jedem Besuch durch die gleichen Beiträge zu scrollen? Wenn du dich für ein Konto anmeldest, kommst du immer genau dorthin zurück, wo du zuvor warst, und kannst dich über neue Antworten benachrichtigen lassen (entweder per E-Mail oder Push-Benachrichtigung). Du kannst auch Lesezeichen speichern und Beiträge positiv bewerten, um anderen Community-Mitgliedern deine Wertschätzung zu zeigen.
Mit deinem Input könnte dieser Beitrag noch besser werden 💗
Registrieren Anmelden
