Ankündigung

Einklappen
Keine Ankündigung bisher.

- √ - Funktion sunrise in LinKNX

Einklappen
X
 
  • Filter
  • Zeit
  • Anzeigen
Alles löschen
neue Beiträge

    KNX/EIB - √ - 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 Dateien

    #2
    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:

    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]
    In der GA/id Tag steht entweder wahr/on oder false/off.

    Viele Grüße
    Matthias

    Kommentar


      #3
      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.

      Kommentar


        #4
        Versuch mal an den Rules noch ein init="eval" einzufügen.
        Bin unterwegs, kann nicht testen, mehr erst am Montag.
        Gruß, Waldemar
        OpenKNX www.openknx.de

        Kommentar


          #5
          bei mir funktioniert

          Code:
                  
                  <object type="1.001" id="tagnacht" gad="3/1/1">Tag-Nacht-Objekt (Tag=1)</object>
          und
          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>
          problemlos.

          Gruss,
          Michael

          Kommentar


            #6
            Zitat von Knaller Beitrag anzeigen
            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.
            Dann liegt es vermutlich nicht an der rule, sondern an der object definition. Was hast Du da für das Objekt eingetragen?

            Die Lösung von mir und Michael ist ja quasi das selbe.

            Kommentar


              #7
              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

              Kommentar


                #8
                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

                Kommentar


                  #9
                  um den Thread abzuschliessen und die Information für alle verfügbar zu haben:

                  was war denn falsch?

                  schönes WE
                  Michael

                  Kommentar


                    #10
                    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

                    Kommentar

                    Lädt...
                    X