Ankündigung

Einklappen
Keine Ankündigung bisher.

smartVISU schaltet nicht, obwohl eibd fehlerfrei

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

    smartVISU schaltet nicht, obwohl eibd fehlerfrei

    Liebe Community,

    ich bin bereits seit längerem Nutzer des Rasperry Pi - Images von smartVISU und SmartHome.py. Leider ist meine SD-Karte vor zwei Tagen durchgebrannt, sodass ich nun das gesamte System neu einrichten muss. Meine Backup's waren lückenhaft, sodass ich wohl eine fehlerhafte Version gesichert habe.

    Nun zu meinem Problem:
    Über Putty kann ich über den Befehl "groupswrite ip:localhost [...]" sowohl das Licht als auch meine Rolläden schalten. Es hat sich irgendwo ein Fehler eingeschlichen. Bereits in der Vergangenheit hatte ich die Items anfangs falsch eingerichtet. Es wäre super, wenn sich einer mal meine Daten anschauen könnte und mir einen "heißen" Tipp gibt.

    Hier hoffentlich alle wichtigen Dateiauschnitte zur Behebung des Problems:
    smartvisu.conf
    HTML-Code:
    [ceiling_light]
                type = bool
                visu = yes
                knx_dpt = 1
                knx_listen = 0/2/10
                knx_send = 0/2/8
                [[dimmen]]
                    type = num
                    visu = yes
                    knx_dpt = 5
                    knx_listen = 0/2/9
                    knx_send = 0/2/5
                    knx_init = 0/2/6
    [table_light]
                type = bool
                visu = yes
                knx_dpt = 1
                knx_listen = 0/2/16
                knx_send = 0/2/14
                [[dimmen]]
                    type = num
                    visu = yes
                    knx_dpt = 5
                    knx_listen = 0/2/15
                    knx_send = 0/2/11
                    knx_init = 0/2/12
    [worktop_light]
                type = bool
                visu = yes
                knx_dpt = 1
                knx_listen = 0/2/28
                knx_send = 0/2/26
                [[dimmen]]
                    type = num
                    visu = yes
                    knx_dpt = 5
                    knx_listen = 0/2/27
                    knx_send = 0/2/23
                    knx_init = 0/2/24
    [windows_light]
                type = bool
                visu = yes
                knx_dpt = 1
                knx_listen = 0/2/22
                knx_send = 0/2/20
                [[dimmen]]
                    type = num
                    visu = yes
                    knx_dpt = 5
                    knx_listen = 0/2/21
                    knx_send = 0/2/17
                    knx_init = 0/2/18
    [ScenesRoom1]
                type = bool
                visu = yes
                knx_dpt = 1
                knx_listen = 0/0/32
                knx_send = 0/0/29
    
    [ScenesRoom2]
                type = bool
                visu = yes
                knx_dpt = 1
                knx_listen = 0/4/0
                knx_send = 0/4/0
    
    [ScenesRoom3]
                type = bool
                visu = yes
                knx_dpt = 6
                knx_listen = 0/3/0
                knx_send = 0/3/0
    
    [ScenesRoom4]
                type = bool
                visu = yes
                knx_dpt = 1
                knx_listen = 0/0/31
                knx_send = 0/0/30
    
    [ScenesRoom5]
                type = bool
                visu = yes
                knx_dpt = 1
                knx_send = 0/2/36
                
    [front_blind]
                [[move]]
                    type = num
                    visu = yes
                   knx_dpt = 1
                    knx_send = 0/1/1
                [[stop]]
                    type = num
                    visu = yes
                    enforce_updates = yes #<<- damit der Stop-Befehl auch greift
                   knx_dpt = 1
                    knx_send = 0/1/2
                [[tilt]]
                    type = num
                    visu = yes
                    
    [side_blind]
                [[move]]
                    type = num
                    visu = yes
                   knx_dpt = 1
                    knx_send = 0/1/3
                [[stop]]
                    type = num
                    visu = yes
                    enforce_updates = yes #<<- damit der Stop-Befehl auch greift
                   knx_dpt = 1
                    knx_send = 0/1/4
                [[tilt]]
                    type = num
                    visu = yes
    schaltung.html:
    HTML-Code:
    /**
     * -----------------------------------------------------------------------------
     * @package     smartVISU
     * @author      Martin Gleiß
     * @copyright   2012
     * @license     GPL <http://www.gnu.de>
     * ----------------------------------------------------------------------------- 
     */
     
     
    
    
    {% block content %}
        
        <h3><img class="icon" src='{{ icon0 }}light_light.png'/>Steuerung</h3>
        
        <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>
                {{ device.dimmer('ceiling_light', 'Deckenleuchten', 'ceiling_light', 'ceiling_light.dimmen') }}
                {{ device.dimmer('table_light', 'Tischleuchte', 'table_light', 'table_light.dimmen') }} 
                {{ device.dimmer('windows_light', 'Fensterleuchten', 'windows_light', 'windows_light.dimmen') }}
                {{ basic.switch('worktop_light', 'worktop_light', icon1~'light_downlight.png', icon0~'light_downlight.png') }} 
                {{ basic.text('worktop_light_txt', 'worktop_light', 'Arbeitsplatte an.', 'Arbeitsplatte aus.') }}  
                    </div>
            </div>  
            
        <div class="block">
            <div class="ui-bar-c ui-li-divider ui-corner-top">Szenen</div>
            <div class="ui-fixed ui-body-a ui-corner-bottom">
    
                <p>
                {{ basic.switch('ScenesRoom1', 'ScenesRoom1', icon1~'scene_party.png', icon0~'scene_party.png', '0', '1') }}
                {{ basic.switch('ScenesRoom2', 'ScenesRoom2', icon1~'scene_visit_guests.png', icon0~'scene_visit_guests.png') }} 
                {{ basic.switch('ScenesRoom3', 'ScenesRoom3', icon1~'light_dinner_table.png', icon0~'light_dinner_table.png') }}     
                {{ basic.switch('ScenesRoom4', 'ScenesRoom4', icon1~'weather_frost.png', icon0~'weather_frost.png') }} 
                {{ basic.switch('ScenesRoom5', 'ScenesRoom5', icon1~'light_light.png', icon0~'light_light.png') }} </p>
    
            </div>
        </div>    
        </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>Jalousien</h3>
                {{ device.shutter ('front_blind', 'Frontfenster', 'front_blind.move', 'front_blind.stop', '', '', '', '') }} 
                <br />
                {{ device.shutter ('side_blind', 'Seitenfenster', 'side_blind.move', 'side_blind.stop', '', '', '', '') }}  
                            </div>
            </div>       
        </div>
        
    {% endblock %}
    plugin.conf:
    HTML-Code:
    # plugin.conf
    
    [knx]
       class_name = KNX
       class_path = plugins.knx
    #   host = 192.168.178.21
    #   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.178.21
    #   port=2424
    #   acl = rw
        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
    smarthome.py -d:
    HTML-Code:
    admin@smarthome:/usr/smarthome$ smarthome.py -d
    2014-06-25 16:24:11,373 INFO     Main         Start SmartHome.py 1.0-35-gf62db45                                                                                         -- smarthome.py:__init__:231
    2014-06-25 16:24:11,379 DEBUG    Main         Python 3.2.3 -- smarthome.py:__ini                                                                                        t__:232
    2014-06-25 16:24:11,385 INFO     Main         Init Scheduler -- scheduler.py:__i                                                                                        nit__:86
    2014-06-25 16:24:11,392 INFO     Main         Init Plugins -- smarthome.py:start                                                                                        :274
    2014-06-25 16:24:11,408 DEBUG    Scheduler    creating 5 workers -- scheduler.py                                                                                        :run:93
    2014-06-25 16:24:11,417 DEBUG    Main         Plugin: knx -- plugin.py:__init__:                                                                                        43
    2014-06-25 16:24:11,443 DEBUG    Main         Plugin: visu -- plugin.py:__init__                                                                                        :43
    2014-06-25 16:24:11,544 DEBUG    Main         Plugin: cli -- plugin.py:__init__:                                                                                        43
    2014-06-25 16:24:11,557 DEBUG    Main         Plugin: sql -- plugin.py:__init__:                                                                                        43
    2014-06-25 16:24:11,591 DEBUG    Main         SQLite 3.7.13 -- __init__.py:__ini                                                                                        t__:62
    2014-06-25 16:24:11,648 DEBUG    Main         SQLite: database integrity ok -- _                                                                                        _init__.py:__init__:78
    2014-06-25 16:24:11,679 DEBUG    Main         SQLite pack next time: 2014-06-26                                                                                         03:02:00+02:00 -- scheduler.py:_next_time:289
    2014-06-25 16:24:11,686 INFO     Main         Init Items -- smarthome.py:start:2                                                                                        80
    2014-06-25 16:24:11,819 DEBUG    Main         Item env.core.memory = 13357056.0                                                                                         via SQLite None None -- item.py:set:457
    2014-06-25 16:24:11,851 DEBUG    Main         Item env.core.threads = 7.0 via SQ                                                                                        Lite None None -- item.py:set:457
    2014-06-25 16:24:11,883 DEBUG    Main         Item env.core.garbage = 0.0 via SQ                                                                                        Lite None None -- item.py:set:457
    2014-06-25 16:24:11,890 DEBUG    Main         Item env.core: no type specified.                                                                                         -- item.py:__init__:242
    2014-06-25 16:24:11,948 DEBUG    Main         Item env.location: no type specifi                                                                                        ed. -- item.py:__init__:242
    2014-06-25 16:24:11,988 DEBUG    Main         Item env.system.load = 0.03 via SQ                                                                                        Lite None None -- item.py:set:457
    2014-06-25 16:24:12,001 DEBUG    Main         Item env.system: no type specified                                                                                        . -- item.py:__init__:242
    2014-06-25 16:24:12,008 DEBUG    Main         Item env: no type specified. -- it                                                                                        em.py:__init__:242
    2014-06-25 16:24:12,025 DEBUG    Main         KNX: ceiling_light.dimmen listen o                                                                                        n 0/2/9 -- __init__.py:parse_item:235
    2014-06-25 16:24:12,030 DEBUG    Main         KNX: ceiling_light.dimmen listen o                                                                                        n and init with 0/2/6 -- __init__.py:parse_item:244
    2014-06-25 16:24:12,035 DEBUG    Main         KNX: ceiling_light listen on 0/2/1                                                                                        0 -- __init__.py:parse_item:235
    2014-06-25 16:24:12,052 DEBUG    Main         KNX: table_light.dimmen listen on                                                                                         0/2/15 -- __init__.py:parse_item:235
    2014-06-25 16:24:12,057 DEBUG    Main         KNX: table_light.dimmen listen on                                                                                         and init with 0/2/12 -- __init__.py:parse_item:244
    2014-06-25 16:24:12,063 DEBUG    Main         KNX: table_light listen on 0/2/16                                                                                         -- __init__.py:parse_item:235
    2014-06-25 16:24:12,080 DEBUG    Main         KNX: worktop_light.dimmen listen o                                                                                        n 0/2/27 -- __init__.py:parse_item:235
    2014-06-25 16:24:12,085 DEBUG    Main         KNX: worktop_light.dimmen listen o                                                                                        n and init with 0/2/24 -- __init__.py:parse_item:244
    2014-06-25 16:24:12,090 DEBUG    Main         KNX: worktop_light listen on 0/2/2                                                                                        8 -- __init__.py:parse_item:235
    2014-06-25 16:24:12,108 DEBUG    Main         KNX: windows_light.dimmen listen o                                                                                        n 0/2/21 -- __init__.py:parse_item:235
    2014-06-25 16:24:12,112 DEBUG    Main         KNX: windows_light.dimmen listen o                                                                                        n and init with 0/2/18 -- __init__.py:parse_item:244
    2014-06-25 16:24:12,118 DEBUG    Main         KNX: windows_light listen on 0/2/2                                                                                        2 -- __init__.py:parse_item:235
    2014-06-25 16:24:12,129 DEBUG    Main         KNX: ScenesRoom1 listen on 0/0/32                                                                                         -- __init__.py:parse_item:235
    2014-06-25 16:24:12,141 DEBUG    Main         KNX: ScenesRoom2 listen on 0/4/0 -                                                                                        - __init__.py:parse_item:235
    2014-06-25 16:24:12,155 DEBUG    Main         KNX: ScenesRoom3 listen on 0/3/0 -                                                                                        - __init__.py:parse_item:235
    2014-06-25 16:24:12,166 DEBUG    Main         KNX: ScenesRoom4 listen on 0/0/31                                                                                         -- __init__.py:parse_item:235
    2014-06-25 16:24:12,202 DEBUG    Main         Item front_blind: no type specifie                                                                                        d. -- item.py:__init__:242
    2014-06-25 16:24:12,232 DEBUG    Main         Item side_blind: no type specified                                                                                        . -- item.py:__init__:242
    2014-06-25 16:24:12,241 INFO     Main         Start Plugins -- plugin.py:start:6                                                                                        5
    2014-06-25 16:24:12,292 INFO     Main         Start Logics -- logic.py:__init__:                                                                                        33
    2014-06-25 16:24:12,297 DEBUG    Main         Reading Logics from /usr/smarthome                                                                                        /lib/env/logic_conf -- logic.py:_read_logics:64
    2014-06-25 16:24:12,324 DEBUG    Main         Reading Logics from /usr/smarthome                                                                                        /etc/logic.conf -- logic.py:_read_logics:64
    2014-06-25 16:24:12,358 DEBUG    Main         Logic: dummy -- logic.py:__init__:                                                                                        44
    2014-06-25 16:24:12,420 DEBUG    Main         dummy next time: 2014-06-25 16:24:                                                                                        26+02:00 -- scheduler.py:_next_time:289
    2014-06-25 16:24:12,430 DEBUG    Main         Logic: hello -- logic.py:__init__:                                                                                        44
    2014-06-25 16:24:12,446 DEBUG    Main         Logic: env_init -- logic.py:__init                                                                                        __:44
    2014-06-25 16:24:12,464 DEBUG    Main         Logic: env_stat -- logic.py:__init                                                                                        __:44
    2014-06-25 16:24:12,498 DEBUG    Main         env_stat next time: 2014-06-25 16:                                                                                        24:23+02:00 -- scheduler.py:_next_time:289
    2014-06-25 16:24:12,510 DEBUG    Main         Logic: env_loc -- logic.py:__init_                                                                                        _:44
    2014-06-25 16:24:12,630 DEBUG    Connections  KNX: connected to 127.0.0.1:6720 -                                                                                        - connection.py:connect:386
    2014-06-25 16:24:12,636 DEBUG    Connections  KNX: enable group monitor -- __ini                                                                                        t__.py:handle_connect:117
    2014-06-25 16:24:12,641 DEBUG    Connections  KNX: init read -- __init__.py:hand                                                                                        le_connect:123
    2014-06-25 16:24:12,650 DEBUG    Connections  WebSocket: binding to 0.0.0.0:2424                                                                                         (TCP) -- connection.py:connect:161
    2014-06-25 16:24:12,657 DEBUG    Connections  CLI: binding to 0.0.0.0:2323 (TCP)                                                                                         -- connection.py:connect:161
    2014-06-25 16:24:13,582 DEBUG    Main         KNX: 0.0.0 read 0/2/6 -- __init__.py:parse_telegram:203
    2014-06-25 16:24:13,595 DEBUG    Main         KNX: 0.0.0 read 0/2/12 -- __init__.py:parse_telegram:203
    2014-06-25 16:24:13,600 DEBUG    Main         KNX: 0.0.0 read 0/2/24 -- __init__.py:parse_telegram:203
    2014-06-25 16:24:13,607 DEBUG    Main         KNX: 0.0.0 read 0/2/18 -- __init__.py:parse_telegram:203
    2014-06-25 16:24:17,544 INFO     hello        Hello World! -- hello.py:<module>:3
    2014-06-25 16:24:17,550 DEBUG    env_init     Item env.core.version = 1.0-35-gf62db45 via Logic None None -- item.py:__update:363
    2014-06-25 16:24:17,563 DEBUG    env_init     Item env.core.start = 2014-06-25 16:24:17.559007+02:00 via Logic None None -- item.py:__update:363
    2014-06-25 16:24:17,573 DEBUG    env_init     Item env.system.name = smarthome.local via Logic None None -- item.py:__update:363
    2014-06-25 16:24:17,586 DEBUG    env_init     Item env.system.start = 2014-06-24 18:21:54.580990+02:00 via Logic None None -- item.py:__update:363
    2014-06-25 16:24:18,132 DEBUG    sh.gc        Garbage collector: collected 0 objects. -- smarthome.py:_garbage_collection:498
    2014-06-25 16:24:18,155 DEBUG    env_loc      Item env.location.sunrise = 2014-06-26 05:03:53.024853+02:00 via Logic None None -- item.py:__update:363
    2014-06-25 16:24:18,215 DEBUG    env_loc      Item env.location.sunset = 2014-06-25 21:38:03.944949+02:00 via Logic None None -- item.py:__update:363
    2014-06-25 16:24:18,314 DEBUG    env_loc      Item env.location.moonrise = 2014-06-26 04:40:50.501070+02:00 via Logic None None -- item.py:__update:363
    2014-06-25 16:24:18,396 DEBUG    env_loc      Item env.location.moonset = 2014-06-25 19:43:50.538880+02:00 via Logic None None -- item.py:__update:363
    2014-06-25 16:24:18,422 DEBUG    sh.gc        Object references: 8941 -- smarthome.py:_maintenance:490
    2014-06-25 16:24:18,436 DEBUG    env_loc      Item env.location.moonphase = 8 via Logic None None -- item.py:__update:363
    2014-06-25 16:24:18,474 DEBUG    env_loc      Item env.location.day = True via Logic None None -- item.py:__update:363
    2014-06-25 16:24:18,626 DEBUG    Scheduler    env_loc next time: 2014-06-25 16:54:18+02:00 -- scheduler.py:_next_time:289
    2014-06-25 16:24:18,650 DEBUG    Scheduler    sh.gc next time: 2014-06-26 02:04:00+02:00 -- scheduler.py:_next_time:289
    2014-06-25 16:24:23,240 DEBUG    env_stat     Item env.core.memory = 13185024 via Logic None None -- item.py:__update:363
    2014-06-25 16:24:23,252 DEBUG    env_stat     Item env.location.moonlight = 3 via Logic None None -- item.py:__update:363
    2014-06-25 16:24:23,691 DEBUG    Scheduler    env_stat next time: 2014-06-25 16:29:23+02:00 -- scheduler.py:_next_time:289
    2014-06-25 16:24:26,221 ERROR    dummy        Logic: dummy, File: /usr/smarthome/logics/dummy_series.py, Line: 2, Method: <module>, 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 <module>
        sh.first.living.temperature(random.randint(20, 23))
    AttributeError: 'SmartHome' object has no attribute 'first'
    2014-06-25 16:24:26,721 DEBUG    Scheduler    dummy next time: 2014-06-25 16:29:26+02:00 -- scheduler.py:_next_time:289
    Schon einmal vielen Dank für eure Mithilfe!
    werscher

    #2
    Hast Du das letzte Images gezogen?
    Spontan würde ich mal sagen.....änder in Deinen Items mal das
    Code:
    visu = yes

    Kommentar


      #3
      Ja ich habe das letzte Image mit Version 2.7 aus November '13 aufgespielt.

      Verstehe leider nicht ganz was du meinst? Soll ich dieses Part löschen? Steht ja genauso in meinen Items drin.


      Danke für die Antwort

      Kommentar


        #4
        Nimm in der plugin.conf mal in [visu] den Gartenzaun vor acl = rw weg.
        Viele Grüße
        Martin

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

        Kommentar


          #5
          Zitat von werscher Beitrag anzeigen
          Verstehe leider nicht ganz was du meinst? Soll ich dieses Part löschen? Steht ja genauso in meinen Items drin.
          Ich gehe mal davon aus das alle Items auch Schreibrechte auf den Bus bekommen sollen. Dann entweder wie Martin geschrieben hat und die visu = yes alle löschen.

          oder

          "Gartenzaun" in der plugin.conf lassen und alle visu = yes durch visu_acl = rw erstezen

          Kommentar


            #6
            Ihr seid spitze! Problem behoben...

            Vielen Dank und euch allen noch angenehme Fußballtage!

            Kommentar

            Lädt...
            X