Ankündigung

Einklappen
Keine Ankündigung bisher.

- √ - Keine Kommunikation zw. Smarthome & Smartvisu

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

    - √ - Keine Kommunikation zw. Smarthome & Smartvisu

    Bin gerade dabei mich mit der Smartvisu auf einem Raspberry zu beschäftigen, und scheitere bereits an der Buskommunikation auf der Visu Seite.
    Ich hab jetzt schon ziemlich alle WiKis und Forenbeiträge durch, aber komme nicht weiter.

    Ich verwende das aktuelle Image dieser Seite: code.google.com/p/smartvisu/
    und hab ich auch an die vorgaben im WiKi gehalten.

    Die eibd Schnittstelle hab ich in der /etc/default/eibd eingerichtet.
    Die Kommunikation im SSH mit dem Befehl
    "groupswrite ip:localhost 1/4/10 1" schaltet auch erfolgreich meine Bürolampe ein,
    wenn ich aber in der Smartvisu die Lampe schalten will, zeigt es keine reaktion.

    In der Configuration-Seite der Weboberfläche erhalte ich auch eine Fehlermeldung wenn ich die
    Schnittstelle "smarthome.py" auswähle. (Siehe Bild).
    Wenn ich dort auch eibd auswähle und die IP der IP-Schnittstelle eingebe erhalte ich keine Fehlermeldung,
    aber eib-Befehle werden auch nicht gesendet.

    Auf der SmartControl Seite zeigt er mir an, dass smarthome.py läuft:
    Status... Checking services...
    owhttpd [STOPPED]>START
    eibd [OK]>RESTART
    owserver [STOPPED]>START
    smarthome.py [OK]>RESTART


    Hier meine Dateien:

    config.php

    Code:
    <?php
    /**
      * -----------------------------------------------------------------------------
      * @package     smartVISU
      * @author      Martin Gleiß
      * @copyright   2012
      * @license     GPL [http://www.gnu.de]
      * -----------------------------------------------------------------------------
      */
    
    
        define('config_pages', 'beispiel');
        define('config_design', 'greenhornet');
        define('config_cache', true);
        define('config_title', 'SmartHome.Pi');
        define('config_lang', 'de');
        define('config_driver', 'smarthome.py');
        define('config_driver_address', 'smarthome.local');
        define('config_driver_port', '2424');
        define('config_driver_realtime', true);
        define('config_weather_service', 'yr.no');
        define('config_weather_location', '/Tyskland/Bayern/Ortenburg');
        define('config_weather_key', '');
        define('config_phone_service', 'auerswald');
        define('config_phone_server', '192.168.0.240');
        define('config_phone_user', 'admin');
        define('config_phone_pass', '000000');
        define('config_calendar_service', 'offline');
        define('config_calendar_url', 'http://www.google.com/calendar/feeds/...');
    
    ?>
    /etc/default/eibd:
    Code:
    EIB_ARGS="--daemon --Server --Tunnelling --Discovery --GroupCache --listen-tcp"
    #EIB_ADDR="0.0.1"
    #EIB_IF="tpuarts:/dev/ttyAMA0"
    EIB_IF="ipt:192.168.0.238"
    EIB_UID="1000"
    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/1/1 # default none
    #   date_ga = 1/1/2 # default none
    
    [ow]
        class_name = OneWire
        class_path = plugins.onewire
    #    host = 127.0.0.1
    #    port = 4304
    
    [cli]
        class_name = CLI
        class_path = plugins.cli
        ip = 0.0.0.0
        update = True
    
    [visu]
        class_name = WebSocket
        class_path = plugins.visu
    #   ip='0.0.0.0'
    #   port=2424
        smartvisu_dir = /var/www/smartvisu
    
    [sql]
        class_name = SQL
        class_path = plugins.sqlite
    
    [rrd]
        class_name = RRD
        class_path = plugins.rrd
        step = 300
    items.conf
    Code:
    [EG]
        [[Raum00]]
            name = Office
            [[[Grundbeleuchtung]]]
                type = bool
                visu = yes
                knx_dpt = 1
                knx_listen = 1/4/50
                knx_send = 1/4/10
            [[[Rollo]]]
                [[[[move]]]]
                    type = num
                    visu = yes
                      knx_dpt = 1
                    knx_send = 1/4/30
                [[[[stop]]]]
                    type = num
                    visu = yes
                    enforce_updates = yes
                      knx_dpt = 1
                    knx_send = 1/4/31
                [[[[pos]]]]
                    type = num
                    visu = yes
                    knx_dpt = 5
                    knx_listen = 1/4/62
                    knx_send = 1/4/32
                    knx_init = 1/4/62
                [[[[tilt]]]]
                    type = num
                    visu = yes
    Angehängte Dateien

    #2
    Hi,

    vllt. kommt Dein OS/Browser nicht mit smarthome.local klar.
    Probier mal in der smartVISU die IP des Pi einzutragen.

    Weiterhin kannst mal telnet IP 2424 durchführen, dann solltest Du im Log (/usr/smarthome/var/log/smarthome.log) eine Meldung sehen.

    Welchen Browser verwendest Du denn? Inkl. Versionsnummer
    Bis bald

    Marcus

    Kommentar


      #3
      Hallo,

      Danke für deine Antwort,

      Als Browser verwende ich Firefox Ver. 23.0.1
      Hab es aber auch gerade mit dem IE10 getestet (V10.0.9200.16660), da kommt auch die gleiche Meldung.

      Die IP Adresse des Pi hab ich auch gerade in der Config versucht, genauso wie 127.0.0.1, es kommt immer die Fehlermeldung
      "Could not connect to smarthome.py server!
      Websocket error undefined."

      Hab auch gerade den Telnet Befehl versucht, hier das logfile, da steht auch eine incoming connection von meiner IP, aber nichts weiter.

      Code:
      2013-08-22 16:32:24,429 SmartHome.py INFO     Start SmartHome.py 0.9-18-g86b5a20 -- smarthome.py:__init__:192
      2013-08-22 16:32:24,433 SmartHome.py DEBUG    Python 2.7.3 -- smarthome.py:__init__:193
      2013-08-22 16:32:24,439 SmartHome.py INFO     Init Scheduler -- scheduler.py:__init__:53
      2013-08-22 16:32:24,443 SmartHome.py INFO     Init Plugins -- smarthome.py:__init__:208
      2013-08-22 16:32:24,451 Scheduler    DEBUG    creating 5 workers -- scheduler.py:run:59
      2013-08-22 16:32:24,472 SmartHome.py DEBUG    Plugin: knx -- plugin.py:__init__:42
      2013-08-22 16:32:24,509 SmartHome.py DEBUG    Plugin: ow -- plugin.py:__init__:42
      2013-08-22 16:32:24,524 SmartHome.py ERROR    Onewire: could not connect to 127.0.0.1:4304: [Errno 111] Connection refused -- __init__.py:connect:62
      2013-08-22 16:32:24,529 SmartHome.py DEBUG    Plugin: cli -- plugin.py:__init__:42
      2013-08-22 16:32:24,541 SmartHome.py DEBUG    Plugin: visu -- plugin.py:__init__:42
      2013-08-22 16:32:24,626 SmartHome.py DEBUG    Plugin: sql -- plugin.py:__init__:42
      2013-08-22 16:32:24,653 SmartHome.py DEBUG    SQLite 3.7.13 -- __init__.py:__init__:60
      2013-08-22 16:32:24,681 SmartHome.py DEBUG    sqlite next time: 2013-08-23 03:02:00+02:00 -- scheduler.py:_next_time:243
      2013-08-22 16:32:24,684 SmartHome.py DEBUG    Plugin: rrd -- plugin.py:__init__:42
      2013-08-22 16:32:24,786 SmartHome.py INFO     Init Items -- smarthome.py:__init__:210
      2013-08-22 16:32:24,856 SmartHome.py DEBUG    knx: EG.Raum00.Deckenspots.dimmen listen on 0/4/22 -- __init__.py:parse_item:234
      2013-08-22 16:32:24,859 SmartHome.py DEBUG    knx: EG.Raum00.Deckenspots.dimmen listen on and init with 0/4/22 -- __init__.py:parse_item:243
      2013-08-22 16:32:24,862 SmartHome.py DEBUG    knx: EG.Raum00.Deckenspots listen on 0/5/23 -- __init__.py:parse_item:234
      2013-08-22 16:32:24,872 SmartHome.py DEBUG    knx: EG.Raum00.Pendelleuchte.dimmen listen on 0/4/23 -- __init__.py:parse_item:234
      2013-08-22 16:32:24,874 SmartHome.py DEBUG    knx: EG.Raum00.Pendelleuchte.dimmen listen on and init with 0/4/23 -- __init__.py:parse_item:243
      2013-08-22 16:32:24,878 SmartHome.py DEBUG    knx: EG.Raum00.Pendelleuchte listen on 0/5/24 -- __init__.py:parse_item:234
      2013-08-22 16:32:24,886 SmartHome.py DEBUG    knx: EG.Raum00.Grundbeleuchtung listen on 1/4/50 -- __init__.py:parse_item:234
      2013-08-22 16:32:24,892 SmartHome.py DEBUG    knx: EG.Raum00.Stedo_Wuerfel_Sofa listen on 1/4/50 -- __init__.py:parse_item:234
      2013-08-22 16:32:24,899 SmartHome.py DEBUG    knx: EG.Raum00.Fensterbank listen on 1/4/50 -- __init__.py:parse_item:234
      2013-08-22 16:32:24,906 SmartHome.py DEBUG    knx: EG.Raum00.Stedo_Schrank listen on 1/4/50 -- __init__.py:parse_item:234
      2013-08-22 16:32:24,912 SmartHome.py DEBUG    knx: EG.Raum00.FreigabeTuer listen on 0/0/24 -- __init__.py:parse_item:234
      2013-08-22 16:32:24,924 SmartHome.py DEBUG    knx: EG.Raum00.temperature.set listen on 1/4/1 -- __init__.py:parse_item:234
      2013-08-22 16:32:24,931 SmartHome.py DEBUG    knx: EG.Raum00.temperature.mode listen on 3/2/20 -- __init__.py:parse_item:234
      2013-08-22 16:32:24,938 SmartHome.py DEBUG    knx: EG.Raum00.temperature.night listen on 3/2/20 -- __init__.py:parse_item:234
      2013-08-22 16:32:24,945 SmartHome.py DEBUG    knx: EG.Raum00.temperature.frost listen on 3/2/20 -- __init__.py:parse_item:234
      2013-08-22 16:32:24,952 SmartHome.py DEBUG    knx: EG.Raum00.temperature.state listen on 3/1/6 -- __init__.py:parse_item:234
      2013-08-22 16:32:24,954 SmartHome.py DEBUG    knx: EG.Raum00.temperature.state listen on and init with 3/1/6 -- __init__.py:parse_item:243
      2013-08-22 16:32:24,958 SmartHome.py DEBUG    knx: EG.Raum00.temperature listen on 1/4/0 -- __init__.py:parse_item:234
      2013-08-22 16:32:24,966 SmartHome.py DEBUG    knx: EG.Raum00.Fenster1 listen on 0/4/26 -- __init__.py:parse_item:234
      2013-08-22 16:32:24,970 SmartHome.py DEBUG    knx: EG.Raum00.Fenster1 listen on and init with 0/4/26 -- __init__.py:parse_item:243
      2013-08-22 16:32:24,977 SmartHome.py DEBUG    knx: EG.Raum00.Tuer listen on 0/4/24 -- __init__.py:parse_item:234
      2013-08-22 16:32:24,980 SmartHome.py DEBUG    knx: EG.Raum00.Tuer listen on and init with 0/4/24 -- __init__.py:parse_item:243
      2013-08-22 16:32:25,001 SmartHome.py DEBUG    knx: EG.Raum00.Rollo.pos listen on 1/4/62 -- __init__.py:parse_item:234
      2013-08-22 16:32:25,005 SmartHome.py DEBUG    knx: EG.Raum00.Rollo.pos listen on and init with 1/4/62 -- __init__.py:parse_item:243
      2013-08-22 16:32:25,041 SmartHome.py DEBUG    knx: Grundbeleuchtung listen on 1/4/50 -- __init__.py:parse_item:234
      2013-08-22 16:32:25,058 SmartHome.py DEBUG    knx: OG.buero.rollo.pos listen on 1/4/62 -- __init__.py:parse_item:234
      2013-08-22 16:32:25,061 SmartHome.py DEBUG    knx: OG.buero.rollo.pos listen on and init with 1/4/62 -- __init__.py:parse_item:243
      2013-08-22 16:32:25,185 SmartHome.py DEBUG    knx: Grundbeleuchtung listen on 1/4/50 -- __init__.py:parse_item:234
      2013-08-22 16:32:25,204 SmartHome.py DEBUG    knx: first.buero.blind.pos listen on 1/4/62 -- __init__.py:parse_item:234
      2013-08-22 16:32:25,206 SmartHome.py DEBUG    knx: first.buero.blind.pos listen on and init with 1/4/62 -- __init__.py:parse_item:243
      2013-08-22 16:32:25,296 SmartHome.py DEBUG    knx: second.sleeping.light.level listen on 3/2/14 -- __init__.py:parse_item:234
      2013-08-22 16:32:25,300 SmartHome.py DEBUG    knx: Light listen on 3/2/12 -- __init__.py:parse_item:234
      2013-08-22 16:32:25,522 SmartHome.py INFO     Start Plugins -- plugin.py:start:63
      2013-08-22 16:32:25,532 ow           DEBUG    1w-disc next time: 2013-08-22 16:32:25+02:00 -- scheduler.py:_next_time:243
      2013-08-22 16:32:25,559 SmartHome.py INFO     Start Logics -- logic.py:__init__:32
      2013-08-22 16:32:25,562 SmartHome.py DEBUG    reading logics from /usr/smarthome/etc/logic.conf -- logic.py:__init__:38
      2013-08-22 16:32:25,571 rrd          DEBUG    rrd next time: 2013-08-22 16:34:05+02:00 -- scheduler.py:_next_time:243
      2013-08-22 16:32:25,576 SmartHome.py DEBUG    Logic: hello -- logic.py:__init__:45
      2013-08-22 16:32:25,643 SmartHome.py DEBUG    Logic: dummy -- logic.py:__init__:45
      2013-08-22 16:32:25,639 sh.con       DEBUG    knx: enable group monitor -- __init__.py:handle_connect:110
      2013-08-22 16:32:25,653 sh.con       DEBUG    knx: init read -- __init__.py:handle_connect:116
      2013-08-22 16:32:25,661 SmartHome.py DEBUG    dummy next time: 2013-08-22 16:32:32+02:00 -- scheduler.py:_next_time:243
      2013-08-22 16:32:25,697 sh.con       INFO     KNX: connected to 127.0.0.1:6720 -- my_asynchat.py:connect:69
      2013-08-22 16:32:25,731 SmartHome.py DEBUG    0.0.0 read 0/4/22 -- __init__.py:parse_telegram:202
      2013-08-22 16:32:25,734 SmartHome.py DEBUG    0.0.0 read 0/4/23 -- __init__.py:parse_telegram:202
      2013-08-22 16:32:25,751 SmartHome.py DEBUG    0.0.0 read 3/1/6 -- __init__.py:parse_telegram:202
      2013-08-22 16:32:25,754 SmartHome.py DEBUG    0.0.0 read 0/4/26 -- __init__.py:parse_telegram:202
      2013-08-22 16:32:25,772 SmartHome.py DEBUG    0.0.0 read 0/4/24 -- __init__.py:parse_telegram:202
      2013-08-22 16:32:25,775 SmartHome.py DEBUG    0.0.0 read 1/4/62 -- __init__.py:parse_telegram:202
      2013-08-22 16:32:25,778 SmartHome.py DEBUG    0.0.0 read 1/4/62 -- __init__.py:parse_telegram:202
      2013-08-22 16:32:25,791 SmartHome.py DEBUG    0.0.0 read 1/4/62 -- __init__.py:parse_telegram:202
      2013-08-22 16:32:25,801 SmartHome.py DEBUG    knx: 1.1.101 set 1/4/62 to 0 -- __init__.py:parse_telegram:189
      2013-08-22 16:32:25,796 visu         DEBUG    series next time: 2013-08-22 16:32:37+02:00 -- scheduler.py:_next_time:243
      2013-08-22 16:32:25,828 Scheduler    DEBUG    1w-disc next time: 2013-08-22 16:42:25+02:00 -- scheduler.py:_next_time:243
      2013-08-22 16:32:25,905 sh.gc        DEBUG    Garbage collector: collected 1352 objects. -- smarthome.py:_garbage_collection:345
      2013-08-22 16:32:26,052 Scheduler    DEBUG    sh.gc next time: 2013-08-23 02:04:00+02:00 -- scheduler.py:_next_time:243
      2013-08-22 16:32:29,108 hello        INFO     Hello World! -- hello.py:<module>:3
      2013-08-22 16:32:32,116 dummy        DEBUG    first.living.temperature = 23 via Logic None -- item.py:_update:219
      2013-08-22 16:32:32,312 Scheduler    DEBUG    dummy next time: 2013-08-22 16:37:32+02:00 -- scheduler.py:_next_time:243
      2013-08-22 16:32:33,457 dummy        DEBUG    first.living.humidity = 48 via Logic None -- item.py:_update:219
      2013-08-22 16:32:33,529 dummy        DEBUG    second.sleeping.temperature = 19 via Logic None -- item.py:_update:219
      2013-08-22 16:32:33,600 dummy        DEBUG    second.bath.temperature = 23 via Logic None -- item.py:_update:219
      2013-08-22 16:32:37,363 Scheduler    DEBUG    series next time: 2013-08-22 16:32:47+02:00 -- scheduler.py:_next_time:243
      2013-08-22 16:32:45,517 SmartHome.py INFO     WebSocket: incoming connection from 192.168.0.169:54772 -- __init__.py:handle_accept:117
      2013-08-22 16:32:47,256 Scheduler    DEBUG    series next time: 2013-08-22 16:32:57+02:00 -- scheduler.py:_next_time:243
      2013-08-22 16:32:57,349 Scheduler    DEBUG    series next time: 2013-08-22 16:33:07+02:00 -- scheduler.py:_next_time:243
      2013-08-22 16:33:07,267 Scheduler    DEBUG    series next time: 2013-08-22 16:33:17+02:00 -- scheduler.py:_next_time:243
      2013-08-22 16:33:17,371 Scheduler    DEBUG    series next time: 2013-08-22 16:33:27+02:00 -- scheduler.py:_next_time:243
      2013-08-22 16:33:20,802 SmartHome.py CRITICAL Unhandled exception: WebSocketHandler instance has no attribute 'json_send'
      <type 'exceptions.AttributeError'>
        File "/usr/smarthome/bin/smarthome.py", line 493, in <module>
          sh = SmartHome()
        File "/usr/smarthome/bin/smarthome.py", line 244, in __init__
          asyncore.loop(timeout=1, count=1, map=self.socket_map)
        File "/usr/lib/python2.7/asyncore.py", line 220, in loop
          poll_fun(timeout, map)
        File "/usr/lib/python2.7/asyncore.py", line 156, in poll
          read(obj)
        File "/usr/lib/python2.7/asyncore.py", line 87, in read
          obj.handle_error()
        File "/usr/lib/python2.7/asyncore.py", line 503, in handle_error
          self.handle_close()
        File "/usr/smarthome/plugins/visu/__init__.py", line 242, in handle_close
          del(self.json_send, self.parse_data)
       -- smarthome.py:_excepthook:377
      2013-08-22 16:33:27,265 Scheduler    DEBUG    series next time: 2013-08-22 16:33:37+02:00 -- scheduler.py:_next_time:243
      2013-08-22 16:33:37,363 Scheduler    DEBUG    series next time: 2013-08-22 16:33:47+02:00 -- scheduler.py:_next_time:243
      2013-08-22 16:33:47,256 Scheduler    DEBUG    series next time: 2013-08-22 16:33:57+02:00 -- scheduler.py:_next_time:243

      Kommentar


        #4
        Hi Mike,

        Zitat von Mike01 Beitrag anzeigen
        aber nichts weiter.
        bis auf die Meldung 'CRITICAL' :-)

        Du verwendest doch das Pi Image, dann gehe mal auf smartcontrol.local und update das System. Dann ist der Critical-Bug gefixed.

        Bis bald

        Marcus

        Kommentar


          #5
          Hi,

          Das Image ist aktuell, hab es erst gestern neu auf die SD kopiert, und danach aktualisiert. Hab den Updatevorgang gerade übers SmartControl neu gestartet, aber er meldet keine neuen Updates.

          Soll ich es am besten nochmal neu kopieren, oder ist Debian besser, und dann alles einzeln installieren ?
          Dachte halt das Image ist am einfachsten, weil alle treiber etc. fertig eingerichtet wären.

          lg Mike

          Kommentar


            #6
            Hi Mike,

            das mit dem Images ist schon richtig.
            Ich habe nur kurz vor meinem Post noch einen Patch gemacht.
            Bitte führe das Update noch einmal durch und danach poste bitte noch einmal ein Logfile mit Verbindungsversuchen.

            Bis bald

            Marcus

            Kommentar


              #7
              Hi Marcus,

              Danke für die Nachricht, Ich hab in der zwischenzeit den Pi nochmal neu installiert, und dann über das controlpanel die Updates geladen.

              Danach hab ich eine neue Visu erstellt, und getestet.

              Ergebnis:
              In der Config geht die Eib-Verbindung nur, wenn ich die IP des Raspberry direkt eingebe, bei smarthome.local bekomm ich immer noch einen Error.
              Aber immerhin klappt die kommunikation schon mal.

              Danke für deine schnelle Hilfe und für den Patch.

              lg Mike
              Angehängte Dateien

              Kommentar


                #8
                Hi Mike,

                schön das es geklappt hat. Setzte in Zukunft dann bitte immer den gelöst-Haken. Oben bei Themenoptionen.

                Bis bald

                Marcus

                Kommentar


                  #9
                  Hallo,

                  ich würde gerne das Thema nochmal aufgreifen. Bei mir funktioniert die Kommunikation zwischen Smarthome und Smartvisu ebenfalls nicht richtig. Ich habe in der Weboberfläche zwar keine Fehlermeldung, aber im Log sehe ich keine Reaktion, wenn ich eine Lampe schalten will ({{ basic.switch('OG.Galerie.Wandleuchten', 'OG.Galerie.Wandleuchten') }}).

                  Ich habe einen RaspberryPi 2 wie unter https://knx-user-forum.de/forum/suppo...e-py#post42556 beschrieben installiert. Update über smartControl ist durchgeführt:

                  Code:
                  Updating system...
                  Please wait...........
                  [OK]
                  
                  Updating SmartHome.py
                  
                  HEAD is now at 0c41302 lib/logic use uff-8 encoding
                  Already up-to-date.
                  Restarting SmartHome.py smarthome.py
                  
                  Updating smartVISU
                  
                  Reverted 'temp/offline_berlenz.var'
                  Reverted 'temp/offline_fleischer.var'
                  Reverted 'temp/offline_alber.eibd.var'
                  Reverted 'temp/offline_meister.var'
                  Reverted 'temp/offline_gleiss.linknx.var'
                  Reverted 'temp/offline_otterstaetter.var'
                  Reverted 'temp/offline_docu.var'
                  Reverted 'temp/offline_alber.smarthome.py.var'
                  Reverted 'temp/offline_gleiss.smarthome.py.var'
                  Updating '.':
                  
                  Fetching external item into 'vendor/Twig':
                  
                  
                  Fetching external item into 'vendor/jquery.cycle2':
                  External at revision 97.
                  
                  
                  Fetching external item into 'vendor/google.prettify/src':
                  External at revision 304.
                  
                  
                  Fetching external item into 'vendor/google.prettify/styles':
                  External at revision 304.
                  
                  At revision 589.
                  
                  Your commands...
                  Konfiguration ist wie oben beschrieben, IP unter Configuration / I/O Connection ist eingetragen

                  Zuhause.conf:
                  Code:
                  [OG]
                    name = OG
                    [[Galerie]]
                      name = Galerie
                      [[[Wandleuchten]]]
                        name = Wandleuchten schalten
                        type = bool
                        visu_acl = rw
                        knx_dpt = 1
                        knx_listen = 1/0/26
                        knx_send = 1/0/25
                        knx_init = 1/0/26
                  Telegramme kommen aber im Log rein:
                  Code:
                  2015-04-19 19:36:29,157 DEBUG    Main         knx: 1.1.41 set 3/1/15 to 0c65 -- __init__.py:parse_telegram:181
                  "groupswrite ip:localhost 1/0/25 1" und "telnet 192.166.178.97 2424" geht:
                  Code:
                  2015-04-19 19:34:57,217 DEBUG    Main         WebSocket: incoming connection from 192.168.178.97:40717 to 0.0.0.0:2424 -- connection.py:accept:188
                  Interaktiv gehts auch:
                  Code:
                  admin@smarthome:/usr/smarthome/items$ smarthome.py -i
                  Python 3.2.3 (default, Mar  1 2013, 11:53:50)
                  [GCC 4.6.3] on linux2
                  Type "help", "copyright", "credits" or "license" for more information.
                  (InteractiveConsole)
                  >>> sh.OG.Galerie.Wandleuchten("on")
                  Logfile sieht so aus:
                  Code:
                  2015-04-19 20:02:10,764 INFO     Main         Start SmartHome.py 1.0-41-g0c41302 -- smarthome.py:__init__:231
                  2015-04-19 20:02:10,766 DEBUG    Main         Python 3.2.3 -- smarthome.py:__init__:232
                  2015-04-19 20:02:10,768 INFO     Main         Init Scheduler -- scheduler.py:__init__:86
                  2015-04-19 20:02:10,770 DEBUG    Scheduler    creating 5 workers -- scheduler.py:run:93
                  2015-04-19 20:02:10,771 INFO     Main         Init Plugins -- smarthome.py:start:274
                  2015-04-19 20:02:10,780 DEBUG    Main         Plugin: knx -- plugin.py:__init__:43
                  2015-04-19 20:02:10,794 DEBUG    Main         Plugin: visu -- plugin.py:__init__:43
                  2015-04-19 20:02:10,834 DEBUG    Main         Plugin: cli -- plugin.py:__init__:43
                  2015-04-19 20:02:10,839 DEBUG    Main         Plugin: sql -- plugin.py:__init__:43
                  2015-04-19 20:02:10,855 DEBUG    Main         SQLite 3.7.13 -- __init__.py:__init__:62
                  2015-04-19 20:02:10,888 DEBUG    Main         SQLite: database integrity ok -- __init__.py:__init__:78
                  2015-04-19 20:02:10,900 DEBUG    Main         SQLite pack next time: 2015-04-20 03:02:00+02:00 -- scheduler.py:_next_time:289
                  2015-04-19 20:02:10,902 INFO     Main         Init Items -- smarthome.py:start:280
                  2015-04-19 20:02:10,940 DEBUG    Main         Item env.core.memory = 14225408.0 via SQLite None None -- item.py:set:457
                  2015-04-19 20:02:10,952 DEBUG    Main         Item env.core.threads = 7.0 via SQLite None None -- item.py:set:457
                  2015-04-19 20:02:10,963 DEBUG    Main         Item env.core.garbage = 0.0 via SQLite None None -- item.py:set:457
                  2015-04-19 20:02:10,966 DEBUG    Main         Item env.core: no type specified. -- item.py:__init__:242
                  2015-04-19 20:02:10,994 DEBUG    Main         Item env.location: no type specified. -- item.py:__init__:242
                  2015-04-19 20:02:11,009 DEBUG    Main         Item env.system.load = 0.01 via SQLite None None -- item.py:set:457
                  2015-04-19 20:02:11,015 DEBUG    Main         Item env.system: no type specified. -- item.py:__init__:242
                  2015-04-19 20:02:11,016 DEBUG    Main         Item env: no type specified. -- item.py:__init__:242
                  2015-04-19 20:02:11,026 DEBUG    Main         KNX: Wandleuchten schalten listen on 1/0/26 -- __init__.py:parse_item:235
                  2015-04-19 20:02:11,027 DEBUG    Main         KNX: Wandleuchten schalten listen on and init with 1/0/26 -- __init__.py:parse_item:244
                  2015-04-19 20:02:11,029 DEBUG    Main         Item OG.Galerie: no type specified. -- item.py:__init__:242
                  2015-04-19 20:02:11,033 DEBUG    Main         Item OG.Gast: no type specified. -- item.py:__init__:242
                  2015-04-19 20:02:11,037 DEBUG    Main         Item OG.DU_WC: no type specified. -- item.py:__init__:242
                  2015-04-19 20:02:11,041 DEBUG    Main         Item OG.Speicher: no type specified. -- item.py:__init__:242
                  2015-04-19 20:02:11,042 DEBUG    Main         Item OG: no type specified. -- item.py:__init__:242
                  2015-04-19 20:02:11,048 DEBUG    Main         Item EG.Wohnen: no type specified. -- item.py:__init__:242
                  2015-04-19 20:02:11,052 DEBUG    Main         Item EG.Essen: no type specified. -- item.py:__init__:242
                  2015-04-19 20:02:11,056 DEBUG    Main         Item EG.Kueche: no type specified. -- item.py:__init__:242
                  2015-04-19 20:02:11,060 DEBUG    Main         Item EG.Schlafen: no type specified. -- item.py:__init__:242
                  2015-04-19 20:02:11,065 DEBUG    Main         Item EG.Bad: no type specified. -- item.py:__init__:242
                  2015-04-19 20:02:11,068 DEBUG    Main         Item EG.Abstellraum: no type specified. -- item.py:__init__:242
                  2015-04-19 20:02:11,072 DEBUG    Main         Item EG.Diele: no type specified. -- item.py:__init__:242
                  2015-04-19 20:02:11,074 DEBUG    Main         Item EG: no type specified. -- item.py:__init__:242
                  2015-04-19 20:02:11,080 DEBUG    Main         Item KG.Party: no type specified. -- item.py:__init__:242
                  2015-04-19 20:02:11,084 DEBUG    Main         Item KG.DU_WC: no type specified. -- item.py:__init__:242
                  2015-04-19 20:02:11,088 DEBUG    Main         Item KG.Flur: no type specified. -- item.py:__init__:242
                  2015-04-19 20:02:11,092 DEBUG    Main         Item KG.HWR: no type specified. -- item.py:__init__:242
                  2015-04-19 20:02:11,096 DEBUG    Main         Item KG.Garage: no type specified. -- item.py:__init__:242
                  2015-04-19 20:02:11,098 DEBUG    Main         Item KG: no type specified. -- item.py:__init__:242
                  2015-04-19 20:02:11,100 INFO     Main         Start Plugins -- plugin.py:start:65
                  2015-04-19 20:02:11,145 INFO     Main         Start Logics -- logic.py:__init__:33
                  2015-04-19 20:02:11,155 DEBUG    Main         Reading Logics from /usr/smarthome/lib/env/logic_conf -- logic.py:_read_logics:64
                  2015-04-19 20:02:11,160 DEBUG    Main         Reading Logics from /usr/smarthome/etc/logic.conf -- logic.py:_read_logics:64
                  2015-04-19 20:02:11,165 DEBUG    Main         Logic: dummy -- logic.py:__init__:44
                  2015-04-19 20:02:11,199 DEBUG    Main         dummy next time: 2015-04-19 20:02:26+02:00 -- scheduler.py:_next_time:289
                  2015-04-19 20:02:11,201 DEBUG    Main         Logic: hello -- logic.py:__init__:44
                  2015-04-19 20:02:11,206 DEBUG    Main         Logic: env_init -- logic.py:__init__:44
                  2015-04-19 20:02:11,212 DEBUG    Main         Logic: env_stat -- logic.py:__init__:44
                  2015-04-19 20:02:11,220 DEBUG    Main         env_stat next time: 2015-04-19 20:02:23+02:00 -- scheduler.py:_next_time:289
                  2015-04-19 20:02:11,222 DEBUG    Main         Logic: env_loc -- logic.py:__init__:44
                  2015-04-19 20:02:11,359 DEBUG    Connections  KNX: connected to 127.0.0.1:6720 -- connection.py:connect:386
                  2015-04-19 20:02:11,361 DEBUG    Connections  KNX: enable group monitor -- __init__.py:handle_connect:117
                  2015-04-19 20:02:11,362 DEBUG    Connections  KNX: init read -- __init__.py:handle_connect:123
                  2015-04-19 20:02:11,365 DEBUG    Connections  WebSocket: binding to 0.0.0.0:2424 (TCP) -- connection.py:connect:161
                  2015-04-19 20:02:11,367 DEBUG    Connections  CLI: binding to 0.0.0.0:2323 (TCP) -- connection.py:connect:161
                  2015-04-19 20:02:12,234 DEBUG    Main         KNX: 0.0.0 read 1/0/26 -- __init__.py:parse_telegram:203
                  2015-04-19 20:02:12,301 DEBUG    Main         knx: 1.1.7 set 1/0/26 to False -- __init__.py:parse_telegram:190
                  2015-04-19 20:02:13,877 DEBUG    Main         knx: 1.1.15 set 6/0/2 to 3c26 -- __init__.py:parse_telegram:181
                  2015-04-19 20:02:16,340 INFO     hello        Hello World! -- hello.py:&lt;module&gt;:3
                  2015-04-19 20:02:16,375 DEBUG    env_init     Item env.core.version = 1.0-41-g0c41302 via Logic None None -- item.py:__update:363
                  2015-04-19 20:02:16,379 DEBUG    env_loc      Item env.location.sunrise = 2015-04-20 06:31:23.457339+02:00 via Logic None None -- item.py:__update:363
                  2015-04-19 20:02:16,380 DEBUG    sh.gc        Garbage collector: collected 0 objects. -- smarthome.py:_garbage_collection:498
                  2015-04-19 20:02:16,388 DEBUG    env_init     Item env.core.start = 2015-04-19 20:02:16.385815+02:00 via Logic None None -- item.py:__update:363
                  2015-04-19 20:02:16,412 DEBUG    env_loc      Item env.location.sunset = 2015-04-19 20:31:51.806852+02:00 via Logic None None -- item.py:__update:363
                  2015-04-19 20:02:16,427 DEBUG    env_init     Item env.system.name = smarthome.local via Logic None None -- item.py:__update:363
                  2015-04-19 20:02:16,482 DEBUG    env_loc      Item env.location.moonrise = 2015-04-20 07:43:26.295157+02:00 via Logic None None -- item.py:__update:363
                  2015-04-19 20:02:16,491 DEBUG    env_init     Item env.system.start = 2015-04-19 10:58:22.488744+02:00 via Logic None None -- item.py:__update:363
                  2015-04-19 20:02:16,493 DEBUG    sh.gc        Object references: 8933 -- smarthome.py:_maintenance:490
                  2015-04-19 20:02:16,516 DEBUG    env_loc      Item env.location.moonset = 2015-04-19 21:32:41.120187+02:00 via Logic None None -- item.py:__update:363
                  2015-04-19 20:02:16,542 DEBUG    env_loc      Item env.location.day = True via Logic None None -- item.py:__update:363
                  2015-04-19 20:02:16,911 DEBUG    Scheduler    env_loc next time: 2015-04-19 20:32:16+02:00 -- scheduler.py:_next_time:289
                  2015-04-19 20:02:16,920 DEBUG    Scheduler    sh.gc next time: 2015-04-20 02:04:00+02:00 -- scheduler.py:_next_time:289
                  2015-04-19 20:02:23,478 DEBUG    env_stat     Item env.core.memory = 15994880 via Logic None None -- item.py:__update:363
                  2015-04-19 20:02:23,483 DEBUG    env_stat     Item env.location.moonlight = 1 via Logic None None -- item.py:__update:363
                  2015-04-19 20:02:23,948 DEBUG    Scheduler    env_stat next time: 2015-04-19 20:07:23+02:00 -- scheduler.py:_next_time:289
                  2015-04-19 20:02:25,876 DEBUG    Main         knx: 1.1.15 set 6/0/3 to 353f -- __init__.py:parse_telegram:181
                  2015-04-19 20:02:26,463 ERROR    dummy        Logic: dummy, File: /usr/smarthome/logics/dummy_series.py, Line: 2, Method: &lt;module&gt;, Exception: 'SmartHome' object has no attribute 'first' -- scheduler.py:_task:334
                  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 &lt;module&gt;
                      sh.first.living.temperature(random.randint(20, 23))
                  AttributeError: 'SmartHome' object has no attribute 'first'
                  2015-04-19 20:02:26,967 DEBUG    Scheduler    dummy next time: 2015-04-19 20:07:26+02:00 -- scheduler.py:_next_time:289
                  ^C2015-04-19 20:02:35,597 INFO     Main         Number of Threads: 7 -- smarthome.py:stop:348
                  2015-04-19 20:02:35,599 INFO     Main         Stop Plugins -- plugin.py:stop:70
                  2015-04-19 20:02:35,847 DEBUG    Main         KNX: closing socket 127.0.0.1:6720 -- connection.py:close:303
                  2015-04-19 20:02:36,498 INFO     Main         SmartHome.py stopped -- smarthome.py:stop:372
                  ( Die Exception tritt auf, weil ich die smartvisu.conf in smartvisu.conf_orig umgeannt hab. )

                  Kann ich noch mehr Debugging einschalten, um evtl. den Fehler zu sehen? Hab ich was (vermutlich sehr Dummes) übersehen?

                  Vielen Dank für Hinweise,

                  Christian

                  Kommentar


                    #10
                    Hallo,

                    anscheinend kann sich die smartVisu nicht mit SH.py verbinden.
                    Vielleicht falsche IP in der smartVISU eingetragen? Virenscanner/Firewall verhindert die Verbindung?
                    Klappt es vom smartphone?

                    Bis bald

                    Marcus

                    Kommentar


                      #11
                      Hallo,

                      zunächst mal: es geht :-)

                      Leider bin ich mir nicht ganz sicher warum. Virenscanner/Firewall/falsche IP schließe ich mal aus. Nachdem ich der Weinzierl 730 IP Schnittstelle eine zweite Verbindung hinzugefügt habe, damit ich ETS und eibd gleichzeitig laufen lassen kann, hatte ich irgendwann den Websocket Error aus dem ersten Post in diesem Beitrag. Ich habe dann diesen Beitrag gefunden und die IP Adressen überall eingetragen und damit funktioniert es.

                      Vielen Dank!

                      Gruß
                      Christian

                      Update: Ich weiß jetzt, woran es lag. Es hat mit der HTTPS Verbindung zu tun. Ich hab die Oberfläche bisher über HTTPS aufgerufen (Zertifikatfehler, etc. erst mal ignoriert). Mit HTTP funktioniert alles. Irgendwo im Forum hatte ich gelesen, dass Smartvisu zwei Verbindungen aufbauen muss - eine für die Webdarstellung und eine als Verbindung zu Smarthome.py. Letzteres geht anscheinend (in meiner Konfiguration) nicht. Falls jemand schon eine Lösung dafür hat, bitte Link posten. Ansonsten werde ich mich dem Thema mal nach der Grundeinrichtung widmen, weil mir Sicherheit doch wichtig ist und ich langfristig per VPN zugreifen will.
                      Zuletzt geändert von ChristianMichels; 21.04.2015, 20:27.

                      Kommentar

                      Lädt...
                      X