Ankündigung

Einklappen
Keine Ankündigung bisher.

Eibd und smartvisu komunizieren nicht

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

    Eibd und smartvisu komunizieren nicht

    Hallo,

    ich habe das Problem das ich über die Beispielseiten keine GA ansprechen kann bzw irgendein Telegramm schicken kann.
    Im Menu der Smartvisu hab ich " Eibd " mit der IP 127.0.0.1 und port 6720 eingestellet.
    Ich habe die Beispielseite " Alber.Eibd " eingestellt und in der HTML die GA angepasst.

    wenn ich nach dem Start des PI 2 B im Terminal " groupswrite ip:127.0.0.1 1/2/1 1 " eingebe geht das Licht an bzw mit " groupswrite ip:127.0.0.1 1/2/1 0" aus.

    wo kann der Fehler liegen?
    warum bekommt SmartVisu kein Telegramm auf den Bus?


    mein Setup:

    - Raspberry PI 2 B
    - Smartvisu Image aus dem Forum vom 16.11.2013 einschl. Update
    - Weinzierl IP 730 Interface
    - MDT Dimmaktor 4 fach AKD-0401.01
    - Jung Taster Schnittstelle 2076-4T

    meien .config Dateien:


    plugin.conf

    Code:
    # plugin.conf
    
    [knx]
       class_name = KNX
       class_path = plugins.knx
       host = 127.0.0.1
       port = 6720
    #   send_time = 600 # update date/time every 600 seconds, default none
    #   time_ga = 1/0/1 # default none
    #   date_ga = 1/0/2 # default none
    
    [visu]
        class_name = WebSocket
        class_path = plugins.visu
        ip='127.0.0.1'
        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
    etc/default/eibd

    Code:
    EIB_ARGS="--daemon --Server --Tunnelling --Discovery --GroupCache --listen-tcp --no-tunnel-client-queuing"
    #EIB_ADDR="1.1.1"
    EIB_IF="tpuarts:/dev/ttyAMA0"
    EIB_IF="ipt:192.168.2.27"
    EIB_UID="1000"
    die Icons verfärben sich auch nicht beim drücken.


    habe ich vllt. eine relevante conf datei vergessen ?

    beste Grüße Mathias
    Zuletzt geändert von usr; 28.11.2015, 23:27.

    #2
    Naja, Du mußt Dich als erstes mal entscheiden, ob der Weg eibd <-> smarthome.py <-> smartvisu sein soll oder direkt eibd <-> smartvisu.

    Mal vermutet, das Du den ersten Weg wählen wolltest, mußt Du als Treiber in der Smartvisu auch smarthome.py angeben respektive der richtigen IP und dem richtigen Port. Der Port ist dann nicht der vom eibd sondern der vom smarthome.py. Vermutlich ist aber die IP vom smarthome.py und dem eibd identisch weil beides auf dem Raspi läuft.

    Probier das mal als erstes. Wenn es dann nicht klappt, kannst Du smarthome.py mal im Debugmodus starten und schauen, ob smarthome.py und smartvisu überhaupt miteinander reden wollen.

    Gruß,
    Bernd

    Kommentar


      #3
      Danke für die schnelle Antwort! Ich wollte grundsätzlich über smarthome.py gehen da ich später evtl. noch DMX und 1wire nutzen will. Ich dachte nur zum test ist es einiges einfacher direkt von SV zu eibd zu gehen. Wie finde ich den port raus?

      Kommentar


        #4
        Steht doch schon oben: 2424
        Bei mir ist dort zu finden:

        Code:
        [visu]
            class_name = WebSocket
            class_path = plugins.visu
        #   ip='0.0.0.0'
        #   port=2424
        #   acl = ro
        Gruß,
        Bernd



        Kommentar


          #5
          Hi,

          ich hab folgendes im Debug angezeigt bekommen.

          Code:
          root@smarthome.local:smarthome# smarthome.py -s
          root@smarthome.local:smarthome# smarthome.py -d
          2015-11-28 11:00:54,033 INFO     Main         Start SmartHome.py 1.0-45-g02cf972             -- smarthome.py:__init__:231
          2015-11-28 11:00:54,035 DEBUG    Main         Python 3.2.3 -- smarthome.py:__ini            t__:232
          2015-11-28 11:00:54,037 INFO     Main         Init Scheduler -- scheduler.py:__i            nit__:86
          2015-11-28 11:00:54,040 DEBUG    Scheduler    creating 5 workers -- scheduler.py            :run:93
          2015-11-28 11:00:54,040 INFO     Main         Init Plugins -- smarthome.py:start            :274
          2015-11-28 11:00:54,051 DEBUG    Main         Plugin: knx -- plugin.py:__init__:            43
          2015-11-28 11:00:54,067 DEBUG    Main         Plugin: visu -- plugin.py:__init__            :43
          2015-11-28 11:00:54,104 DEBUG    Main         Plugin: cli -- plugin.py:__init__:            43
          2015-11-28 11:00:54,109 DEBUG    Main         Plugin: sql -- plugin.py:__init__:            43
          2015-11-28 11:00:54,126 DEBUG    Main         SQLite 3.7.13 -- __init__.py:__ini            t__:62
          2015-11-28 11:00:54,149 DEBUG    Main         SQLite: database integrity ok -- _            _init__.py:__init__:78
          2015-11-28 11:00:54,160 DEBUG    Main         SQLite pack next time: 2015-11-29             03:02:00+01:00 -- scheduler.py:_next_time:289
          2015-11-28 11:00:54,162 INFO     Main         Init Items -- smarthome.py:start:2            80
          2015-11-28 11:00:54,229 DEBUG    Main         Item env.core.memory = 16191488.0             via SQLite None None -- item.py:set:457
          2015-11-28 11:00:54,237 DEBUG    Main         Item env.core.threads = 7.0 via SQ            Lite None None -- item.py:set:457
          2015-11-28 11:00:54,245 DEBUG    Main         Item env.core.garbage = 0.0 via SQ            Lite None None -- item.py:set:457
          2015-11-28 11:00:54,247 DEBUG    Main         Item env.core: no type specified.             -- item.py:__init__:242
          2015-11-28 11:00:54,267 DEBUG    Main         Item env.location: no type specifi            ed. -- item.py:__init__:242
          2015-11-28 11:00:54,278 DEBUG    Main         Item env.system.load = 0.09 via SQ            Lite None None -- item.py:set:457
          2015-11-28 11:00:54,282 DEBUG    Main         Item env.system: no type specified            . -- item.py:__init__:242
          2015-11-28 11:00:54,283 DEBUG    Main         Item env: no type specified. -- it            em.py:__init__:242
          2015-11-28 11:00:54,292 DEBUG    Main         KNX: EG.Raum00.Deckenspots.dimmen             listen on 0/4/22 -- __init__.py:parse_item:235
          2015-11-28 11:00:54,294 DEBUG    Main         KNX: EG.Raum00.Deckenspots.dimmen             listen on and init with 0/4/22 -- __init__.py:parse_item:244
          2015-11-28 11:00:54,295 DEBUG    Main         KNX: EG.Raum00.Deckenspots listen             on 1/2/1 -- __init__.py:parse_item:235
          2015-11-28 11:00:54,300 DEBUG    Main         KNX: EG.Raum00.Pendelleuchte.dimme            n listen on 0/4/23 -- __init__.py:parse_item:235
          2015-11-28 11:00:54,302 DEBUG    Main         KNX: EG.Raum00.Pendelleuchte.dimme            n listen on and init with 0/4/23 -- __init__.py:parse_item:244
          2015-11-28 11:00:54,303 DEBUG    Main         KNX: EG.Raum00.Pendelleuchte liste            n on 1/2/1 -- __init__.py:parse_item:235
          2015-11-28 11:00:54,306 DEBUG    Main         KNX: EG.Raum00.Grundbeleuchtung li            sten on 0/5/21 -- __init__.py:parse_item:235
          2015-11-28 11:00:54,310 DEBUG    Main         KNX: EG.Raum00.Stedo_Wuerfel_Sofa             listen on 0/5/21, 0/0/13 -- __init__.py:parse_item:235
          2015-11-28 11:00:54,313 DEBUG    Main         KNX: EG.Raum00.Fensterbank listen             on 0/5/5 -- __init__.py:parse_item:235
          2015-11-28 11:00:54,318 DEBUG    Main         KNX: EG.Raum00.Stedo_Schrank liste            n on 0/5/3 -- __init__.py:parse_item:235
          2015-11-28 11:00:54,321 DEBUG    Main         KNX: EG.Raum00.FreigabeTuer listen             on 0/0/24 -- __init__.py:parse_item:235
          2015-11-28 11:00:54,327 DEBUG    Main         KNX: EG.Raum00.temperature.set lis            ten on 2/1/6 -- __init__.py:parse_item:235
          2015-11-28 11:00:54,328 WARNING  Main         EG.Raum00.temperature.set deprecat            ed history attribute. Use sqlite as keyword instead. -- __init__.py:parse_item:1            14
          2015-11-28 11:00:54,333 DEBUG    Main         KNX: EG.Raum00.temperature.mode li            sten on 3/2/20 -- __init__.py:parse_item:235
          2015-11-28 11:00:54,336 DEBUG    Main         KNX: EG.Raum00.temperature.night l            isten on 3/2/20 -- __init__.py:parse_item:235
          2015-11-28 11:00:54,340 DEBUG    Main         KNX: EG.Raum00.temperature.frost l            isten on 3/2/20 -- __init__.py:parse_item:235
          2015-11-28 11:00:54,343 DEBUG    Main         KNX: EG.Raum00.temperature.state l            isten on 3/1/6 -- __init__.py:parse_item:235
          2015-11-28 11:00:54,344 DEBUG    Main         KNX: EG.Raum00.temperature.state l            isten on and init with 3/1/6 -- __init__.py:parse_item:244
          2015-11-28 11:00:54,345 WARNING  Main         EG.Raum00.temperature.state deprec            ated history attribute. Use sqlite as keyword instead. -- __init__.py:parse_item            :114
          2015-11-28 11:00:54,348 DEBUG    Main         KNX: EG.Raum00.temperature listen             on 2/0/6 -- __init__.py:parse_item:235
          2015-11-28 11:00:54,350 WARNING  Main         EG.Raum00.temperature deprecated h            istory attribute. Use sqlite as keyword instead. -- __init__.py:parse_item:114
          2015-11-28 11:00:54,354 DEBUG    Main         KNX: EG.Raum00.Fenster1 listen on             0/4/26 -- __init__.py:parse_item:235
          2015-11-28 11:00:54,355 DEBUG    Main         KNX: EG.Raum00.Fenster1 listen on             and init with 0/4/26 -- __init__.py:parse_item:244
          2015-11-28 11:00:54,359 DEBUG    Main         KNX: EG.Raum00.Tuer listen on 0/4/            24 -- __init__.py:parse_item:235
          2015-11-28 11:00:54,360 DEBUG    Main         KNX: EG.Raum00.Tuer listen on and             init with 0/4/24 -- __init__.py:parse_item:244
          2015-11-28 11:00:54,369 DEBUG    Main         KNX: EG.Raum00.Rollo.pos listen on             0/2/11 -- __init__.py:parse_item:235
          2015-11-28 11:00:54,371 DEBUG    Main         KNX: EG.Raum00.Rollo.pos listen on             and init with 0/2/11 -- __init__.py:parse_item:244
          2015-11-28 11:00:54,374 DEBUG    Main         Item EG.Raum00.Rollo: no type spec            ified. -- item.py:__init__:242
          2015-11-28 11:00:54,375 DEBUG    Main         Item EG.Raum00: no type specified.             -- item.py:__init__:242
          2015-11-28 11:00:54,376 DEBUG    Main         Item EG: no type specified. -- ite            m.py:__init__:242
          2015-11-28 11:00:54,385 DEBUG    Main         Item first.hallway: no type specif            ied. -- item.py:__init__:242
          2015-11-28 11:00:54,390 DEBUG    Main         Item first.living.light: no type s            pecified. -- item.py:__init__:242
          2015-11-28 11:00:54,432 DEBUG    Main         Item first.living.blind: no type s            pecified. -- item.py:__init__:242
          2015-11-28 11:00:54,438 DEBUG    Main         Item first.living: no type specifi            ed. -- item.py:__init__:242
          2015-11-28 11:00:54,439 DEBUG    Main         Item first: no type specified. --             item.py:__init__:242
          2015-11-28 11:00:54,448 DEBUG    Main         KNX: second.sleeping.light.level l            isten on 1/2/1 -- __init__.py:parse_item:235
          2015-11-28 11:00:54,450 DEBUG    Main         KNX: Light listen on 1/2/1 -- __in            it__.py:parse_item:235
          2015-11-28 11:00:54,477 DEBUG    Main         Item second.sleeping.blind: no typ            e specified. -- item.py:__init__:242
          2015-11-28 11:00:54,480 DEBUG    Main         Item second.sleeping: no type spec            ified. -- item.py:__init__:242
          2015-11-28 11:00:54,515 DEBUG    Main         Item second.bath.blind: no type sp            ecified. -- item.py:__init__:242
          2015-11-28 11:00:54,516 DEBUG    Main         Item second.bath: no type specifie            d. -- item.py:__init__:242
          2015-11-28 11:00:54,517 DEBUG    Main         Item second: no type specified. --             item.py:__init__:242
          2015-11-28 11:00:54,521 INFO     Main         Start Plugins -- plugin.py:start:6            5
          2015-11-28 11:00:54,545 INFO     Main         Start Logics -- logic.py:__init__:            33
          2015-11-28 11:00:54,557 DEBUG    Main         Reading Logics from /usr/smarthome            /lib/env/logic_conf -- logic.py:_read_logics:64
          2015-11-28 11:00:54,564 DEBUG    Main         Reading Logics from /usr/smarthome            /etc/logic.conf -- logic.py:_read_logics:64
          2015-11-28 11:00:54,568 DEBUG    Main         Logic: dummy -- logic.py:__init__:            44
          2015-11-28 11:00:54,641 DEBUG    Main         dummy next time: 2015-11-28 11:01:            04+01:00 -- scheduler.py:_next_time:289
          2015-11-28 11:00:54,643 DEBUG    Main         Logic: hello -- logic.py:__init__:            44
          2015-11-28 11:00:54,644 DEBUG    Connections  KNX: connected to 127.0.0.1:6720 -            - connection.py:connect:386
          2015-11-28 11:00:54,646 DEBUG    Connections  KNX: enable group monitor -- __ini            t__.py:handle_connect:117
          2015-11-28 11:00:54,648 DEBUG    Connections  KNX: init read -- __init__.py:hand            le_connect:123
          2015-11-28 11:00:54,651 DEBUG    Main         Logic: env_init -- logic.py:__init            __:44
          2015-11-28 11:00:54,656 DEBUG    Connections  WebSocket: binding to 0.0.0.0:2424             (TCP) -- connection.py:connect:161
          2015-11-28 11:00:54,661 DEBUG    Main         Logic: env_stat -- logic.py:__init            __:44
          2015-11-28 11:00:54,664 DEBUG    Connections  CLI: binding to 0.0.0.0:2323 (TCP)             -- connection.py:connect:161
          2015-11-28 11:00:54,684 DEBUG    Main         env_stat next time: 2015-11-28 11:            01:05+01:00 -- scheduler.py:_next_time:289
          2015-11-28 11:00:54,686 DEBUG    Main         Logic: env_loc -- logic.py:__init_            _:44
          2015-11-28 11:00:54,696 DEBUG    Main         KNX: 0.0.0 read 0/4/22 -- __init__            .py:parse_telegram:203
          2015-11-28 11:00:54,698 DEBUG    Main         KNX: 0.0.0 read 0/4/23 -- __init__            .py:parse_telegram:203
          2015-11-28 11:00:54,700 DEBUG    Main         KNX: 0.0.0 read 3/1/6 -- __init__.            py:parse_telegram:203
          2015-11-28 11:00:54,702 DEBUG    Main         KNX: 0.0.0 read 0/4/26 -- __init__            .py:parse_telegram:203
          2015-11-28 11:00:54,703 DEBUG    Main         KNX: 0.0.0 read 0/4/24 -- __init__            .py:parse_telegram:203
          2015-11-28 11:00:54,704 DEBUG    Main         KNX: 0.0.0 read 0/2/11 -- __init__            .py:parse_telegram:203
          2015-11-28 11:01:00,093 INFO     hello        Hello World! -- hello.py:<module>:            3
          2015-11-28 11:01:00,098 DEBUG    env_loc      Item env.location.sunrise = 2015-1            1-29 07:56:05.989014+01:00 via Logic None None -- item.py:__update:363
          2015-11-28 11:01:00,102 DEBUG    env_init     Item env.core.version = 1.0-45-g02            cf972 via Logic None None -- item.py:__update:363
          2015-11-28 11:01:00,149 DEBUG    env_init     Item env.core.start = 2015-11-28 1            1:01:00.147342+01:00 via Logic None None -- item.py:__update:363
          2015-11-28 11:01:00,155 DEBUG    sh.gc        Garbage collector: collected 0 obj            ects. -- smarthome.py:_garbage_collection:498
          2015-11-28 11:01:00,158 DEBUG    env_loc      Item env.location.sunset = 2015-11            -28 16:17:02.661043+01:00 via Logic None None -- item.py:__update:363
          2015-11-28 11:01:00,177 DEBUG    env_init     Item env.system.name = smarthome.l            ocal via Logic None None -- item.py:__update:363
          2015-11-28 11:01:00,219 DEBUG    env_loc      Item env.location.moonrise = 2015-            11-28 19:09:23.152249+01:00 via Logic None None -- item.py:__update:363
          2015-11-28 11:01:00,221 DEBUG    env_init     Item env.system.start = 2015-11-28             10:44:35.219987+01:00 via Logic None None -- item.py:__update:363
          2015-11-28 11:01:00,265 DEBUG    env_loc      Item env.location.moonset = 2015-1            1-29 10:46:40.486773+01:00 via Logic None None -- item.py:__update:363
          2015-11-28 11:01:00,276 DEBUG    sh.gc        Object references: 9216 -- smartho            me.py:_maintenance:490
          2015-11-28 11:01:00,288 DEBUG    env_loc      Item env.location.moonphase = 5 vi            a Logic None None -- item.py:__update:363
          2015-11-28 11:01:00,309 DEBUG    env_loc      Item env.location.day = True via L            ogic None None -- item.py:__update:363
          2015-11-28 11:01:00,639 DEBUG    Scheduler    env_loc next time: 2015-11-28 11:3            1:00+01:00 -- scheduler.py:_next_time:289
          2015-11-28 11:01:00,647 DEBUG    Scheduler    sh.gc next time: 2015-11-29 02:04:            00+01:00 -- scheduler.py:_next_time:289
          2015-11-28 11:01:04,159 DEBUG    dummy        Item first.living.temperature = 23             via Logic None None -- item.py:__update:363
          2015-11-28 11:01:04,163 DEBUG    dummy        Item first.living.humidity = 54 vi            a Logic None None -- item.py:__update:363
          2015-11-28 11:01:04,167 DEBUG    dummy        Item second.sleeping.temperature =             20 via Logic None None -- item.py:__update:363
          2015-11-28 11:01:04,170 DEBUG    dummy        Item second.bath.temperature = 22             via Logic None None -- item.py:__update:363
          2015-11-28 11:01:04,670 DEBUG    Scheduler    dummy next time: 2015-11-28 11:06:            04+01:00 -- scheduler.py:_next_time:289
          2015-11-28 11:01:05,213 DEBUG    env_stat     Item env.core.memory = 16408576 vi            a Logic None None -- item.py:__update:363
          2015-11-28 11:01:05,222 DEBUG    env_stat     Item env.system.load = 0.11 via Lo            gic None None -- item.py:__update:363
          2015-11-28 11:01:05,226 DEBUG    env_stat     Item env.location.moonlight = 92 v            ia Logic None None -- item.py:__update:363
          2015-11-28 11:01:05,689 DEBUG    Scheduler    env_stat next time: 2015-11-28 11:            06:05+01:00 -- scheduler.py:_next_time:289
          2015-11-28 11:01:56,230 DEBUG    Main         knx: 0.0.0 set 1/2/1 to True -- __i           nit__.py:parse_telegram:190
          2015-11-28 11:01:56,233 DEBUG    Main         Item EG.Raum00.Deckenspots = True v           ia KNX 0.0.0 1/2/1 -- item.py:__update:363
          2015-11-28 11:01:56,237 DEBUG    Main         Item EG.Raum00.Pendelleuchte = True            via KNX 0.0.0 1/2/1 -- item.py:__update:363
          2015-11-28 11:01:56,240 DEBUG    Main         Item second.sleeping.light.level =            1 via KNX 0.0.0 1/2/1 -- item.py:__update:363
          2015-11-28 11:01:56,243 DEBUG    Main         Item second.sleeping.light = True v           ia KNX 0.0.0 1/2/1 -- item.py:__update:363
          2015-11-28 11:02:05,481 DEBUG    Main         knx: 0.0.0 set 1/2/1 to False -- __           init__.py:parse_telegram:190
          2015-11-28 11:02:05,484 DEBUG    Main         Item EG.Raum00.Deckenspots = False            via KNX 0.0.0 1/2/1 -- item.py:__update:363
          2015-11-28 11:02:05,488 DEBUG    Main         Item EG.Raum00.Pendelleuchte = Fals           e via KNX 0.0.0 1/2/1 -- item.py:__update:363
          2015-11-28 11:02:05,491 DEBUG    Main         Item second.sleeping.light.level =            0 via KNX 0.0.0 1/2/1 -- item.py:__update:363
          2015-11-28 11:02:05,493 DEBUG    Main         Item second.sleeping.light = False            via KNX 0.0.0 1/2/1 -- item.py:__update:363
          2015-11-28 11:02:25,447 DEBUG    Main         knx: 0.0.0 set 1/2/2 to 01 -- __ini           t__.py:parse_telegram:181
          bei den letzten zeilen hab ich groupswrite im terminal genutzt mit 1/2/1 und 1/2/2

          scheint so als würde sh.py laufen und sogar zuhören oder?

          Kommentar


            #6
            liegt das Jetzt vllt an den Items hab die Items.
            hab da noch nichts geändert außer ein paar GA's (1/2/1).
            ist das Template Alber.smarthome.py

            Wenn ich ein Button drücke passiert nichts kein telegramm oder so.

            Kommentar


              #7
              Es klappt!

              ich hab die Items angepasst dann konnte ich auch etwas schalten.
              hätte ich aber ohne den tip mit dem Debugmodus nicht geschafft. DANKE!

              hatte auch noch ne falsche einstellung bei der plugin.conf gefunden

              Code:
               [visu]    
              
              class_name = WebSocket    
              class_path = plugins.visu    
              ip='127.0.0.1'  ---> muss ip='0.0.0.0' sein dann klappts      
              port=2424
              #   acl = ro    
              smartvisu_dir = /var/www/smartvisu
              hab nun nur noch ein problem wenn ich von meinem handy aus zugreife kommt "could not connect do smarthome.py"
              und das rote error dreieck ich such mal im forum ob es da schon was gibt sonst mach ich mal einen threat auf.

              Besten dank für die Hilfe und viele Grüße.

              Kommentar


                #8
                Es kann sein, das Dein Handy-Browser keine Websockets unterstützt ...
                (BTW: Thread = Faden im Sinne Gesprächsfaden, Threat = Bedrohung)

                Gruß,
                Bernd

                Kommentar

                Lädt...
                X