Ankündigung

Einklappen
Keine Ankündigung bisher.

Verstehe die Logik von Linknx nicht

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

    Verstehe die Logik von Linknx nicht

    Hallo,

    ich habe meinen LinKNX auf der Dreambox laufen. Leider klappt die schaltung meiner Rollos nicht so wie gewünscht. Wenn ich teste geht, im dauerbetrieb nicht. Ich habe das Verzeichniss persist angelegt. Die Statis ändern sich wie gewünscht, egal ob vom Schalter oder über eibd. Ich wollte jetzt gerne zu einen das logging aktiviern und zum andern zu bestimmten Zeiten den Versand von E-mail um hinter das Problem zu kommen.

    1. Logging klappt nicht (siehe linknx)
    2. E-Mail Versand klappt aber eben genauso seltsam wie das zeitgesteuerte schalten

    Was mache ich falsch?

    <?xml version="1.0" encoding="UTF-8"?>
    <config>
    <services>
    <knxconnection url="ip:127.0.0.1" />
    <xmlserver type="inet" port="1028" />
    <persistence type="file" path="/etc/linknx/persist" />
    <emailserver type="smtp" host="mail.gmx.de:587" from="xxx.xxx@gmx.de" login="xxx" pass="xxxxxx"/>
    <exceptiondays>
    <date day="1" month="1" />
    <date day="1" month="5" />
    <date day="3" month="10" />
    <date day="25" month="12" />
    <date day="7" month="12" year="2012" />
    <date day="29" month="3" year="2013" />
    <date day="1" month="4" year="2013" />
    <date day="9" month="5" year="2013" />
    <date day="20" month="5" year="2013" />
    <date day="30" month="5" year="2013" />
    <date day="18" month="4" year="2014" />
    <date day="21" month="4" year="2014" />
    <date day="29" month="5" year="2014" />
    <date day="9" month="6" year="2014" />
    <date day="19" month="6" year="2014" />
    </exceptiondays>
    </services>
    <logging output="/tmp/linknx.log" format="%d{%Y-%m-%d %H:%M:%S,%l} %5p > %c %x - %m%n" level="DEBUG" maxfilesize=100 maxfileindex=2/>
    <objects>
    <object type="1.001" id="r_alle" gad="1/0/3" init="persist">rollo_alle</object>
    <object type="1.001" id="r_alle_stop" gad="1/0/4">rollo_alle_stop</object>
    <object type="1.001" id="schatten_front" gad="1/0/5">schatten_front</object>
    <object type="1.001" id="schatten_seite" gad="1/0/6">schatten_seite</object>
    <object type="1.001" id="schatten_garten" gad="1/0/7">schatten_garten</object>
    <object type="1.001" id="r_eg" gad="1/0/8" init="persist"><listener gad="1/0/3"></listener>rollo_eg</object>
    <object type="1.001" id="r_eg_stop" gad="1/0/9" init="persist">rollo_eg_stop</object>
    <object type="1.001" id="r_sz_garten" gad="1/2/0" init="persist"><listener gad="1/0/3"></listener>rollo_sz_garten</object>
    <object type="1.001" id="r_sz_garten_stop" gad="1/2/1" init="persist">rollo_sz_garten_stop</object>
    <object type="1.001" id="r_sz_bett" gad="1/2/2" init="persist"><listener gad="1/0/3"></listener>rollo_sz_bett</object>
    <object type="1.001" id="r_sz_bett_stop" gad="1/2/3" init="persist">rollo_sz_bett_stop</object>
    <object type="1.001" id="r_ankleide" gad="1/2/4" init="persist"><listener gad="1/0/3"></listener>rollo_ankleide</object>
    <object type="1.001" id="r_ankleide_stop" gad="1/2/5" init="persist">rollo_ankleide_stop</object>
    <object type="1.001" id="r_elternbad_garage" gad="1/2/6" init="persist"><listener gad="1/0/3"></listener>rollo_elternbad_garage</object>
    <object type="1.001" id="r_elternbad_garage_stop" gad="1/2/7" init="persist">rollo_elternbad_garage_stop</object>
    <object type="1.001" id="r_elternbad_front" gad="1/2/8" init="persist"><listener gad="1/0/3"></listener>rollo_elternbad_garage</object>
    <object type="1.001" id="r_elternbad_front_stop" gad="1/2/9" init="persist">rollo_elternbad_garage</object>
    <object type="1.001" id="r_flur_empfang" gad="1/2/10" init="persist"><listener gad="1/0/3"></listener>rollo_elternbad_garage</object>
    <object type="1.001" id="r_flur_empfang_stop" gad="1/2/11" init="persist">rollo_flur_empfang_stop</object>
    <object type="1.001" id="r_flur_garten" gad="1/2/12" init="persist"><listener gad="1/0/3"></listener>rollo_flur_garten</object>
    <object type="1.001" id="r_flur_garten_stop" gad="1/2/13" init="persist">rollo_flur_garten_stop</object>
    <object type="1.001" id="r_lucy_front" gad="1/2/14" init="persist"><listener gad="1/0/3"></listener>rollo_lucy_front</object>
    <object type="1.001" id="r_lucy_front_stop" gad="1/2/15" init="persist">rollo_lucy_front_stop</object>
    <object type="1.001" id="r_lucy_seite" gad="1/2/16" init="persist"><listener gad="1/0/3"></listener>rollo_lucy_seite</object>
    <object type="1.001" id="r_lucy_seite_stop" gad="1/2/17" init="persist">rollo_lucy_seite_stop</object>
    <object type="1.001" id="r_duschbad" gad="1/2/18" init="persist"><listener gad="1/0/3"></listener>rollo_duschbad</object>
    <object type="1.001" id="r_duschbad_stop" gad="1/2/19" init="persist">rollo_duschbad_stop</object>
    <object type="1.001" id="r_atelier_seite" gad="1/2/20" init="persist"><listener gad="1/0/3"></listener>rollo_atelier_seite</object>
    <object type="1.001" id="r_atelier_seite_stop" gad="1/2/21" init="persist">rollo_atelier_seite_stop</object>
    <object type="1.001" id="r_atelier_garten" gad="1/2/22" init="persist"><listener gad="1/0/3"></listener>rollo_atelier_garten</object>
    <object type="1.001" id="r_atelier_garten_stop" gad="1/2/23" init="persist">rollo_atelier_garten_stop</object>
    <object type="1.001" id="r_wz" gad="1/2/24" init="persist"><listener gad="1/0/3"></listener>rollo_wz</object>
    <object type="1.001" id="r_wz_stop" gad="1/2/25" init="persist">rollo_wz_stop</object>
    <object type="1.001" id="r_terasse" gad="1/2/26" init="persist"><listener gad="1/0/3"></listener>rollo_terasse</object>
    <object type="1.001" id="r_terasse_stop" gad="1/2/27" init="persist">rollo_terasse_stop</object>
    <object type="1.001" id="r_ez_garten" gad="1/2/28" init="persist"><listener gad="1/0/3"></listener>rollo_ez_garten</object>
    <object type="1.001" id="r_ez_garten_stop" gad="1/2/29" init="persist">rollo_ez_garten_stop</object>
    <object type="1.001" id="r_ez_seite" gad="1/2/30" init="persist"><listener gad="1/0/3"></listener>rollo_ez_seite</object>
    <object type="1.001" id="r_ez_seite_stop" gad="1/2/31" init="persist">rollo_ez_seite_stop</object>
    <object type="1.001" id="r_kueche" gad="1/2/32" init="persist"><listener gad="1/0/3"></listener>rollo_kueche</object>
    <object type="1.001" id="r_kueche_stop" gad="1/2/33" init="persist">rollo_kueche_stop</object>
    <object type="1.001" id="r_wc_seite" gad="1/2/34" init="persist"><listener gad="1/0/3"></listener>rollo_wc_seite</object>
    <object type="1.001" id="r_wc_seite_stop" gad="1/2/35" init="persist">rollo_wc_seite_stop</object>
    <object type="1.001" id="r_wc_front" gad="1/2/36" init="persist"><listener gad="1/0/3"></listener>rollo_wc_front</object>
    <object type="1.001" id="r_wc_front_stop" gad="1/2/37" init="persist">rollo_wc_front_stop</object>
    <object type="1.001" id="r_gaderobe" gad="1/2/38" init="persist"><listener gad="1/0/3"></listener>rollo_gaderobe</object>
    <object type="1.001" id="r_gaderobe_stop" gad="1/2/39" init="persist">rollo_gaderobe_stop</object>
    <object type="1.001" id="r_buero_rechts" gad="1/2/40" init="persist"><listener gad="1/0/3"></listener>rollo_buero_rechts</object>
    <object type="1.001" id="r_buero_rechts_stop" gad="1/2/41" init="persist">rollo_terasse_stop</object>
    <object type="1.001" id="r_buero_links" gad="1/2/42" init="persist"><listener gad="1/0/3"></listener>rollo_buero_links</object>
    <object type="1.001" id="r_buero_links_stop" gad="1/2/43" init="persist">rollo_buero_links_stopp</object>
    <object type="1.001" id="l_alle" gad="1/0/2" init="persist">licht_alle</object>
    <object type="1.001" id="l_eg" gad="1/0/10">licht_eg</object>
    <object type="1.001" id="l_wz_indirekt" gad="1/0/11" init="persist">licht_wz_indirekt</object>
    <object type="1.001" id="l_schlaf_decke" gad="1/1/0" init="persist">licht_schlaf_decke</object>
    <object type="1.001" id="l_schlaf_indirekt" gad="1/1/1" init="persist">licht_schlaf_indirekt</object>
    <object type="1.001" id="l_og_flur_decke" gad="1/1/2" init="persist">licht_og_flur_decke</object>
    <object type="1.001" id="l_og_flur_wand" gad="1/1/3" init="persist">licht_og_flur_wand</object>
    <object type="1.001" id="l_treppe" gad="1/1/4" init="persist">licht_treppe</object>
    <object type="1.001" id="l_empfang_decke" gad="1/1/5" init="persist">licht_empfang_decke</object>
    <object type="1.001" id="l_flur_kueche_decke" gad="1/1/7" init="persist">licht_flur_kueche_decke</object>
    <object type="1.001" id="l_kueche_decke" gad="1/1/8" init="persist">licht_kueche_decke</object>
    <object type="1.001" id="l_ez_decke" gad="1/1/9" init="persist">licht_ez_decke</object>
    <object type="1.001" id="l_eg_indirekt" gad="1/1/10" init="persist">licht_eg_indirekt</object>
    <object type="1.001" id="l_ez_wand" gad="1/1/11" init="persist">licht_ez_wand</object>
    <object type="1.001" id="l_wz_decke" gad="1/1/12" init="persist">licht_wz_decke</object>
    <object type="1.001" id="l_wz_wand" gad="1/1/13" init="persist">licht_wz_wand</object>
    <object type="1.001" id="l_ankleide_decke" gad="1/1/14" init="persist">licht_ankleide_decke</object>
    <object type="1.001" id="s_tv_sz" gad="1/4/0" init="persist">schalten_tv_sz</object>
    <object type="1.001" id="s_wlan" gad="1/4/1" init="persist">schalten_wlan</object>
    <object type="1.001" id="s_auto" gad="1/4/2" init="persist">schalten_auto</object>
    <object type="1.001" id="s_bewaesserung" gad="1/4/3" init="persist">schalten_bewaesserung</object>
    <object type="1.001" id="s_u_pumpe" gad="1/4/5" init="persist">schalten_u_pumpe</object>
    <object type="1.001" id="s_tuer" gad="1/7/0" init="persist">schalten_tuer</object>
    <object type="20.102" id="h_wechsel" gad="1/0/0" init="persist">heiz_wechsel</object>
    <object type="20.102" id="h_standby" gad="1/3/9" init="persist">heiz_standby</object>
    <object type="20.102" id="h_nacht" gad="1/3/10" init="persist">heiz_nacht</object>
    <object type="20.102" id="h_komfort" gad="1/3/11" init="persist">heiz_komfort</object>
    <object type="9.xxx" id="t_sz" gad="1/5/0" init="persist">temp_sz</object>
    <object type="9.xxx" id="t_elternbad" gad="1/5/1"init="persist">temp_elternbad</object>
    <object type="9.xxx" id="t_lucy" gad="1/5/2" init="persist">temp_lucy</object>
    <object type="9.xxx" id="t_gaestebad" gad="1/5/3" init="persist">temp_gaestebad</object>
    <object type="9.xxx" id="t_atelier" gad="1/5/4" init="persist">temp_atelier</object>
    <object type="9.xxx" id="t_flur_og" gad="1/5/5" init="persist">temp_flur_og</object>
    <object type="9.xxx" id="t_buero" gad="1/5/6" init="persist">temp_buero</object>
    <object type="9.xxx" id="t_wc" gad="1/5/7" init="persist">temp_wc</object>
    <object type="9.xxx" id="t_eg" gad="1/5/8" init="persist">temp_eg</object>
    <object type="10.001" id="cur_time" gad="1/6/0">Current Time</object>
    <object type="11.001" id="cur_date" gad="1/6/1" flags="cwtuf">Current Date</object>
    </objects>
    <rules>
    <rule id="cur_time_date">
    <condition type="timer" trigger="true">
    <every>1h</every>
    </condition>
    <actionlist>
    <action type="set-value" id="cur_time" value="now" />
    <action type="set-value" id="cur_date" value="now" />
    </actionlist>
    </rule>
    <rule id="r_alle">
    <condition type="and">
    <condition type="timer" trigger="true">
    <at hour="17" min="30" exception="no" wdays="12345" />
    <until hour="7" min="00" />
    </condition>
    <condition type="timer" trigger="true">
    <at hour="17" min="30" exception="yes" wdays="12345" />
    <until hour="9" min="00" />
    </condition>
    <condition type="timer" trigger="true">
    <at hour="17" min="30" wdays="67" />
    <until hour="9" min="00" />
    </condition>
    </condition>
    <actionlist>
    <action type="set-value" id="r_alle" value="on" />
    <action type="send-email" to="xxxx@xxxx.de" subject="KNX-Test" >Rollo runter</action>
    </actionlist>
    <actionlist type="on-false">
    <action type="set-value" id="r_alle" value="off" />
    <action type="send-email" to="xxxx@xxxx.de" subject="KNX-Test" >Rollo hoch</action>
    </actionlist>
    </rule>
    <rule id="s_u_pumpe">
    <condition type="and">
    <condition type="timer" trigger="true">
    <at hour="5" min="05" exception="no" wdays="12345" />
    <until hour="10" min="25" />
    </condition>
    <condition type="timer" trigger="true">
    <at hour="15" min="45" exception="no" wdays="12345" />
    <until hour="22" min="55" />
    </condition>
    <condition type="timer" trigger="true">
    <at hour="6" min="30" exception="no" wdays="67" />
    <until hour="23" min="50" />
    </condition>
    <condition type="timer" trigger="true">
    <at hour="6" min="30" exception="yes" wdays="12345" />
    <until hour="23" min="50" />
    </condition>
    </condition>
    <actionlist>
    <action type="set-value" id="s_u_pumpe" value="on" />
    <action type="send-email" to="xxxx@xxxx.de" subject="KNX-Test" >Pumpe an</action>
    </actionlist>
    <actionlist type="on-false">
    <action type="set-value" id="s_u_pumpe" value="off" />
    <action type="send-email" to="xxxx@xxxx.de" subject="KNX-Test" >Pumpe aus</action>
    </actionlist>
    </rule>
    <rule id="Nachtabschaltung">
    <condition type="and">
    <condition type="timer" trigger="true">
    <at hour="00" min="00" wdays="1234567" />
    </condition>
    </condition>
    <actionlist>
    <action type="set-value" id="s_tv_sz" value="off" />
    <action type="send-email" to="xxxx@xxxx.de" subject="KNX-Test" >TV aus</action>
    </actionlist>
    </rule>
    <rule id="Test_hoch_I">
    <condition type="and">
    <condition type="timer" trigger="true">
    <at hour="00" min="01" wdays="1234567" />
    <until hour="00" min="02" />
    </condition>
    </condition>
    <actionlist>
    <action type="send-email" to="xxxx@xxxx.de" subject="KNX-Test" >true also Test Rollo hoch off</action>
    </actionlist>
    <actionlist type="on-false">
    <action type="send-email" to="xxxx@xxxx.de" subject="KNX-Test" >false also Test II Rollo runter on</action>
    </actionlist>
    </rule>
    </rules>
    </config>

    #2
    Hi,

    zuerst kann ich Dir nur sagen, dass die logging Zeile syntaktisch nicht korrekt ist (sieht man sofort, wenn man einen xml-Editor benutzt - kann ich nur empfehlen):
    Code:
      <logging output="/tmp/linknx.log" format="%d{%Y-%m-%d %H:%M:%S,%l} %5p > %c %x - %m%n" level="DEBUG" maxfilesize="100" maxfileindex="2"/>
    (Es fehlten die " bei den Zahlen).

    Und Du musst natürlich auf /tmp/linknx.log schreiben dürfen...

    Ansonsten wäre es nicht schlecht, zu sagen, was nicht funktioniert und wie es funktionieren soll - vor allem, weil Deine Logik nicht unbedingt klein ist...

    Gruß, Waldemar
    OpenKNX www.openknx.de

    Kommentar


      #3
      Verstehe die Logik von Linknx nicht

      Danke, ich passe die Zeile an.

      Die Rollos fahren nach dem Neustart des Linux einmal zur gewünschten Zeit runter und wieder hoch das war es, danach muss ich den Linux wieder neu starten. Ist zum verrückt werden.

      Die Test Mails nachts kommen gar nicht

      Danke Gruß
      Der Techniker

      Kommentar


        #4
        Hi,

        ich hab nochmal geschaut: Die einzelnen timer-conditions hast Du über and verbunden - Du willst aber or. Allerdings dürfte es unter dieser Bedingung gar nicht gehen. Ich würde trotzdem als erstes das or versuchen.

        Ich würde auch bei jedem until, der zu einem at mit wdays steht, auch ein wdays hinzufügen. Wird aber auch nicht bei diesem Problem helfen, sondern sorgt nur für das "richtige" Verhalten, wenn Du mal linknx restartest und die Zeit mitteln in einem der at-until-Intervalle liegt.

        Mehr weiss ich nicht im Augenblick... Falls es noch immer nicht klappt, dann musst Du das Logfile analysieren - damit hab ich bisher alle meine Probleme lösen können.

        Gruß, Waldemar
        OpenKNX www.openknx.de

        Kommentar


          #5
          Zitat von Techniker Beitrag anzeigen
          Die Rollos fahren nach dem Neustart des Linux einmal zur gewünschten Zeit runter und wieder hoch das war es, danach muss ich den Linux wieder neu starten. Ist zum verrückt werden.

          Die Test Mails nachts kommen gar nicht
          Deine Rules sind im Post wirklich schwer zu lesen, aber auf den zweiten Blick vermute ich da einige logische Fehler.

          Rule r_alle: wird immer falsch sein, es kann nicht gleichzeitig Days 12345 und 67 sein, wahrscheinlich meinst du Verknüpfung mit or.
          Selbes Problem mit Rule s_u_pumpe.
          Rules
          Nachtabschaltung und Test_hoch_I: AND-Verknüpfung mit einem Element, weiss nicht ob das geht.

          Für das Debugging empfehle ich das Verfolgen im Logfile. Wenns mit deiner Definition nicht klappt, versuche es mal mit einer einfachen Definition <logging format="basic" level="INFO" />

          Gruss, Othmar



          EIB/KNX, VISU mit knxd + linknx + knxweb, Steuerbefehle via SMS und Email mit postfix + procmail

          Kommentar


            #6
            Verstehe die Logik von Linknx nicht

            Danke. Werde ich mal versuchen.

            Kommentar


              #7
              So, danke. Habe alle Anpassungen durchgefürt. Jetzt bin ich mal gespannt.

              Gruß,
              Der techniker

              Kommentar

              Lädt...
              X