Ankündigung

Einklappen
Keine Ankündigung bisher.

- √ - Bekomme die Konfguration nach dem Image nicht mehr zum laufen.

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

    [Firmware] - √ - Bekomme die Konfguration nach dem Image nicht mehr zum laufen.

    Hallo,

    nach Aufforderung: https://knx-user-forum.de/360147-post54.html
    hier ein extra Thema.

    Ich hatte das Image vor dem SH 1.0 und SH2.7 auf dem Rasp.pi am laufen und funktionierte.
    Nun habe ich die Pages gesichert um das neue Image für den Rasp.pi aufzuspielen. Aber leider die items.conf usw. vergessen zu sichern.
    Das fehlt nun natürlich alles.
    Nach der Neukonfiguration kann ich zwar von der Konsole KNX-Diagramme versenden, aber von der SV aus keine Befehle senden, und bekomme auch keine Stati angezeigt.

    Das Plugin.conf zeigt:
    Code:
    # plugin.conf
    
    [knx]
       class_name = KNX
       class_path = plugins.knx
       host = 192.168.2.26 #IP des Wiregate mit EIBD
       port = 6720
    #   send_time = 600 # update date/time every 600 seconds, default none
    #   time_ga = 1/1/1 # default none
    #   date_ga = 1/1/2 # default none
    
    [visu]
        class_name = WebSocket
        class_path = plugins.visu
       ip='192.168.2.36'  # IP des Rasp.pi
    
       port=2424
       acl = ro
        smartvisu_dir = /var/www/smartvisu
    
    [cli]
        class_name = CLI
        class_path = plugins.cli
        ip = 0.0.0.0
        update = True
    
    [sql]
        class_name = SQL
        class_path = plugins.sqlite
    
    #[ow]
    #    class_name = OneWire
    #    class_path = plugins.onewire
    #    host = 127.0.0.1
    #    port = 4304
    Die item.conf:
    Code:
    [EG]
        [[Flur]]
            [[[Deckenlicht]]]
                [[[[Schalten]]]]
                    type = bool
                    knx_dpt = 1
                    knx_send = 1/1/1
                    knx_listen = 1/1/2
                    knx_init = 1/1/1
                    visu = yes
                [[[[Dimmen]]]]
                    type = num
                    knx_dpt = 5
                    knx_send = 1/1/4
                    knx_init = 1/1/4
                    visu = yes
            [[[Steckdose]]]
                type = bool
                knx_dpt = 1
                knx_send = 1/1/1
                knx_listen = 1/1/2
                knx_init = 1/1/1
                visu = yes
                [[[[Schalten]]]]
                    type = bool
                    knx_dpt = 1
                    knx_send = 4/1/80
                    knx_listen = 4/1/81
                    knx_init = 4/1/80
                    visu = yes
            [[[Tueroeffner]]]
                type = bool
                knx_dpt = 1
                knx_send = 4/1/1
                knx_init = 4/1/1
                visu = yes
            [[[Eingangsbeleuchtung]]]
                type = bool
                knx_dpt = 1
                knx_send = 1/5/1
                knx_listen = 1/5/2
                knx_init = 1/5/1
                visu = yes
        [[Arbeiten]]
            [[[Deckenlicht]]]
                [[[[Schalten]]]]
                    type = bool
                    knx_dpt = 1
                    knx_send = 1/1/20
                    knx_listen = 1/1/20
                    knx_init = 1/1/20
                    visu = yes
            [[[Rollo]]]
                [[[[Move]]]]
                    type = bool
                    knx_dpt = 1
                    knx_send = 2/1/1
                    knx_init = 2/1/1
                    visu = yes
                    enforce_updates = true
                [[[[Stop]]]]
                    type = bool
                    knx_dpt = 1
                    knx_send = 2/1/2
                    knx_init = 2/1/2
                    visu = yes
                    enforce_updates = true
                [[[[PosFahren]]]]
                    type = num
                    knx_dpt = 5
                    knx_send = 2/1/3
                    knx_init = 2/1/4
                    visu = yes
            [[[Temperatur]]]
                type = num
                knx_dpt = 9
                knx_listen = 15/5/18
                visu = yes
    etc/default/eibd:
    Code:
    EIB_ARGS="--daemon --Server --Tunnelling --Discovery --GroupCache --listen-tcp" EIB_ADDR="1.1.240" EIB_IF="ipt:192.168.2.26" #IP des Wiregate mit EIBD EIB_UID="1000"
    Wenn ich in der Visu im Configbereich auf SMarthome.py schalte und die adresse des WiregateEIBD eintrage kommt der Fehler:
    Code:
    "Could not connect to smarthome.py server!
     Websocket error undefined."

    Zuguter letzt ist das der Auszug aus dem smarthome.log.
    Code:
    2013-12-14 15:49:48 ERROR    dummy        Logic: dummy, File: /usr/smarthome/logics/dummy_series.py, Line: 2, Method: <module>, Exception: 'SmartHome' object has no attribute 'first'
    Traceback (most recent call last):
      File "/usr/smarthome/lib/scheduler.py", line 327, in _task
        exec(obj.bytecode)
      File "/usr/smarthome/logics/dummy_series.py", line 2, in <module>
        sh.first.living.temperature(random.randint(20, 23))
    AttributeError: 'SmartHome' object has no attribute 'first'
    2013-12-14 15:49:51 ERROR    Connections  WebSocket: problem binding 192.168.2.36:2424 (TCP): [Errno 99] Cannot assign requested address
    2013-12-14 15:50:01 ERROR    Connections  WebSocket: problem binding 192.168.2.36:2424 (TCP): [Errno 99] Cannot assign requested address
    2013-12-14 15:50:11 ERROR    Connections  WebSocket: problem binding 192.168.2.36:2424 (TCP): [Errno 99] Cannot assign requested address
    2013-12-14 15:50:21 ERROR    Connections  WebSocket: problem binding 192.168.2.36:2424 (TCP): [Errno 99] Cannot assign requested address
    2013-12-14 15:50:31 ERROR    Connections  WebSocket: problem binding 192.168.2.36:2424 (TCP): [Errno 99] Cannot assign requested address
    2013-12-14 15:50:41 ERROR    Connections  WebSocket: problem binding 192.168.2.36:2424 (TCP): [Errno 99] Cannot assign requested address
    2013-12-14 15:50:51 ERROR    Connections  WebSocket: problem binding 192.168.2.36:2424 (TCP): [Errno 99] Cannot assign requested address
    2013-12-14 15:51:01 ERROR    Connections  WebSocket: problem binding 192.168.2.36:2424 (TCP): [Errno 99] Cannot assign requested address
    2013-12-14 15:51:11 ERROR    Connections  WebSocket: problem binding 192.168.2.36:2424 (TCP): [Errno 99] Cannot assign requested address
    2013-12-14 15:51:21 ERROR    Connections  WebSocket: problem binding 192.168.2.36:2424 (TCP): [Errno 99] Cannot assign requested address
    2013-12-14 15:51:32 ERROR    Connections  WebSocket: problem binding 192.168.2.36:2424 (TCP): [Errno 99] Cannot assign requested address
    2013-12-14 15:51:42 ERROR    Connections  WebSocket: problem binding 192.168.2.36:2424 (TCP): [Errno 99] Cannot assign requested address
    2013-12-14 15:51:52 ERROR    Connections  WebSocket: problem binding 192.168.2.36:2424 (TCP): [Errno 99] Cannot assign requested address
    2013-12-14 15:52:02 ERROR    Connections  WebSocket: problem binding 192.168.2.36:2424 (TCP): [Errno 99] Cannot assign requested address
    2013-12-14 15:52:12 ERROR    Connections  WebSocket: problem binding 192.168.2.36:2424 (TCP): [Errno 99] Cannot assign requested address
    Init SmartHome.py 1.0-5-g5300605
    2013-12-14 15:52:19 ERROR    Connections  WebSocket: problem binding 192.168.2.36:2424 (TCP): [Errno 99] Cannot assign requested address
    2013-12-14 15:52:29 ERROR    Connections  WebSocket: problem binding 192.168.2.36:2424 (TCP): [Errno 99] Cannot assign requested address
    2013-12-14 15:52:33 ERROR    dummy        Logic: dummy, File: /usr/smarthome/logics/dummy_series.py, Line: 2, Method: <module>, Exception: 'SmartHome' object has no attribute 'first'
    Traceback (most recent call last):
      File "/usr/smarthome/lib/scheduler.py", line 327, in _task
        exec(obj.bytecode)
      File "/usr/smarthome/logics/dummy_series.py", line 2, in <module>
        sh.first.living.temperature(random.randint(20, 23))
    AttributeError: 'SmartHome' object has no attribute 'first'
    2013-12-14 15:52:39 ERROR    Connections  WebSocket: problem binding 192.168.2.36:2424 (TCP): [Errno 99] Cannot assign requested address
    2013-12-14 15:52:49 ERROR    Connections  WebSocket: problem binding 192.168.2.36:2424 (TCP): [Errno 99] Cannot assign requested address
    2013-12-14 15:52:59 ERROR    Connections  WebSocket: problem binding 192.168.2.36:2424 (TCP): [Errno 99] Cannot assign requested address
    2013-12-14 15:53:09 ERROR    Connections  WebSocket: problem binding 192.168.2.36:2424 (TCP): [Errno 99] Cannot assign requested address
    2013-12-14 15:53:19 ERROR    Connections  WebSocket: problem binding 192.168.2.36:2424 (TCP): [Errno 99] Cannot assign requested address
    2013-12-14 15:53:29 ERROR    Connections  WebSocket: problem binding 192.168.2.36:2424 (TCP): [Errno 99] Cannot assign requested address
    2013-12-14 15:53:39 ERROR    Connections  WebSocket: problem binding 192.168.2.36:2424 (TCP): [Errno 99] Cannot assign requested address
    2013-12-14 15:53:49 ERROR    Connections  WebSocket: problem binding 192.168.2.36:2424 (TCP): [Errno 99] Cannot assign requested address
    2013-12-14 15:53:59 ERROR    Connections  WebSocket: problem binding 192.168.2.36:2424 (TCP): [Errno 99] Cannot assign requested address
    2013-12-14 15:54:09 ERROR    Connections  WebSocket: problem binding 192.168.2.36:2424 (TCP): [Errno 99] Cannot assign requested address

    Wäre dankbar für Eure hilfe.

    Gruß,
    Lio

    #2
    In plugin.conf:

    visu -> ip=127.0.0.1

    In items.conf:

    visu=yes -> visu_acl = rw
    Umgezogen? Ja! ... Fertig? Nein!
    Baustelle 2.0 !

    Kommentar


      #3
      Hi Mirko,

      Du meinst so:
      Code:
      [visu]
          class_name = WebSocket
          class_path = plugins.visu
         ip='127.0.0.1'
         port=2424
         acl = rw
         smartvisu_dir = /var/www/smartvisu
      Der Treiber smarthome.py passt, mit der IP des Wiregates und port 2424?

      Grüße,
      Lio

      Kommentar


        #4
        Warum setzt Du die IP als einzigen Wert in ' ????
        Weg mit den Anführungszeichen.
        Umgezogen? Ja! ... Fertig? Nein!
        Baustelle 2.0 !

        Kommentar


          #5
          Mirko,
          das hab' ich schon gemerkt-und kann als Laie nur denken, dass wenn das schon so war, dass das dann auch so sein muss.
          Hab's weggemacht SH neu gestartet-aber immer noch Error

          Gruß,
          Lio

          Kommentar


            #6
            https://knx-user-forum.de/smartvisu/...erte-eibd.html

            Kommentar


              #7
              Sorry, mach das mal ganz raus, also ip und port auskommentieren.

              Welcher Fehler bleibt ??? Du hattest massig, teilweise unwichtige.
              Umgezogen? Ja! ... Fertig? Nein!
              Baustelle 2.0 !

              Kommentar


                #8
                Mirko, Entschuldigung für was? Kannst mir mal langsam aber sicher Deine Bankverbindung nennen

                Meinst Du das so:
                Code:
                [visu]
                    class_name = WebSocket
                   class_path = plugins.visu
                  # ip=127.0.0.1
                   #port=2424
                   acl = rw
                   smartvisu_dir = /var/www/smartvisu
                Aber auch voll auskommentiert brachte es nicht

                @mcfly,
                der Link brachte auch kein Erfolg

                smarthome.log
                Code:
                2013-12-14 18:06:14 ERROR    dummy        Logic: dummy, File: /usr/smarthome/logics/dummy_series.py, Line: 2, Method: <module>, Exception: 'SmartHome' object has no attribute 'first'
                Traceback (most recent call last):
                  File "/usr/smarthome/lib/scheduler.py", line 327, in _task
                    exec(obj.bytecode)
                  File "/usr/smarthome/logics/dummy_series.py", line 2, in <module>
                    sh.first.living.temperature(random.randint(20, 23))
                AttributeError: 'SmartHome' object has no attribute 'first'
                2013-12-14 18:11:14 ERROR    dummy        Logic: dummy, File: /usr/smarthome/logics/dummy_series.py, Line: 2, Method: <module>, Exception: 'SmartHome' object has no attribute 'first'
                Traceback (most recent call last):
                  File "/usr/smarthome/lib/scheduler.py", line 327, in _task
                    exec(obj.bytecode)
                  File "/usr/smarthome/logics/dummy_series.py", line 2, in <module>
                    sh.first.living.temperature(random.randint(20, 23))
                AttributeError: 'SmartHome' object has no attribute 'first'
                2013-12-14 18:16:14 ERROR    dummy        Logic: dummy, File: /usr/smarthome/logics/dummy_series.py, Line: 2, Method: <module>, Exception: 'SmartHome' object has no attribute 'first'
                Traceback (most recent call last):
                  File "/usr/smarthome/lib/scheduler.py", line 327, in _task
                    exec(obj.bytecode)
                  File "/usr/smarthome/logics/dummy_series.py", line 2, in <module>
                    sh.first.living.temperature(random.randint(20, 23))
                AttributeError: 'SmartHome' object has no attribute 'first'
                2013-12-14 18:21:14 ERROR    dummy        Logic: dummy, File: /usr/smarthome/logics/dummy_series.py, Line: 2, Method: <module>, Exception: 'SmartHome' object has no attribute 'first'
                Traceback (most recent call last):
                  File "/usr/smarthome/lib/scheduler.py", line 327, in _task
                    exec(obj.bytecode)
                  File "/usr/smarthome/logics/dummy_series.py", line 2, in <module>
                    sh.first.living.temperature(random.randint(20, 23))
                AttributeError: 'SmartHome' object has no attribute 'first'
                Init SmartHome.py 1.0-5-g5300605
                2013-12-14 18:21:25 ERROR    Main         Unhandled exception: 'class_name'
                <class 'KeyError'>
                  File "/usr/smarthome/bin/smarthome.py", line 606, in <module>
                    sh.start()
                  File "/usr/smarthome/bin/smarthome.py", line 275, in start
                    self._plugins = lib.plugin.Plugins(self, configfile=self._plugin_conf)
                  File "/usr/smarthome/lib/plugin.py", line 50, in __init__
                    classname = _conf[plugin]['class_name']
                
                Init SmartHome.py 1.0-5-g5300605
                2013-12-14 18:30:31 ERROR    dummy        Logic: dummy, File: /usr/smarthome/logics/dummy_series.py, Line: 2, Method: <module>, Exception: 'SmartHome' object has no attribute 'first'
                Traceback (most recent call last):
                  File "/usr/smarthome/lib/scheduler.py", line 327, in _task
                    exec(obj.bytecode)
                  File "/usr/smarthome/logics/dummy_series.py", line 2, in <module>
                    sh.first.living.temperature(random.randint(20, 23))
                AttributeError: 'SmartHome' object has no attribute 'first'

                und eben halt der error mit:
                Code:
                Could not connect to smarthome.py server!
                 Websocket error undefined.

                Kommentar


                  #9
                  Schmeiß mal die Dummy-Logic raus -> in smarthome/etc/logic.conf den entsprechenden Eintrag löschen - danach kann man das log auch besser lesen
                  Umgezogen? Ja! ... Fertig? Nein!
                  Baustelle 2.0 !

                  Kommentar


                    #10
                    das scheint nicht viel zu bewirken
                    Code:
                    Init SmartHome.py 1.0-5-g5300605
                    2013-12-14 18:30:31 ERROR    dummy        Logic: dummy, File: /usr/smarthome/logics/dummy_series.py, Line: 2, Method: <module>, Exception: 'SmartHome' object has no attribute 'first'
                    Traceback (most recent call last):
                      File "/usr/smarthome/lib/scheduler.py", line 327, in _task
                        exec(obj.bytecode)
                      File "/usr/smarthome/logics/dummy_series.py", line 2, in <module>
                        sh.first.living.temperature(random.randint(20, 23))
                    AttributeError: 'SmartHome' object has no attribute 'first'
                    2013-12-14 18:35:31 ERROR    dummy        Logic: dummy, File: /usr/smarthome/logics/dummy_series.py, Line: 2, Method: <module>, Exception: 'SmartHome' object has no attribute 'first'
                    Traceback (most recent call last):
                      File "/usr/smarthome/lib/scheduler.py", line 327, in _task
                        exec(obj.bytecode)
                      File "/usr/smarthome/logics/dummy_series.py", line 2, in <module>
                        sh.first.living.temperature(random.randint(20, 23))
                    AttributeError: 'SmartHome' object has no attribute 'first'
                    2013-12-14 18:40:31 ERROR    dummy        Logic: dummy, File: /usr/smarthome/logics/dummy_series.py, Line: 2, Method: <module>, Exception: 'SmartHome' object has no attribute 'first'
                    Traceback (most recent call last):
                      File "/usr/smarthome/lib/scheduler.py", line 327, in _task
                        exec(obj.bytecode)
                      File "/usr/smarthome/logics/dummy_series.py", line 2, in <module>
                        sh.first.living.temperature(random.randint(20, 23))
                    AttributeError: 'SmartHome' object has no attribute 'first'
                    2013-12-14 18:45:31 ERROR    dummy        Logic: dummy, File: /usr/smarthome/logics/dummy_series.py, Line: 2, Method: <module>, Exception: 'SmartHome' object has no attribute 'first'
                    Traceback (most recent call last):
                      File "/usr/smarthome/lib/scheduler.py", line 327, in _task
                        exec(obj.bytecode)
                      File "/usr/smarthome/logics/dummy_series.py", line 2, in <module>
                        sh.first.living.temperature(random.randint(20, 23))
                    AttributeError: 'SmartHome' object has no attribute 'first'
                    2013-12-14 18:50:31 ERROR    dummy        Logic: dummy, File: /usr/smarthome/logics/dummy_series.py, Line: 2, Method: <module>, Exception: 'SmartHome' object has no attribute 'first'
                    Traceback (most recent call last):
                      File "/usr/smarthome/lib/scheduler.py", line 327, in _task
                        exec(obj.bytecode)
                      File "/usr/smarthome/logics/dummy_series.py", line 2, in <module>
                        sh.first.living.temperature(random.randint(20, 23))
                    AttributeError: 'SmartHome' object has no attribute 'first'
                    2013-12-14 18:55:31 ERROR    dummy        Logic: dummy, File: /usr/smarthome/logics/dummy_series.py, Line: 2, Method: <module>, Exception: 'SmartHome' object has no attribute 'first'
                    Traceback (most recent call last):
                      File "/usr/smarthome/lib/scheduler.py", line 327, in _task
                        exec(obj.bytecode)
                      File "/usr/smarthome/logics/dummy_series.py", line 2, in <module>
                        sh.first.living.temperature(random.randint(20, 23))
                    AttributeError: 'SmartHome' object has no attribute 'first'
                    2013-12-14 19:00:31 ERROR    dummy        Logic: dummy, File: /usr/smarthome/logics/dummy_series.py, Line: 2, Method: <module>, Exception: 'SmartHome' object has no attribute 'first'
                    Traceback (most recent call last):
                      File "/usr/smarthome/lib/scheduler.py", line 327, in _task
                        exec(obj.bytecode)
                      File "/usr/smarthome/logics/dummy_series.py", line 2, in <module>
                        sh.first.living.temperature(random.randint(20, 23))
                    AttributeError: 'SmartHome' object has no attribute 'first'
                    2013-12-14 19:05:32 ERROR    dummy        Logic: dummy, File: /usr/smarthome/logics/dummy_series.py, Line: 2, Method: <module>, Exception: 'SmartHome' object has no attribute 'first'
                    Traceback (most recent call last):
                      File "/usr/smarthome/lib/scheduler.py", line 327, in _task
                        exec(obj.bytecode)
                      File "/usr/smarthome/logics/dummy_series.py", line 2, in <module>
                        sh.first.living.temperature(random.randint(20, 23))
                    AttributeError: 'SmartHome' object has no attribute 'first'
                    2013-12-14 19:10:32 ERROR    dummy        Logic: dummy, File: /usr/smarthome/logics/dummy_series.py, Line: 2, Method: <module>, Exception: 'SmartHome' object has no attribute 'first'
                    Traceback (most recent call last):
                      File "/usr/smarthome/lib/scheduler.py", line 327, in _task
                        exec(obj.bytecode)
                      File "/usr/smarthome/logics/dummy_series.py", line 2, in <module>
                        sh.first.living.temperature(random.randint(20, 23))
                    AttributeError: 'SmartHome' object has no attribute 'first'
                    Init SmartHome.py 1.0-5-g5300605
                    2013-12-14 19:13:37 WARNING  Main         dummy: No filename specified => ignoring.

                    Kommentar


                      #11
                      Hi Lio,

                      lösch doch mal den Inhalt der logic.conf. Dann sind die Fehlermeldungen weg. Die haben allerdings nichts mit Deinem Problem zu tun.

                      Hast Du in der smartVISU als Backendadresse smarthome.local stehen? Probier doch mal die IP Deines Pi. Manche Umgebungen haben Probleme mit der Auflösung von .local

                      Bis bald

                      Marcus

                      Kommentar


                        #12
                        Schau mal mit dem "date" Befehl, ob das Datum auf dem Raspberry richtig gesetzt ist. Bei mir hatte sich nach jedem Neustart die Systemzeit auf 01.01.1700 zurückgesetzt. Smarthome.py hat dann nicht funktioniert (nicht gestartet). Mit "date -s [Datum] [Uhrzeit]" kannst du die Zeit/Datum einstellen.
                        Sonos

                        Kommentar


                          #13
                          Hallo, habe nun noch mal alles frische gemacht und step by step aufgesetzt.
                          Irgendwie funktioniert es nun.
                          Musste wohl irgendwo irgendetwas (versehentlich?) verschoben haben.

                          Grüße,
                          Lio

                          Kommentar

                          Lädt...
                          X