Ankündigung

Einklappen
Keine Ankündigung bisher.

wie auf KNX Impuls reagieren

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

    wie auf KNX Impuls reagieren

    Hallo,

    um es noch mal an der richtigen Stelle zu formulieren:
    ich möchte eine kleine Logik machen um auf ein Bus KO 1/2/100
    zu reagieren und das KO 1/2/60 analog zu schalten (1/2/60:= 1/2/100)

    Wos teckt der Fehler?

    #items.conf

    ['buero']
    [['light']]
    type = bool
    knx_dpt = 1
    knx_listen = 1/2/100
    knx_init = 1/2/100
    [['alarm']]
    type = bool
    knx_dpt = 1
    knx_send = 1/2/60
    eval = sh.buero.light() /// eval = value geht auch nicht
    eval_trigger = buero.light

    #2
    Hallo Uwe,

    welches Image verwendest Du?
    Das Beta, oder das alte?

    Bei dem alten muss Du erst noch ein Update durchführen 'smartupdate.sh', ich habe da vor kurzem was bei dem KNX-Plugin verändert das hierfür notwendig ist. Ich dachte Du verwendest das Beta-Image.

    Folgender Code
    Code:
    [buero]
        [[light]]
            type = bool
            knx_dpt = 1
            knx_listen = 1/2/100
            knx_init = 1/2/100
            knx_send = 1/2/60
    funktioniert damit.

    Bis bald

    Marcus

    P.S. bei Deinem eval müsste das eval so aussehen:
    eval = sh.buero.light()

    Kommentar


      #3
      Hi Marcus,

      ich habe das 2013-05-28.beta.img

      denke mal das ist das neue (-:

      Die fehlende Klammer hat nicht geholfen - die hatte ich schon entdeckt.

      und auch :

      Code:
      #items.conf
      
      ['buero']
          [['light']]
              type = bool
              knx_dpt = 1
              knx_listen = 1/2/100
              knx_init = 1/2/100
              knx_send = 1/2/60
      geht nicht?

      im Debugger sehe ich nur dass sich 1/2/100 ändert - sonst nichts...

      mal was ganz grundsätzliches: in /usr/smarthome/etc bin ich richtig?
      in der Doku steht
      /usr/local/smarthome/etc/
      aber in /usr/local/ gibt es kein smarthome Verzeichnis...

      Uwe

      Kommentar


        #4
        Hallo Uwe,

        ja, das Verzeichnis /usr/smarthome(/etc) passt.


        Also ich habe bei mir nur folgende Knotig auf dem aktuellen Pi-Image, das Du auch verwendest, eingespielt.

        Code:
        [buero]
            [[light]]
                type = bool
                knx_dpt = 1
                knx_listen = 1/2/100
                knx_init = 1/2/100
                knx_send = 1/2/60
        Dann habe ich mit:
        Code:
        groupswrite ip:127.0.0.1 1/2/100 1
        umgeschalten und folgendes im Log stehen.

        Code:
        2013-06-02 18:33:28,882 SmartHome.py DEBUG    0.0.1 set 1/2/100 to True -- __init__.py:parse_telegram:177
        2013-06-02 18:33:28,887 SmartHome.py DEBUG    buero.light = True via KNX 0.0.1 -- item.py:_update:214
        2013-06-02 18:33:28,901 SmartHome.py DEBUG    0.0.1 set 1/2/60 to 1 -- __init__.py:parse_telegram:172
        Bitte einmal das ganze Programm: https://knx-user-forum.de/smarthome-...rbehebung.html

        Bis bald
        Marcus

        Kommentar


          #5
          Hi Marcus,

          zur sicherheit habe ich deine config in meine items.conf kopiert...

          debug:
          Code:
          admin@smarthome:/usr/smarthome$ /usr/smarthome/bin/smarthome.py -d -n
          2013-06-02 19:06:42,668 SmartHome.py INFO     Start SmartHome.py 0.8-169-gf39d59c -- smarthome.py:__init__:192
          2013-06-02 19:06:42,673 SmartHome.py DEBUG    Python 2.7.3 -- smarthome.py:__init__:193
          2013-06-02 19:06:42,680 SmartHome.py INFO     Init Scheduler -- scheduler.py:__init__:53
          2013-06-02 19:06:42,685 SmartHome.py INFO     Init Plugins -- smarthome.py:__init__:208
          2013-06-02 19:06:42,696 SmartHome.py DEBUG    Plugin: knx -- plugin.py:__init__:42
          2013-06-02 19:06:42,698 Scheduler    DEBUG    creating 5 workers -- scheduler.py:run:59
          2013-06-02 19:06:42,729 SmartHome.py DEBUG    Plugin: visu -- plugin.py:__init__:42
          2013-06-02 19:06:42,830 SmartHome.py DEBUG    Plugin: dmx -- plugin.py:__init__:42
          2013-06-02 19:06:42,878 SmartHome.py ERROR    Could not open /dev/usbtty-1-2.4. -- __init__.py:__init__:41
          2013-06-02 19:06:42,885 SmartHome.py INFO     Init Items -- smarthome.py:__init__:210
          2013-06-02 19:06:43,062 SmartHome.py DEBUG    knx: second.sleeping.light.level listen on 3/2/14 -- __init__.py:parse_item:222
          2013-06-02 19:06:43,067 SmartHome.py DEBUG    knx: Light listen on 3/2/12 -- __init__.py:parse_item:222
          2013-06-02 19:06:43,260 SmartHome.py INFO     Start Plugins -- plugin.py:start:63
          2013-06-02 19:06:43,279 SmartHome.py INFO     Start Logics -- logic.py:__init__:32
          2013-06-02 19:06:43,283 SmartHome.py DEBUG    reading logics from /usr/smarthome/etc/logic.conf -- logic.py:__init__:38
          2013-06-02 19:06:43,296 SmartHome.py DEBUG    Logic: hello -- logic.py:__init__:45
          2013-06-02 19:06:43,375 visu         DEBUG    series next time: 2013-06-02 19:06:50+02:00 -- scheduler.py:_next_time:238
          2013-06-02 19:06:43,397 sh.con       DEBUG    knx: enable group monitor -- __init__.py:handle_connect:106
          2013-06-02 19:06:43,403 sh.con       INFO     KNX: connected to 127.0.0.1:6720 -- my_asynchat.py:connect:69
          2013-06-02 19:06:43,460 sh.gc        DEBUG    Garbage collector: collected 786 objects. -- smarthome.py:_garbage_collection:345
          2013-06-02 19:06:43,590 Scheduler    DEBUG    sh.gc next time: 2013-06-03 02:04:00+02:00 -- scheduler.py:_next_time:238
          2013-06-02 19:06:46,948 SmartHome.py DEBUG    1.1.9 set 5/1/104 to 0 0 -- __init__.py:parse_telegram:172
          2013-06-02 19:06:47,053 SmartHome.py DEBUG    1.1.9 set 5/1/103 to 0 0 -- __init__.py:parse_telegram:172
          2013-06-02 19:06:47,061 hello        INFO     Hello World! -- hello.py:<module>:3
          2013-06-02 19:06:49,962 SmartHome.py DEBUG    1.1.73 set 5/3/37 to 2d 1f -- __init__.py:parse_telegram:172
          2013-06-02 19:06:50,251 Scheduler    DEBUG    series next time: 2013-06-02 19:07:00+02:00 -- scheduler.py:_next_time:238
          2013-06-02 19:06:50,409 SmartHome.py DEBUG    1.1.65 set 5/6/4 to 0 64 -- __init__.py:parse_telegram:172
          2013-06-02 19:06:51,067 SmartHome.py DEBUG    1.1.18 set 5/1/102 to 0 0 c3 a5 -- __init__.py:parse_telegram:172
          2013-06-02 19:06:51,406 SmartHome.py DEBUG    1.1.65 set 5/6/4 to 1 36 -- __init__.py:parse_telegram:172
          2013-06-02 19:06:55,776 SmartHome.py DEBUG    1.1.52 set 3/2/21 to 7 70 -- __init__.py:parse_telegram:172
          2013-06-02 19:06:55,920 SmartHome.py DEBUG    1.1.128 set 3/0/21 to 0 d1 -- __init__.py:parse_telegram:172
          2013-06-02 19:06:56,088 SmartHome.py DEBUG    1.1.128 set 3/0/21 to 0 d1 -- __init__.py:parse_telegram:172
          2013-06-02 19:06:56,599 SmartHome.py DEBUG    1.1.128 set 1/2/100 to 1 -- __init__.py:parse_telegram:172
          2013-06-02 19:06:57,411 SmartHome.py DEBUG    1.1.65 set 5/6/4 to 0 64 -- __init__.py:parse_telegram:172
          2013-06-02 19:06:57,497 SmartHome.py DEBUG    1.1.63 set 3/1/100 to 0 -- __init__.py:parse_telegram:172
          2013-06-02 19:06:57,700 SmartHome.py DEBUG    1.1.63 set 3/1/101 to 1 -- __init__.py:parse_telegram:172
          2013-06-02 19:06:57,902 SmartHome.py DEBUG    1.1.63 set 3/1/102 to 0 -- __init__.py:parse_telegram:172
          2013-06-02 19:06:58,103 SmartHome.py DEBUG    1.1.63 set 3/1/103 to 0 -- __init__.py:parse_telegram:172
          2013-06-02 19:06:58,305 SmartHome.py DEBUG    1.1.63 set 3/1/104 to 0 -- __init__.py:parse_telegram:172
          2013-06-02 19:06:58,585 SmartHome.py DEBUG    1.1.128 set 1/2/100 to 0 -- __init__.py:parse_telegram:172
          2013-06-02 19:07:00,342 Scheduler    DEBUG    series next time: 2013-06-02 19:07:10+02:00 -- scheduler.py:_next_time:238
          2013-06-02 19:07:01,058 SmartHome.py DEBUG    1.1.18 set 5/1/102 to 0 0 c3 ab -- __init__.py:parse_telegram:172
          2013-06-02 19:07:02,413 SmartHome.py DEBUG    1.1.65 set 5/6/4 to 1 2c -- __init__.py:parse_telegram:172
          2013-06-02 19:07:02,642 SmartHome.py DEBUG    1.1.128 set 1/2/100 to 1 -- __init__.py:parse_telegram:172
          2013-06-02 19:07:05,750 SmartHome.py DEBUG    1.1.128 set 1/2/100 to 0 -- __init__.py:parse_telegram:172
          2013-06-02 19:07:08,027 SmartHome.py DEBUG    1.1.128 set 1/2/100 to 1 -- __init__.py:parse_telegram:172
          2013-06-02 19:07:10,232 Scheduler    DEBUG    series next time: 2013-06-02 19:07:20+02:00 -- scheduler.py:_next_time:238
          2013-06-02 19:07:10,929 SmartHome.py DEBUG    1.1.128 set 1/2/100 to 0 -- __init__.py:parse_telegram:172
          kann das am
          Could not open /dev/usbtty-1-2.4. -- __init__.py:__init__:41
          liegen?

          Ratlos...

          Uwe

          Edit: den USB Fehler hab ich weg, daran lag es nicht

          Kommentar


            #6
            Hallo Uwe,

            das usbtty kommt wahrscheinlich eher von dem DMX-Plugin, das Du anscheinend konfiguriert hast.

            In dem Log taucht aber nur:
            Code:
            2013-06-02 19:06:43,062 SmartHome.py DEBUG    knx: second.sleeping.light.level listen on 3/2/14 -- __init__.py:parse_item:222
            2013-06-02 19:06:43,067 SmartHome.py DEBUG    knx: Light listen on 3/2/12 -- __init__.py:parse_item:222
            auf. Das buero.light fehlt.
            Ich tippe auf den Editor der evtl. die Config in einem Format ablegt das nicht von Python auf Linux gelesen werden kann.
            Was verwendest Du denn? Probier es doch mal mit nano auf der Kommandozeile aus.
            Code:
            nano /usr/smarthome/items/test.conf
            und trage dort einmal die Konfig per Hand ein. Nicht Copy&Paste!

            Bis bald

            Marcus

            Kommentar


              #7
              So Marcus,

              ich hab es... aber erklären mußt du mir noch was... (-:
              Meine gestrige Verwirrung in welchen Pfaden was abgelegt wird war das Problem...

              hier hast du mal sauber definiert wo es hin soll - das hat nun geholfen...
              Generell sollte vielleicht in der Doku mal bei jeder Config mit angegeben werden wo die Datei liegt...
              (Editor ist der integrierte im WinSCP - der macht eigentlich nie Ärger)

              Also:
              ich habe die Datei /usr/smarthome/etc/items.conf in die Datei
              /usr/samrthome/items/test.conf kopiert - damit geht es...

              Vielleicht liegt das am noch existenten Demo Projekt???
              Oder hattest du nur übersehen, daß ich im falschen Pfad unterwegs bin?

              denke ich hab nur den Hinweis
              Man kann aber in der item.conf kleine Operationen durchführen (siehe eval).
              in den falschen Hals bekommen... )-:

              Also dann mach ich mal weiter (-:

              DMX wird getestet...

              Uwe

              Kommentar


                #8
                Hallo Uwe,

                schön das Du den Fehler gefunden hast.

                Zitat von boardman Beitrag anzeigen
                hier hast du mal sauber definiert wo es hin soll - das hat nun geholfen...
                Generell sollte vielleicht in der Doku mal bei jeder Config mit angegeben werden wo die Datei liegt...
                Das ist doch der Fall, das steht in der Doku dabei. Wo steht denn das die items in dem etc Ordner abgelegt werden?

                Zitat von boardman Beitrag anzeigen
                Oder hattest du nur übersehen, daß ich im falschen Pfad unterwegs bin?
                Woher hätte ich denn die Info haben sollen? Ich kann leider nicht ahnen was die Benutzer treiben.

                Bis bald

                Marcus

                Kommentar


                  #9
                  Ich sag j anicht daß ich keien Fehler mache - muß erst mal Linux wieder hochkrahmen...

                  aber kuck bitte mal über die KNX Plugin Doku - denke die wiederspricht der SH Doku...

                  z. B. gibt es doch wohl keine items.conf...? auch wenn es ggf. anderst gemeint ist verwirrt das Einsteiger...
                  items.conf

                  knx_dpt

                  This attribute is mandatory.



                  Und noch mal vielen Dank für deine Geduld!!!


                  Uwe

                  Kommentar


                    #10
                    und schon wieder eine Knoten im Hirn...

                    nun möchte ich die DMX-Werte (0.256) vom KNX auf den DMX weiterleiten...

                    Code:
                    #dmx.conf
                    
                    [rgb]
                        [[red]]
                            type = num
                            dmx_ch = 2
                    Code:
                    #test.conf
                    
                    [treppe]
                       [[light]]
                            knx_dpt = 5
                            knx_listen = 1/2/102
                            eval = sh.dmx.send(2, 100)
                    oder 
                            eval = dmx.send(2, 100)
                    #        eval_trigger = treppe.light

                    ergeben eine Fehlermeldung:
                    Code:
                    2013-06-08 20:47:07,391 SmartHome.py INFO     Start SmartHome.py 0.8-169-gf39d59c -- smarthome.py:__init__:192
                    2013-06-08 20:47:07,397 SmartHome.py DEBUG    Python 2.7.3 -- smarthome.py:__init__:193
                    2013-06-08 20:47:07,404 SmartHome.py INFO     Init Scheduler -- scheduler.py:__init__:53
                    2013-06-08 20:47:07,427 SmartHome.py INFO     Init Plugins -- smarthome.py:__init__:208
                    2013-06-08 20:47:07,434 Scheduler    DEBUG    creating 5 workers -- scheduler.py:run:59
                    2013-06-08 20:47:07,449 SmartHome.py DEBUG    Plugin: knx -- plugin.py:__init__:42
                    2013-06-08 20:47:07,488 SmartHome.py DEBUG    Plugin: cli -- plugin.py:__init__:42
                    2013-06-08 20:47:07,507 SmartHome.py DEBUG    Plugin: visu -- plugin.py:__init__:42
                    2013-06-08 20:47:07,581 SmartHome.py DEBUG    Plugin: dmx -- plugin.py:__init__:42
                    2013-06-08 20:47:07,642 SmartHome.py INFO     Init Items -- smarthome.py:__init__:210
                    2013-06-08 20:47:07,667 SmartHome.py INFO     Start Plugins -- plugin.py:start:63
                    2013-06-08 20:47:07,682 SmartHome.py INFO     Start Logics -- logic.py:__init__:32
                    2013-06-08 20:47:07,689 SmartHome.py DEBUG    reading logics from /usr/smarthome/etc/logic.conf -- logic.py:__init__:38
                    2013-06-08 20:47:07,708 visu         DEBUG    series next time: 2013-06-08 20:47:17 -- scheduler.py:_next_time:238
                    2013-06-08 20:47:07,712 SmartHome.py DEBUG    Logic: hello -- logic.py:__init__:45
                    2013-06-08 20:47:07,776 sh.con       DEBUG    knx: enable group monitor -- __init__.py:handle_connect:106
                    2013-06-08 20:47:07,786 sh.con       INFO     KNX: connected to 127.0.0.1:6720 -- my_asynchat.py:connect:69
                    2013-06-08 20:47:07,970 sh.gc        DEBUG    Garbage collector: collected 60 objects. -- smarthome.py:_garbage_collection:345
                    2013-06-08 20:47:08,106 Scheduler    DEBUG    sh.gc next time: 2013-06-09 02:04:00 -- scheduler.py:_next_time:238
                    error: uncaptured python exception, closing channel <plugins.knx.KNX connected 127.0.0.1:6720 at 0x18a27b0> (<class 'struct.error'>:unpack requires a string argument of length 2 [/usr/lib/python2.7/asyncore.py|read|83] [/usr/lib/python2.7/asyncore.py|handle_read_event|449] [/usr/lib/python2.7/asynchat.py|handle_read|140] [/usr/smarthome/plugins/knx/__init__.py|found_terminator|127] [/usr/smarthome/plugins/knx/__init__.py|parse_length|131])
                    2013-06-08 20:47:09,330 SmartHome.py INFO     KNX: connection to 127.0.0.1:6720 closed -- my_asynchat.py:handle_close:103
                    2013-06-08 20:47:11,162 hello        INFO     Hello World! -- hello.py:<module>:3
                    Kann ich das überhaupt in der test.conf machen ode rmuß ich eine Logik anlegen?

                    Letztlich will ich ja den Wert von treppe.light an DMX übergeben aber das klappt schon gar nicht:

                    Code:
                    #test.conf
                    
                    [treppe]
                       [[light]]
                            knx_dpt = 5
                            knx_listen = 1/2/102
                            eval = sh.dmx.send(2, value)
                            eval_trigger = treppe.light
                    
                    führt zu 
                    
                    2013-06-08 20:50:47,452 SmartHome.py DEBUG    Triggering treppe.light - by: Init source: None destination: None value: None -- scheduler.py:trigger:117
                    2013-06-08 20:50:47,461 SmartHome.py INFO     Start Plugins -- plugin.py:start:63
                    2013-06-08 20:50:47,484 SmartHome.py INFO     Start Logics -- logic.py:__init__:32
                    2013-06-08 20:50:47,489 SmartHome.py DEBUG    reading logics from /usr/smarthome/etc/logic.conf -- logic.py:__init__:38
                    2013-06-08 20:50:47,499 SmartHome.py DEBUG    Logic: hello -- logic.py:__init__:45
                    2013-06-08 20:50:47,503 visu         DEBUG    series next time: 2013-06-08 20:50:58 -- scheduler.py:_next_time:238
                    2013-06-08 20:50:47,510 treppe.light WARNING  Method treppe.light exception: eval() arg 1 must be a string or code object -- scheduler.py:_task:287

                    Uwe

                    Kommentar


                      #11
                      wie auf KNX Impuls reagieren

                      Wenn du den KNX Wert an DMX senden willst, warum machst du das nicht einfach so?

                      Code:
                      [rgb]
                          [[red]]
                              type = num
                              dmx_ch = 2
                              knx_dpt = 5
                              knx_listen = 1/2/102
                      Mit freundlichen Grüßen
                      Niko Will

                      Logiken und Schnittstelle zu anderen Systemen: smarthome.py - Visualisierung: smartVISU
                      - Gira TS3 - iPhone & iPad - Mobotix T24 - ekey - Denon 2313 - Russound C5 (RIO over TCP Plugin) -

                      Kommentar


                        #12
                        Hallo Uwe,

                        +1 für den Vorschlag von Niko.

                        Zitat von boardman Beitrag anzeigen
                        Code:
                        #test.conf
                        [treppe]
                           [[light]]
                                knx_dpt = 5
                                knx_listen = 1/2/102
                                eval = sh.dmx.send(2, value)
                                eval_trigger = treppe.light
                        1. das eval_trigger ist hier fragwürdig, wenn Du es auf dich selbst referenzieren lässt. Da kann sich leicht eine Knoten oder besser gesagt eine Schleife im Hirn und auch im Code bilden. Den Code Fall Fange ich jetzt im 0.9 Release ab.
                        2. Das eval dient zum setzen der Item-Variable, um z.B. Umrechnungen durchzuführen, und nicht um irgendwelchen Code auszuführen.
                        3. Es fehlt ein type = num.

                        Bis bald

                        Marcus

                        Kommentar


                          #13
                          Zitat von 2ndsky Beitrag anzeigen
                          Wenn du den KNX Wert an DMX senden willst, warum machst du das nicht einfach so?
                          Hm, weils zu einfach war?
                          Danke es läuft nun!!!

                          aber ab und zu spuckt er beim Start noch diese Meldung:
                          Code:
                          2013-06-09 07:57:05,256 SmartHome.py INFO     Start SmartHome.py 0.8-169-gf39d59c -- smarthome.py:__init__:192
                          2013-06-09 07:57:05,261 SmartHome.py DEBUG    Python 2.7.3 -- smarthome.py:__init__:193
                          2013-06-09 07:57:05,268 SmartHome.py INFO     Init Scheduler -- scheduler.py:__init__:53
                          2013-06-09 07:57:05,291 SmartHome.py INFO     Init Plugins -- smarthome.py:__init__:208
                          2013-06-09 07:57:05,304 Scheduler    DEBUG    creating 5 workers -- scheduler.py:run:59
                          2013-06-09 07:57:05,312 SmartHome.py DEBUG    Plugin: knx -- plugin.py:__init__:42
                          2013-06-09 07:57:05,348 SmartHome.py DEBUG    Plugin: cli -- plugin.py:__init__:42
                          2013-06-09 07:57:05,368 SmartHome.py DEBUG    Plugin: visu -- plugin.py:__init__:42
                          2013-06-09 07:57:05,444 SmartHome.py DEBUG    Plugin: dmx -- plugin.py:__init__:42
                          2013-06-09 07:57:05,505 SmartHome.py INFO     Init Items -- smarthome.py:__init__:210
                          2013-06-09 07:57:05,524 SmartHome.py DEBUG    knx: rgb.red listen on 1/2/102 -- __init__.py:parse_item:222
                          2013-06-09 07:57:05,531 SmartHome.py DEBUG    knx: rgb.blue listen on 1/2/103 -- __init__.py:parse_item:222
                          2013-06-09 07:57:05,540 SmartHome.py DEBUG    knx: rgb.green listen on 1/2/104 -- __init__.py:parse_item:222
                          2013-06-09 07:57:05,547 SmartHome.py INFO     Start Plugins -- plugin.py:start:63
                          2013-06-09 07:57:05,564 SmartHome.py INFO     Start Logics -- logic.py:__init__:32
                          2013-06-09 07:57:05,570 SmartHome.py DEBUG    reading logics from /usr/smarthome/etc/logic.conf -- logic.py:__init__:38
                          2013-06-09 07:57:05,579 SmartHome.py DEBUG    Logic: hello -- logic.py:__init__:45
                          2013-06-09 07:57:05,591 visu         DEBUG    series next time: 2013-06-09 07:57:16 -- scheduler.py:_next_time:238
                          2013-06-09 07:57:05,656 sh.con       DEBUG    knx: enable group monitor -- __init__.py:handle_connect:106
                          2013-06-09 07:57:05,666 sh.con       INFO     KNX: connected to 127.0.0.1:6720 -- my_asynchat.py:connect:69
                          2013-06-09 07:57:05,845 sh.gc        DEBUG    Garbage collector: collected 60 objects. -- smarthome.py:_garbage_collection:345
                          error: uncaptured python exception, closing channel <plugins.knx.KNX connected 127.0.0.1:6720 at 0x1ea3620> (<class 'struct.error'>:unpack requires a string argument of length 2 [/usr/lib/python2.7/asyncore.py|read|83] [/usr/lib/python2.7/asyncore.py|handle_read_event|449] [/usr/lib/python2.7/asynchat.py|handle_read|140] [/usr/smarthome/plugins/knx/__init__.py|found_terminator|127] [/usr/smarthome/plugins/knx/__init__.py|parse_length|131])
                          2013-06-09 07:57:05,882 SmartHome.py INFO     KNX: connection to 127.0.0.1:6720 closed -- my_asynchat.py:handle_close:103
                          2013-06-09 07:57:05,973 Scheduler    DEBUG    sh.gc next time: 2013-06-10 02:04:00 -- scheduler.py:_next_time:238
                          2013-06-09 07:57:09,217 hello        INFO     Hello World! -- hello.py:<module>:3
                          ich hab nun nur noch diese Conf:
                          Code:
                          #dmx.conf
                          
                          [rgb]
                              [[red]]
                                  type = num
                               dmx_ch = 2
                                  knx_dpt = 5
                                  knx_listen = 1/2/102
                              [[blue]]
                                  type = num
                               dmx_ch = 3
                                  knx_dpt = 5
                                  knx_listen = 1/2/103
                              [[green]]
                                  type = num
                               dmx_ch = 4
                                  knx_dpt = 5
                                  knx_listen = 1/2/104
                          @Marcus: danke, so langsam raff ich es nun wohl (-:

                          Uwe

                          Kommentar


                            #14
                            Hallo Uwe,

                            Zitat von boardman Beitrag anzeigen
                            aber ab und zu spuckt er beim Start noch diese Meldung:
                            Code:
                            error: uncaptured python exception, closing channel <plugins.knx.KNX connected 127.0.0.1:6720 at 0x1ea3620> (<class 'struct.error'>:unpack requires a string argument of length 2 [/usr/lib/python2.7/asyncore.py|read|83] [/usr/lib/python2.7/asyncore.py|handle_read_event|449] [/usr/lib/python2.7/asynchat.py|handle_read|140] [/usr/smarthome/plugins/knx/__init__.py|found_terminator|127] [/usr/smarthome/plugins/knx/__init__.py|parse_length|131])
                            in einem anderen Thread hast Du was von eibd selbst kompilieren geschrieben.
                            Kommuniziert auf Deinem Pi SH.py mit einem selbstkompilierten eibd?
                            Ich habe zwar für den oben aufgeführten Fehlerfahl eine Fehlerbehandlung eingebaut, aber die Ursache ist mir nicht klar. Das sehe ich zum ersten Mal.

                            Bis bald

                            Marcus

                            Kommentar


                              #15
                              Hi Marcus,

                              sorry hatte ich verwechselt - EIBD war ja Synology...

                              Was ich beim Upgrade meinte waren die Pakete nachinstallieren - z.B. für DMX
                              Eibd ist ja out of the box... der Fehler trat wohl bei einer bestimmten DMX config Konstellation auf - nun bekomme ich den Fehler nicht mehr...

                              Noch ne Frage zum DMX Plugin, in de rDoku steht:
                              plugin.conf

                              [dmx] class_name = DMX class_path = plugins.dmx tty = /dev/usbtty... You have to adapt the tty to your local enviroment. In my case it's /dev/usbtty-1-2.4 because I have the following udev rule:
                              # /etc/udev/rules.d/80-smarthome.rules SUBSYSTEMS=="usb",KERNEL=="ttyACM*",ATTRS{product} =="NanoDMX Interface",SYMLINK+="usbtty-%b"
                              Warum macht man icht einfach:
                              SUBSYSTEMS=="usb",KERNEL=="ttyACM*",ATTRS{product} =="NanoDMX Interface",SYMLINK+="NanoDMX"

                              dann ist klar was in der Config steht:
                              [dmx]
                              class_name = DMX
                              class_path = plugins.dmx
                              tty = /dev/NanoDMX



                              Uwe

                              Kommentar

                              Lädt...
                              X