Flags richtig setzen
Moin
Es gibt di Flags crwtufs und die sollten schon gesetzt sein vor allem w wie write
und mit s muss man auf passen
Gruß Herbert
Ankündigung
Einklappen
Keine Ankündigung bisher.
- √ - Funktion sunrise in LinKNX
Einklappen
X
-
um den Thread abzuschliessen und die Information für alle verfügbar zu haben:
was war denn falsch?
schönes WE
Michael
Einen Kommentar schreiben:
-
JetA1 hatte recht
Moin
JetA1 hatte recht. Ich hatte die objektdefinition verbogen.
Ich hab jetzt erst mal auf geräumt.
Mit Notpad++ mal alles so zurecht gerückt, das ich alles besser lesen kann.
Jetzt brauch ich aber einen 20:9 Bildschirm um das Einrücken richtig zumachen.
Gruß Herbert
Einen Kommentar schreiben:
-
Es ist klar das diese Regeln nur zweimal am Tag ausgeführt werden?
Oder willst Du dieses Objekt öfter auf dem Bus haben?
Grundsätzlich senden klappt? Wenn unsicher: Setz doch mal die Uhrzeit auf "every 60", dann müsste alle Minute die Uhrzeit kommen (und in der ETS im Gruppenmonitor erscheinen sowie im log)
Michael
Einen Kommentar schreiben:
-
Dann liegt es vermutlich nicht an der rule, sondern an der object definition. Was hast Du da für das Objekt eingetragen?Zitat von Knaller Beitrag anzeigenMoin
Hab die Rule geändert.
Aber das Bit wird nicht auf dem Bus gesetzt.
Im ETS Monitor sehe ich nix.
Ich versteh hier im Moment nix
Hab auch mal die ID gewechselt.
Die Lösung von mir und Michael ist ja quasi das selbe.
Einen Kommentar schreiben:
-
bei mir funktioniert
undCode:<object type="1.001" id="tagnacht" gad="3/1/1">Tag-Nacht-Objekt (Tag=1)</object>
problemlos.Code:<rule id="nacht_umschaltung"> <condition type="timer" trigger="true"> <at type="sunset" wdays="1234567"/> </condition> <actionlist> <action type="set-value" id="tagnacht" value="0" /> </actionlist> </rule> <rule id="tag_umschaltung"> <condition type="timer" trigger="true"> <at type="sunrise" wdays="1234567"/> </condition> <actionlist> <action type="set-value" id="tagnacht" value="1" /> </actionlist> </rule>
Gruss,
Michael
Einen Kommentar schreiben:
-
Versuch mal an den Rules noch ein init="eval" einzufügen.
Bin unterwegs, kann nicht testen, mehr erst am Montag.
Gruß, Waldemar
Einen Kommentar schreiben:
-
Keine Aktivität auf dem Bus
Moin
Hab die Rule geändert.
Aber das Bit wird nicht auf dem Bus gesetzt.
Im ETS Monitor sehe ich nix.
Ich versteh hier im Moment nix
Hab auch mal die ID gewechselt.
Gruß Herbert
2013-07-12 06:55:48 [ INFO] Action: SetValueAction: Configured for object light_somewhere with value on
2013-07-12 06:55:48 [ INFO] Rule: ActionList: Configuring 'on-false' action list
2013-07-12 06:55:48 [ INFO] Action: SetValueAction: Configured for object light_somewhere with value off
2013-07-12 06:55:48 [ INFO] Rule: Rule: Configuration done
2013-07-12 06:55:48 [ INFO] Rule: Rule: Configuring St_Nacht (active=1)
2013-07-12 06:55:48 [ INFO] TimeSpec: 1899-0--1 -1:-1:0 (wdays=0; exception=2)
2013-07-12 06:55:48 [ INFO] TimeSpec: 1899-0--1 -1:-1:0 (wdays=0; exception=2)
2013-07-12 06:55:48 [ INFO] SolarTimeSpec: sun_rise_set date 2013-7-12
2013-07-12 06:55:48 [ INFO] SolarTimeSpec: sun_rise_set returned 5:32
2013-07-12 06:55:48 [ INFO] SolarTimeSpec: adjustTime date 2013-7-13
2013-07-12 06:55:48 [ INFO] SolarTimeSpec: adjustTime returned 5:33
2013-07-12 06:55:48 [ INFO] SolarTimeSpec: sun_rise_set date 2013-7-12
2013-07-12 06:55:48 [ INFO] SolarTimeSpec: sun_rise_set returned 21:47
2013-07-12 06:55:48 [ INFO] SolarTimeSpec: adjustTime date 2013-7-12
2013-07-12 06:55:48 [ INFO] SolarTimeSpec: adjustTime returned 21:47
2013-07-12 06:55:48 [ INFO] PeriodicTask: Rescheduled at 2013-7-12 21:47:0 (1373658420)
2013-07-12 06:55:48 [ INFO] Rule: ActionList: Configuring 'on-true' action list
2013-07-12 06:55:48 [ INFO] Action: SetValueAction: Configured for object St_Tag with value off
2013-07-12 06:55:48 [ INFO] Rule: Rule: Configuration done
2013-07-12 06:55:48 [ INFO] Rule: Rule: Configuring St_Tag (active=1)
2013-07-12 06:55:48 [ INFO] TimeSpec: 1899-0--1 -1:-1:0 (wdays=0; exception=2)
2013-07-12 06:55:48 [ INFO] TimeSpec: 1899-0--1 -1:-1:0 (wdays=0; exception=2)
2013-07-12 06:55:48 [ INFO] SolarTimeSpec: sun_rise_set date 2013-7-12
2013-07-12 06:55:48 [ INFO] SolarTimeSpec: sun_rise_set returned 21:47
2013-07-12 06:55:48 [ INFO] SolarTimeSpec: adjustTime date 2013-7-12
2013-07-12 06:55:48 [ INFO] SolarTimeSpec: adjustTime returned 21:47
2013-07-12 06:55:48 [ INFO] SolarTimeSpec: sun_rise_set date 2013-7-12
2013-07-12 06:55:48 [ INFO] SolarTimeSpec: sun_rise_set returned 5:32
2013-07-12 06:55:48 [ INFO] SolarTimeSpec: adjustTime date 2013-7-13
2013-07-12 06:55:48 [ INFO] SolarTimeSpec: adjustTime returned 5:33
2013-07-12 06:55:48 [ INFO] PeriodicTask: Rescheduled at 2013-7-12 21:47:0 (1373658420)
2013-07-12 06:55:48 [ INFO] Rule: ActionList: Configuring 'on-true' action list
2013-07-12 06:55:48 [ INFO] Action: SetValueAction: Configured for object St_Tag with value on
2013-07-12 06:55:48 [ INFO] Rule: Rule: Configuration done
2013-07-12 06:55:48 [ INFO] main: Config file loaded: /var/lib/linknx/linknx.xml
2013-07-12 06:55:48 [ INFO] KnxConnection: KnxConnection: Group socket opened. Waiting for messages.
Einen Kommentar schreiben:
-
Der Syntax ist grundsätzlich soweit richtig. Allerdings wäre es eher sinnvoll eine einzige GA/id zu verwenden, die den Status Tag/Nacht beinhaltet. Ich habe das bei mir so gelöst:
In der GA/id Tag steht entweder wahr/on oder false/off.Code:[FONT=Tahoma] <rule id="Nacht">[/FONT] [FONT=Tahoma] <condition type="timer" trigger="true">[/FONT] [FONT=Tahoma] <at type="sunset" offset="0"/>[/FONT] [FONT=Tahoma] <until type="sunrise"/>[/FONT] [FONT=Tahoma] </condition>[/FONT] [FONT=Tahoma] <actionlist>[/FONT] [FONT=Tahoma] <action type="set-value" id="Tag" value="0"/>[/FONT] [FONT=Tahoma]</actionlist>[/FONT] [FONT=Tahoma] </rule>[/FONT] [FONT=Tahoma] <rule id="Tag">[/FONT] [FONT=Tahoma] <condition type="timer" trigger="true">[/FONT] [FONT=Tahoma] <at type="sunrise" offset="0"/>[/FONT] [FONT=Tahoma] <until type="sunset"/>[/FONT] [FONT=Tahoma] </condition>[/FONT] [FONT=Tahoma] <actionlist>[/FONT] [FONT=Tahoma] <action type="set-value" id="Tag" value="1"/>[/FONT] [FONT=Tahoma]</actionlist>[/FONT] [FONT=Tahoma] </rule>[/FONT]
Viele Grüße
Matthias
Einen Kommentar schreiben:
-
- √ - Funktion sunrise in LinKNX
Moin
Ich hab mal wieder ein Verständnisproblem.
Ich würde gerne je eine Gruppenadresse mit Tag und Nacht beschreiben
Irgendwie klemmt es.
Gruß Herbert
<rule id="Tag">
<condition type="timer" trigger="true">
<at type="sunrise" offset="0" wdays="1234567"/>
<until type="sunset" wdays="1234567" offset="0"/>
</condition>
<actionlist>
<action type="set-value" id="Tag" value="on"/>
</actionlist>
<actionlist type="on-false">
<action type="set-value" id="Tag" value="off"/>
</actionlist>
</rule>
<rule id="Nacht">
<condition type="timer" trigger="true">
<at type="sunset" offset="0" wdays="1234567"/>
<until type="sunrise" wdays="1234567" offset="0"/>
</condition>
<actionlist>
<action type="set-value" id="Nacht" value="on"/>
</actionlist>
<actionlist type="on-false">
<action type="set-value" id="Nacht" value="off"/>
</actionlist>
</rule>Angehängte DateienStichworte: -


Einen Kommentar schreiben: