Ankündigung

Einklappen
Keine Ankündigung bisher.

Linknx auf dem WG läuft nicht

Einklappen
Dieses Thema ist geschlossen.
X
X
 
  • Filter
  • Zeit
  • Anzeigen
Alles löschen
neue Beiträge

    [wiregate] Linknx auf dem WG läuft nicht

    Hallo,

    ich möchte mit Linknx auf meinen WG, über das ich auch Zugriff auf den Bus habe, einige logische Verknüpfungen erstellen. Bekomme das ganze aber irgendwie nicht zum laufen.

    Der Inhalt der linknx.xml sieht folgendermaßen aus:

    <?xml version="1.0" ?>
    <config>


    <objects>
    <object id="Bad_Spot" gad="5/5/5" </object>
    <object id="Umwaelzpumpe_ww" gad="5/5/7" type="1.001" </object>
    </objects>
    <rules>
    <rule id="Bad_Spot_an">

    <condition type="object" id="Bad_Spot" trigger="true" value="1"/>
    <actionlist>
    <action type="set-value" id="Umwaelzpumpe_ww" value="1"/>
    </actionlist>
    </rule>


    </rules>
    <services>
    <knxconnection url="ip:localhost" />
    <xmlserver type="inet" port="1028"/>
    <emailserver type="smtp" host="smtp.myprovider.com:25" from="linknx@mydomain.com"/>
    <persistence type="file" path="/tmp"/>
    <exceptiondays>
    <date day="1" month="1" />
    <date day="1" month="5" />
    <date day="1" month="6" year="2009" />
    <date day="24" month="5" year="2010" />
    </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/>
    </config

    Habe Linknx über den Webmin neu gestartet, bekomme aber keine "1" als Reaktion auf 5/5/7 gesendet. Woran kann ich erkennen ob Linknx überhaupt läuft.
    Was kann hier noch verkehrt laufen?

    Danke schon mal vor ab.
    Plusch

    #2
    Hoi

    XML-Verarbeitungsfehler: nicht wohlgeformt
    Adresse: file Dein-linknx.xml
    Zeile Nr. 6, Spalte 35:<object id="Bad_Spot" gad="5/5/5" </object>
    ----------------------------------^
    Und laufende Prozesse sieht man in der console (z. B. putty) mit:
    Code:
    ps ax
    Und die Objekts schauen so aus:
    Code:
    <?xml version="1.0" ?>
    <config>
      <objects>
      <!-- Licht schalten -->
        <object id="l_wc_spot"            gad="1/0/3"  type="1.001">Licht WC Spot</object>
        <object id="l_zimmer1"            gad="1/0/19" type="1.001">Licht Zimmer 1</object>
    ...
    Grüsse Bodo
    Fragen gehören ins Forum, und nicht in mein Postfach;
    EibPC-Fan; Wiregate-Fan; Timberwolf-Fan mit 30x 1-Wire Sensoren;

    Kommentar


      #3
      Ok, danke. Linknx lief bei mir nicht. Ich weiß allerdings auch nicht warum.
      Habe mir nun mal eine xml Datei zusammenkopiert.
      Code:
      <?xml version="1.0" ?>
      <config>
       
      <objects>
      <!-- Licht schalten -->
      <object id="1" gad="[FONT=Courier New][FONT=Courier New]5[/FONT][/FONT]/[FONT=Courier New][FONT=Courier New]5[/FONT][/FONT]/[FONT=Courier New][FONT=Courier New]5[/FONT][/FONT]" type="1.001">Licht [FONT=Courier New][FONT=Courier New]1[/FONT][/FONT]</object>
      <object id="[FONT=Courier New][FONT=Courier New]2[/FONT][/FONT]" gad="[FONT=Courier New][FONT=Courier New]5[/FONT][/FONT]/[FONT=Courier New][FONT=Courier New]5[/FONT][/FONT]/[FONT=Courier New][FONT=Courier New]6[/FONT][/FONT]" type="1.001">Licht [FONT=Courier New][FONT=Courier New]2[/FONT][/FONT]</object>
      [FONT=Courier New][FONT=Courier New]<object id="3" gad="5/5/7" type="1.001">Licht 3</object>[/FONT]
      [/FONT]<object id="treppenwandleuchten" gad="[FONT=Courier New][FONT=Courier New]2[/FONT][/FONT]/[FONT=Courier New][FONT=Courier New]2/222[/FONT][/FONT]" type="1.001">Treppenwandleuchten</object>
      </objects>
      <rules> 
      <rule id="TreppenWandleuchten">
      <condition type="or">
      <condition type="object" id="1" value="on" trigger="true" />
      <condition type="object" id="[FONT=Courier New][FONT=Courier New]2[/FONT][/FONT]" value="on" trigger="true" />
      [FONT=Courier New][FONT=Courier New]<condition type="object" id="3" value="on" trigger="true" />[/FONT]
      [/FONT]</condition>
      <actionlist>
      <action type="set-value" id="treppenwandleuchten" value="on" />
      <action type="set-value" id="treppenwandleuchten" delay="12" value="off" />
      </actionlist>
      </rule>
       
      </rules> 
      <services>
      <knxconnection url="ip:localhost" />
      <xmlserver type="inet" port="1028"/>
      <emailserver type="smtp" host="smtp.myprovider.com:25" from="linknx@mydomain.com"/>
      <persistence type="file" path="/tmp"/>
      <exceptiondays>
      <date day="1" month="1" />
      <date day="1" month="5" />
      <date day="1" month="6" year="2009" />
      <date day="24" month="5" year="2010" />
      </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/>
      </config>
      Diese funktioniert nicht wirklich. Eine Reaktion auf id 2+3 bekomme ich nie. Id 1 schaltet manchmal die Beleuchtung ein. Aber wann und wann nicht habe ich noch nicht herausgefunden, d.h. ich konnte hier noch kein System erkennen. Eigentlich sollte die Beleuchtung bei jeder id angehen, aber sie tut es nicht ....

      Kommentar


        #4
        So, nach einer Nacht darüber schlafen und einiger kleiner Änderungen funtioniert es nun.
        Wie bekomme ich es jetzt noch hin das bei jeder empfangenen "1" der Ausgang gesetzt wird. Im Moment ist es so das wenn id1 = 1 dann wird einmal der Ausgang gesetzt dann aber nicht nochmal bei eintreffen einer "1" egal auf welcher id. Erst das schreiben einer "0" in id1 führt dazu dass ich den Ausgang mit egal welcher id wieder einmalig setzen kann.

        Plusch

        Kommentar


          #5
          Hoi

          Ja das ist KNX, es passiert nur etwas wenn der Zustand nicht schon existiert.
          Grüsse Bodo
          Fragen gehören ins Forum, und nicht in mein Postfach;
          EibPC-Fan; Wiregate-Fan; Timberwolf-Fan mit 30x 1-Wire Sensoren;

          Kommentar


            #6
            War da gedanklich wohl eher noch beim zyklischen Programmablauf einer SPS ...
            Habe meine xml nun so angepasst das bei jeder "1" die rule ausgeführt wird. Das ganze hat zwar nicht all zu viel Sinn, aber mir geht es eher darum das ganze zu verstehen und um dann auch sinnigere Logiken erstellen zu können.

            Gruß Plusch

            Code:
            <?xml version="1.0" ?>
            <config>
             
             
            <objects>
            <!-- Licht schalten -->
            <object id="l" gad="5/5/5" type="1.001">Licht 1</object>
            <object id="2" gad="5/5/6" type="1.001">Licht 2</object>
            <object id="3" gad="5/5/7" type="1.001">Licht 3</object>
            <object id="treppenwandleuchten" gad="2/2/222" type="1.001">Treppenwandleuchten</object>
            </objects>
            <rules> 
            <rule id="TreppenWandleuchten">
            <condition type="or">
            <condition type="object" id="l" value="on" trigger="true" />
            <condition type="object" id="2" value="on" trigger="true" />
            <condition type="object" id="3" value="on" trigger="true" />
            </condition>
            <actionlist>
            [FONT=Courier New][FONT=Courier New]<action type="set-value" id="l" value="off" />[/FONT]
            [FONT=Courier New]<action type="set-value" id="2" value="off" />[/FONT]
            [FONT=Courier New]<action type="set-value" id="3" value="off" />[/FONT]
            [/FONT]<action type="set-value" id="treppenwandleuchten" value="on" />
            <action type="set-value" id="treppenwandleuchten" delay="12" value="off" />
            </actionlist>
            </rule>
             
            </rules> 
            <services>
            <knxconnection url="ip:localhost" />
            <xmlserver type="inet" port="1028"/>
            <emailserver type="smtp" host="smtp.myprovider.com:25" from="linknx@mydomain.com"/>
            <persistence type="file" path="/tmp"/>
            <exceptiondays>
            <date day="1" month="1" />
            <date day="1" month="5" />
            <date day="1" month="6" year="2009" />
            <date day="24" month="5" year="2010" />
            </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/>
            </config>

            Kommentar

            Lädt...
            X