Ankündigung

Einklappen
Keine Ankündigung bisher.

linknx persistence file [newbie]

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

    linknx persistence file [newbie]

    I'm doing my first steps with eibd and linknx. Both have compiled and are running. I can write group addresses with "groupswrite" and in /var/log/linknx.log I see "New value on for object test_on_off (type: 1.001)".

    But I don't see where the state of this object is saved. I would guess under /var/lib/linknx/persist directory. But although this directory is r/w for everybody, the directory remains empty.

    In linknx.xml I've written
    Code:
    <persistence type="file" path="/var/lib/linknx/persist"/>
    <object type="1.001" id="test_on_off" gad="0/1/6" init="request"><listener gad="2/1/6"/>HomeLivingFireplace</object>
    What am I missing?

    Tx - Ivan

    #2
    Hi,

    you have to say init="persist" in your object definition.

    Regards, Waldemar
    OpenKNX www.openknx.de

    Kommentar


      #3
      Tx - solved.

      I thought that I had to use "request" to request the status of a light the first time linknx is started.

      If I use "persist" how do I know if the status of a light is on or off at the time linknx is initiated?

      BTW: I don't mind if you respond in German.

      Ivan

      Kommentar


        #4
        Hi,

        you are completely right - the init property allows you to define the behaviour at startup. And it is as you stated - "request" reads the value for the object from bus; "persist" reads it from a file.

        I depends on what you want! So - to be honest - I don't really understand your problem. I thought you want to persist the state for the next startup? If you request the value from bus, you don't need a persistence on disk!

        Probably you should describe, what you want to do and I can help you solving this.

        Regards,
        Waldemar
        OpenKNX www.openknx.de

        Kommentar

        Lädt...
        X