Ankündigung

Einklappen
Keine Ankündigung bisher.

SmartVISU auf RPi mit KNX

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

    SmartVISU auf RPi mit KNX

    Hallo,

    ich habe folgende Frage. Ich will mich in SmartVISU einarbeiten. Leider fällt mir grad nix mehr ein was ich noch zur Problemlösung ranziehen könnte.

    Ich habe die VISU bereits erstellt (Räume angelegt und Widget erstellt), aber genau da muss der Fehler liegen.

    Inhalt .../pages/SH/D_Zimmer.html:
    Code:
    {% block content %}
         <div class="preblock">
         </div>
    
        <div class="block">
            <div class="set-2" data-role="collapsible-set" data-theme="c" data-content-theme="a" data-mini="true">
                <div data-role="collapsible" data-collapsed="false">
                <h3>Licht</h3>
                    <table width="90%">
                        <tr>
                            <td align="left" width="100px">{{ basic.switch('DG.Zi.LA', 'DG.Zi.LA', icon1~'light_light_dim_100.svg', icon0~'light_light.svg') }}</td>    
                            <td>Licht A</td>    
                        </tr>    
                        <tr>
                            <td align="left" width="100px">{{ basic.dual('DG.Zi.LB', 'DG.Zi.LB', icon1~'light_light_dim_100.svg', icon0~'light_light.svg') }}</td>
                            <td>Licht B</td>        
                        </tr>    
                    </table>
                </div>        
            </div>
        </div>
    
    {% endblock %}
    Inhalt /usr/local/smarthome/items/D_Zimmer.conf
    Code:
    # /usr/local/smarthome/items/D_Zimmer.conf
    [DG]
      visu = yes
      [[Zi]]
        name = Zimmer
        visu = yes
        [[[LA]]]
          type = bool
          knx_dpt = 1
          knx_cache = 1/1/3
          knx_send = 1/1/1
          knx_init = 1/1/3
          visu_acl = rw
    
        [[[LB]]]
          type = bool
          knx_dpt = 1
          knx_cache = 1/1/4
          knx_send = 1/1/2
          visu_acl = rw
    GA 1/1/1 = Lampe 1
    GA 1/1/2 = Lampe 2
    GA 1/1/3 = Status Lampe 1
    GA 1/1/4 = Status Lampe 2

    Vielleicht habt Ihr einen Tipp.

    Danke im Vorraus.
    Gruß muckiy
    Zuletzt geändert von muckiy; 17.12.2016, 17:34.

    #2
    Wenn Du jetzt noch beschreiben würdest was Dein Problem ist.... Irgendwie fehlt Deine Frage....

    Kommentar


      #3
      Oh Gott

      Frage: Ich kann auf der Visu zwar die buttons drücken, aber der aktor schaltet nicht.

      Kommentar


        #4
        Was steht denn im log von smarthome.py, bzw. was passiert in smarthome.py, wenn du mit --debug startest?

        Kommentar


          #5
          Was hast Du denn in der Config Seite der SmartVISU unter I/O-Connection eingetragen?
          Viele Grüße
          Martin

          There is no cloud. It's only someone else's computer.

          Kommentar


            #6
            Also ich hoffe ich habe es jetzt richtig gemacht. Meine Linuxkenntnisse sind jetzt auch schon 10 Jahre alt, wo ich es noch in der Schule hatte.

            @DiMa: Ich habe jetzt mal mit --debug gestartet
            Code:
            2016-12-18 10:17:33,841 INFO     Main         Start SmartHome.py 1.0-45-g02cf972 -- smarthome.py:__init__:231
            2016-12-18 10:17:33,842 DEBUG    Main         Python 3.4.2 -- smarthome.py:__init__:232
            2016-12-18 10:17:33,843 INFO     Main         Init Scheduler -- scheduler.py:__init__:86
            2016-12-18 10:17:33,844 DEBUG    Scheduler    creating 5 workers -- scheduler.py:run:93
            2016-12-18 10:17:33,844 INFO     Main         Init Plugins -- smarthome.py:start:274
            2016-12-18 10:17:33,849 DEBUG    Main         Plugin: knx -- plugin.py:__init__:43
            2016-12-18 10:17:33,859 DEBUG    Main         Plugin: visu -- plugin.py:__init__:43
            2016-12-18 10:17:33,877 DEBUG    Main         Plugin: cli -- plugin.py:__init__:43
            2016-12-18 10:17:33,882 DEBUG    Main         Plugin: sql -- plugin.py:__init__:43
            2016-12-18 10:17:33,894 DEBUG    Main         SQLite 3.8.7.1 -- __init__.py:__init__:62
            2016-12-18 10:17:33,991 DEBUG    Main         SQLite: database integrity ok -- __init__.py:__init__:78
            2016-12-18 10:17:33,997 DEBUG    Main         SQLite pack next time: 2016-12-19 03:02:00+01:00 -- scheduler.py:_next_time:289
            2016-12-18 10:17:33,998 INFO     Main         Init Items -- smarthome.py:start:280
            2016-12-18 10:17:34,048 DEBUG    Main         Item env.core.memory = 16498688.0 via SQLite None None -- item.py:set:457
            2016-12-18 10:17:34,077 DEBUG    Main         Item env.core.threads = 8.0 via SQLite None None -- item.py:set:457
            2016-12-18 10:17:34,107 DEBUG    Main         Item env.core.garbage = 0.0 via SQLite None None -- item.py:set:457
            2016-12-18 10:17:34,108 DEBUG    Main         Item env.core: no type specified. -- item.py:__init__:242
            2016-12-18 10:17:34,122 DEBUG    Main         Item env.location: no type specified. -- item.py:__init__:242
            2016-12-18 10:17:34,154 DEBUG    Main         Item env.system.load = 0.09 via SQLite None None -- item.py:set:457
            2016-12-18 10:17:34,157 DEBUG    Main         Item env.system: no type specified. -- item.py:__init__:242
            2016-12-18 10:17:34,159 DEBUG    Main         Item env: no type specified. -- item.py:__init__:242
            2016-12-18 10:17:34,164 DEBUG    Main         KNX: DG.Zi.LA listen on and init with 1/1/3 -- __init__.py:parse_item:244
            2016-12-18 10:17:34,165 DEBUG    Main         KNX: DG.Zi.LA listen on and init with cache 1/1/3 -- __init__.py:parse_item:254
            2016-12-18 10:17:34,167 DEBUG    Main         KNX: DG.Zi.LB listen on and init with cache 1/1/4 -- __init__.py:parse_item:254
            2016-12-18 10:17:34,169 DEBUG    Main         Item DG.Zi: no type specified. -- item.py:__init__:242
            2016-12-18 10:17:34,169 DEBUG    Main         Item DG: no type specified. -- item.py:__init__:242
            2016-12-18 10:17:34,173 INFO     Main         Start Plugins -- plugin.py:start:65
            2016-12-18 10:17:34,195 INFO     Main         Start Logics -- logic.py:__init__:33
            2016-12-18 10:17:34,197 DEBUG    Main         Reading Logics from /usr/local/smarthome/lib/env/logic_conf -- logic.py:_read_logics:64
            2016-12-18 10:17:34,203 DEBUG    Main         Reading Logics from /usr/local/smarthome/etc/logic.conf -- logic.py:_read_logics:64
            2016-12-18 10:17:34,213 DEBUG    Main         Logic: env_stat -- logic.py:__init__:44
            2016-12-18 10:17:34,228 DEBUG    Main         env_stat next time: 2016-12-18 10:17:47+01:00 -- scheduler.py:_next_time:289
            2016-12-18 10:17:34,230 DEBUG    Main         Logic: env_init -- logic.py:__init__:44
            2016-12-18 10:17:34,233 DEBUG    Main         Logic: env_loc -- logic.py:__init__:44
            2016-12-18 10:17:34,366 DEBUG    Connections  KNX: connected to 127.0.0.1:6720 -- connection.py:connect:386
            2016-12-18 10:17:34,367 DEBUG    Connections  KNX: reading eibd cache -- __init__.py:handle_connect:113
            2016-12-18 10:17:34,368 DEBUG    Connections  KNX: enable group monitor -- __init__.py:handle_connect:117
            2016-12-18 10:17:34,368 DEBUG    Connections  KNX: init read -- __init__.py:handle_connect:123
            2016-12-18 10:17:34,369 ERROR    Connections  WebSocket: problem binding 0.0.0.0:2424 (TCP): [Errno 98] Die Adresse wird bereits verwendet -- connection.py:connect:157
            2016-12-18 10:17:34,371 ERROR    Connections  CLI: problem binding 0.0.0.0:2323 (TCP): [Errno 98] Die Adresse wird bereits verwendet -- connection.py:connect:157
            2016-12-18 10:17:35,241 DEBUG    Main         knx: 1.1.4 set 1/1/3 to False -- __init__.py:parse_telegram:190
            2016-12-18 10:17:35,241 DEBUG    Main         knx: 1.1.4 set 1/1/4 to False -- __init__.py:parse_telegram:190
            2016-12-18 10:17:35,265 DEBUG    Main         KNX: 1.1.254 read 1/1/3 -- __init__.py:parse_telegram:203
            2016-12-18 10:17:35,299 DEBUG    Main         knx: 1.1.4 set 1/1/3 to False -- __init__.py:parse_telegram:190
            2016-12-18 10:17:39,364 DEBUG    env_init     Item env.core.version = 1.0-45-g02cf972 via Logic None None -- item.py:__update:363
            2016-12-18 10:17:39,414 DEBUG    env_loc      Item env.location.sunrise = 2016-12-19 07:59:04.062730+01:00 via Logic None None -- item.py:__update:363
            2016-12-18 10:17:39,417 DEBUG    env_init     Item env.core.start = 2016-12-18 10:17:39.416288+01:00 via Logic None None -- item.py:__update:363
            2016-12-18 10:17:39,438 DEBUG    env_init     Item env.system.name = raspberrypi via Logic None None -- item.py:__update:363
            2016-12-18 10:17:39,433 DEBUG    env_loc      Item env.location.sunset = 2016-12-18 16:23:12.642248+01:00 via Logic None None -- item.py:__update:363
            2016-12-18 10:17:39,418 DEBUG    sh.gc        Garbage collector: collected 0 objects. -- smarthome.py:_garbage_collection:498
            2016-12-18 10:17:39,460 DEBUG    env_init     Item env.system.start = 2016-12-17 18:35:29.459633+01:00 via Logic None None -- item.py:__update:363
            2016-12-18 10:17:39,485 DEBUG    env_loc      Item env.location.moonrise = 2016-12-18 21:49:28.685377+01:00 via Logic None None -- item.py:__update:363
            2016-12-18 10:17:39,510 DEBUG    env_loc      Item env.location.moonset = 2016-12-18 11:09:18.735647+01:00 via Logic None None -- item.py:__update:363
            2016-12-18 10:17:39,516 DEBUG    env_loc      Item env.location.moonphase = 5 via Logic None None -- item.py:__update:363
            2016-12-18 10:17:39,534 DEBUG    env_loc      Item env.location.day = True via Logic None None -- item.py:__update:363
            2016-12-18 10:17:39,537 DEBUG    sh.gc        Object references: 10966 -- smarthome.py:_maintenance:490
            2016-12-18 10:17:39,867 DEBUG    Scheduler    sh.gc next time: 2016-12-19 02:04:00+01:00 -- scheduler.py:_next_time:289
            2016-12-18 10:17:39,886 DEBUG    Scheduler    env_loc next time: 2016-12-18 10:47:39+01:00 -- scheduler.py:_next_time:289
            2016-12-18 10:17:44,396 ERROR    Connections  WebSocket: problem binding 0.0.0.0:2424 (TCP): [Errno 98] Die Adresse wird bereits verwendet -- connection.py:connect:157
            2016-12-18 10:17:44,398 ERROR    Connections  CLI: problem binding 0.0.0.0:2323 (TCP): [Errno 98] Die Adresse wird bereits verwendet -- connection.py:connect:157
            2016-12-18 10:17:44,666 INFO     Main         Number of Threads: 7 -- smarthome.py:stop:348
            2016-12-18 10:17:44,667 INFO     Main         Stop Plugins -- plugin.py:stop:70
            2016-12-18 10:17:44,753 DEBUG    Main         KNX: closing socket 127.0.0.1:6720 -- connection.py:close:303
            2016-12-18 10:17:45,541 INFO     Main         SmartHome.py stopped -- smarthome.py:stop:372
            Init SmartHome.py 1.0-45-g02cf972
            2016-12-18 10:20:22 INFO     Main         Start SmartHome.py 1.0-45-g02cf972
            2016-12-18 10:20:22 INFO     Main         Init Scheduler
            2016-12-18 10:20:22 INFO     Main         Init Plugins
            2016-12-18 10:20:22 INFO     Main         Init Items
            2016-12-18 10:20:22 INFO     Main         Start Plugins
            2016-12-18 10:20:22 INFO     Main         Start Logics
            2016-12-18 10:20:22 ERROR    Connections  WebSocket: problem binding 0.0.0.0:2424 (TCP): [Errno 98] Die Adresse wird bereits verwendet
            2016-12-18 10:20:22 ERROR    Connections  CLI: problem binding 0.0.0.0:2323 (TCP): [Errno 98] Die Adresse wird bereits verwendet
            2016-12-18 10:20:33 ERROR    Connections  WebSocket: problem binding 0.0.0.0:2424 (TCP): [Errno 98] Die Adresse wird bereits verwendet
            2016-12-18 10:20:33 ERROR    Connections  CLI: problem binding 0.0.0.0:2323 (TCP): [Errno 98] Die Adresse wird bereits verwendet
            2016-12-18 10:20:43 ERROR    Connections  WebSocket: problem binding 0.0.0.0:2424 (TCP): [Errno 98] Die Adresse wird bereits verwendet
            2016-12-18 10:20:43 ERROR    Connections  CLI: problem binding 0.0.0.0:2323 (TCP): [Errno 98] Die Adresse wird bereits verwendet
            2016-12-18 10:20:53 ERROR    Connections  WebSocket: problem binding 0.0.0.0:2424 (TCP): [Errno 98] Die Adresse wird bereits verwendet
            2016-12-18 10:20:53 ERROR    Connections  CLI: problem binding 0.0.0.0:2323 (TCP): [Errno 98] Die Adresse wird bereits verwendet
            2016-12-18 10:21:03 ERROR    Connections  WebSocket: problem binding 0.0.0.0:2424 (TCP): [Errno 98] Die Adresse wird bereits verwendet
            2016-12-18 10:21:03 ERROR    Connections  CLI: problem binding 0.0.0.0:2323 (TCP): [Errno 98] Die Adresse wird bereits verwendet
            2016-12-18 10:21:13 ERROR    Connections  WebSocket: problem binding 0.0.0.0:2424 (TCP): [Errno 98] Die Adresse wird bereits verwendet
            2016-12-18 10:21:13 ERROR    Connections  CLI: problem binding 0.0.0.0:2323 (TCP): [Errno 98] Die Adresse wird bereits verwendet
            2016-12-18 10:21:23 ERROR    Connections  WebSocket: problem binding 0.0.0.0:2424 (TCP): [Errno 98] Die Adresse wird bereits verwendet
            2016-12-18 10:21:23 ERROR    Connections  CLI: problem binding 0.0.0.0:2323 (TCP): [Errno 98] Die Adresse wird bereits verwendet
            2016-12-18 10:21:33 ERROR    Connections  WebSocket: problem binding 0.0.0.0:2424 (TCP): [Errno 98] Die Adresse wird bereits verwendet
            2016-12-18 10:21:33 ERROR    Connections  CLI: problem binding 0.0.0.0:2323 (TCP): [Errno 98] Die Adresse wird bereits verwendet
            2016-12-18 10:21:43 ERROR    Connections  WebSocket: problem binding 0.0.0.0:2424 (TCP): [Errno 98] Die Adresse wird bereits verwendet
            2016-12-18 10:21:43 ERROR    Connections  CLI: problem binding 0.0.0.0:2323 (TCP): [Errno 98] Die Adresse wird bereits verwendet
            2016-12-18 10:21:53 ERROR    Connections  WebSocket: problem binding 0.0.0.0:2424 (TCP): [Errno 98] Die Adresse wird bereits verwendet
            2016-12-18 10:21:53 ERROR    Connections  CLI: problem binding 0.0.0.0:2323 (TCP): [Errno 98] Die Adresse wird bereits verwendet
            2016-12-18 10:22:03 ERROR    Connections  WebSocket: problem binding 0.0.0.0:2424 (TCP): [Errno 98] Die Adresse wird bereits verwendet
            2016-12-18 10:22:03 ERROR    Connections  CLI: problem binding 0.0.0.0:2323 (TCP): [Errno 98] Die Adresse wird bereits verwendet
            2016-12-18 10:22:14 ERROR    Connections  WebSocket: problem binding 0.0.0.0:2424 (TCP): [Errno 98] Die Adresse wird bereits verwendet
            2016-12-18 10:22:14 ERROR    Connections  CLI: problem binding 0.0.0.0:2323 (TCP): [Errno 98] Die Adresse wird bereits verwendet
            2016-12-18 10:22:24 ERROR    Connections  WebSocket: problem binding 0.0.0.0:2424 (TCP): [Errno 98] Die Adresse wird bereits verwendet
            2016-12-18 10:22:24 ERROR    Connections  CLI: problem binding 0.0.0.0:2323 (TCP): [Errno 98] Die Adresse wird bereits verwendet
            2016-12-18 10:22:34 ERROR    Connections  WebSocket: problem binding 0.0.0.0:2424 (TCP): [Errno 98] Die Adresse wird bereits verwendet
            2016-12-18 10:22:34 ERROR    Connections  CLI: problem binding 0.0.0.0:2323 (TCP): [Errno 98] Die Adresse wird bereits verwendet
            2016-12-18 10:22:44 ERROR    Connections  WebSocket: problem binding 0.0.0.0:2424 (TCP): [Errno 98] Die Adresse wird bereits verwendet
            2016-12-18 10:22:44 ERROR    Connections  CLI: problem binding 0.0.0.0:2323 (TCP): [Errno 98] Die Adresse wird bereits verwendet
            2016-12-18 10:22:54 ERROR    Connections  WebSocket: problem binding 0.0.0.0:2424 (TCP): [Errno 98] Die Adresse wird bereits verwendet
            2016-12-18 10:22:54 ERROR    Connections  CLI: problem binding 0.0.0.0:2323 (TCP): [Errno 98] Die Adresse wird bereits verwendet
            2016-12-18 10:23:04 ERROR    Connections  WebSocket: problem binding 0.0.0.0:2424 (TCP): [Errno 98] Die Adresse wird bereits verwendet
            2016-12-18 10:23:04 ERROR    Connections  CLI: problem binding 0.0.0.0:2323 (TCP): [Errno 98] Die Adresse wird bereits verwendet
            2016-12-18 10:23:14 ERROR    Connections  WebSocket: problem binding 0.0.0.0:2424 (TCP): [Errno 98] Die Adresse wird bereits verwendet
            2016-12-18 10:23:14 ERROR    Connections  CLI: problem binding 0.0.0.0:2323 (TCP): [Errno 98] Die Adresse wird bereits verwendet

            @Msinn: Die Angaben in der I/O sind
            Driver: eibd
            IP: 192.168.1.8
            Port: 2121
            Realtime: on

            Kommentar


              #7
              Damit sprichst Du dann Aber smarthome garnicht an.

              Da musst Du als Treiber schon smarthome.py und als Port 2424 eintragen.
              Viele Grüße
              Martin

              There is no cloud. It's only someone else's computer.

              Kommentar


                #8
                Hi,

                bei mir in der I/O heißt es

                Driver: Smarthome.py
                Port: 2424

                Aber Du hast auch eine alte Version von Smarthome, wenn ich das richtig sehe.

                Kommentar


                  #9
                  Hallo muckiy,
                  bei mir steht da
                  Driver: Smarthome.pi
                  IP: 192.168.1.8 (Deine IP!!)
                  Port: 2424
                  Realtime: on
                  Gruß Hans

                  Kommentar


                    #10
                    Wie aus dem log zu erkennen hast du erst mal grundsätzliche Konfigurationsprobleme. So lange to die Kommunikationsfehler zwischen smartVISU und smartphone.py nicht löst, brauchst du bei deinen items gar nicht erst nach Fehlern zu suchen - im Moment redet die Visu gar nicht mit deinem Bus.

                    Ändere wie bereits beschrieben als erstes mal den Port auf 2424 und den Treiber auf smartphone.py.

                    Kommentar


                      #11
                      Zitat von arnix Beitrag anzeigen

                      Driver: Smarthome.py
                      Port: 2424

                      Aber Du hast auch eine alte Version von Smarthome, wenn ich das richtig sehe.
                      Das ist unabhängig davon, ob Du amrthome.py oder SmartHomeNG einsetzt.

                      Viele Grüße
                      Martin

                      There is no cloud. It's only someone else's computer.

                      Kommentar


                        #12
                        OK. Also ich habe jetzt auf Smarthome.py umgestellt, jetzt rührt sich das icon schon mal, Aktor schaltet aber noch nicht.

                        Kommentar


                          #13
                          Problem behoben

                          Leider weiß ich nicht wodurch es jetzt gelöst ist.
                          Der Reihe nach durchprobiert und auskommentiert.

                          muss ich eigentlich smarthome.py nach jeder änderung in der images/*.conf neustarten?

                          Kommentar


                            #14
                            Ja.

                            Kommentar


                              #15
                              Jetzt hab ich ein weiteres problem. Bei meinem TUL-Stick von Busware leuchtet die grüne USB-Led nicht mehr, kann das daran liegen, weil ich den Dienst so oft neu starte?
                              bekomme auch keine verbindung mehr zum KNX

                              Kommentar

                              Lädt...
                              X