Ankündigung

Einklappen
Keine Ankündigung bisher.

- √ - smartvisu über smarthome.py ohne funktionalität

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

    - √ - smartvisu über smarthome.py ohne funktionalität

    hi zusammen,

    leider habe ich wieder ein problem. ich bekomme die smartvisu in verbindung mit smarthome.py nicht korrekt zum laufen. D.h. definierte Lichter werden nicht korrekt im Status dargestellt und können auch nicht geschaltet werden.

    hier mal meine configs:

    config.php
    PHP-Code:
    <?php
    /**
      * -----------------------------------------------------------------------------
      * @package     smartVISU
      * @author      Martin Gleiß
      * @copyright   2012
      * @license     GPL [http://www.gnu.de]
      * -----------------------------------------------------------------------------
      */


        
    define('config_pages''meineVisu');
        
    define('config_design''night');
        
    define('config_cache'false);
        
    define('config_animation'true);
        
    define('config_title''HomeZone [smartVISU]');
        
    define('config_lang''de');
        
    define('config_driver''smarthome.py');
        
    define('config_driver_address''');
        
    define('config_driver_port''');
        
    define('config_driver_realtime'true);
        
    define('config_weather_service''yr.no');
        
    define('config_weather_location''Germany/Bayern/Ingolstadt');
        
    define('config_weather_key''');
        
    define('config_phone_service''offline');
        
    define('config_phone_server''192.168.x.x');
        
    define('config_phone_port''');
        
    define('config_phone_user''');
        
    define('config_phone_pass''');
        
    define('config_calendar_service''offline');
        
    define('config_calendar_url''http://www.google.com/calendar/feeds/...');
        
    define('config_js''min.js');

    ?>
    plugin.conf
    Code:
    [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 = 5/0/8 # default none
       date_ga = 5/0/9 # default none
    #   busmonitor = False
    
    [visu]
        class_name = WebSocket
        class_path = plugins.visu
    #    ip='0.0.0.0'
    #    port=2424
        acl = rw
        smartvisu_dir = /var/www/smartvisu
    items.conf
    Code:
    [EG]
        [[Arbeiten]]
            [[[Licht]]]
                type = bool
                knx_dpt = 1
                knx_listen = 3/0/151
                knx_send = 3/0/150
                knx_init = 3/0/151
                visu = yes
            [[[Schreibtisch]]]
                type = bool
                knx_dpt = 1
                knx_listen = 3/0/153
                knx_send = 3/0/152
                knx_init = 3/0/153
                visu = yes
    ich habe das ganze auch schon mit "visu_acl = rw" versucht, aber ebenfalls erfolglos.

    die verbindung an sich scheint zu passen, da kein Error-Zeichen o.ä. angezeigt wird.

    PHP-Code:
    /**
    * -----------------------------------------------------------------------------
    * @package     smartVISU
    * @author      Martin Gleiß
    * @copyright   2012
    * @license     GPL [http://www.gnu.de]
    * -----------------------------------------------------------------------------
    */

    {% extends "rooms.html" %}

    {% 
    block content %}

        <
    h1><img class="icon" src='{{ icon0 }}scene_office.svg'/>Arbeiten_neu</h1>

        <
    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>
                <
    tr>
                    <
    td align="left" width="100px">&nbsp; {{ basic.switch('switch1''EG.Arbeiten.Licht'icon1~'light_light.png'icon0~'light_light.png') }} </td>
                    <
    td>Decke</td>
                </
    tr>
                <
    tr>
                    <
    td align="left" width="100px">&nbsp; {{ basic.flip('EG.Arbeiten.Schreibtisch''EG.Arbeiten.Schreibtisch''Ein''Aus') }} </td>
                    <
    td>Schreibtisch</td>
                </
    tr>
              </
    div>
        <
    br/><br/>
        </
    div>
        </
    div>

    {% 
    endblock %} 
    auszug aus dem smarthome.log:
    Code:
    2014-01-19 01:05:27,190 INFO     Main         Start SmartHome.py 1.0 -- smarthome.py:__init__:231
    2014-01-19 01:05:27,193 DEBUG    Main         Python 3.2.3 -- smarthome.py:__init__:232
    2014-01-19 01:05:27,195 WARNING  Main         No latitude/longitude specified => you could not use the sun and moon object. -- smarthome.py:__init__:248
    2014-01-19 01:05:27,197 INFO     Main         Init Scheduler -- scheduler.py:__init__:86
    2014-01-19 01:05:27,201 DEBUG    Scheduler    creating 5 workers -- scheduler.py:run:93
    2014-01-19 01:05:27,207 INFO     Main         Init Plugins -- smarthome.py:start:274
    2014-01-19 01:05:27,214 DEBUG    Main         Plugin: knx -- plugin.py:__init__:43
    2014-01-19 01:05:27,239 DEBUG    Main         KNX time next time: 2014-01-19 01:05:42+00:00 -- scheduler.py:_next_time:289
    2014-01-19 01:05:27,243 DEBUG    Main         Plugin: visu -- plugin.py:__init__:43
    2014-01-19 01:05:27,299 INFO     Main         Init Items -- smarthome.py:start:280
    2014-01-19 01:05:27,320 DEBUG    Main         KNX: EG.Arbeiten.Licht listen on 3/0/151 -- __init__.py:parse_item:235
    2014-01-19 01:05:27,324 DEBUG    Main         KNX: EG.Arbeiten.Licht listen on and init with 3/0/151 -- __init__.py:parse_item:244
    2014-01-19 01:05:27,327 DEBUG    Main         KNX: EG.Arbeiten.Schreibtisch listen on 3/0/153 -- __init__.py:parse_item:235
    2014-01-19 01:05:27,328 DEBUG    Main         KNX: EG.Arbeiten.Schreibtisch listen on and init with 3/0/153 -- __init__.py:parse_item:244
    2014-01-19 01:05:27,330 DEBUG    Main         Item EG.Arbeiten: no type specified. -- item.py:__init__:242
    2014-01-19 01:05:27,332 DEBUG    Main         Item EG: no type specified. -- item.py:__init__:242
    2014-01-19 01:05:27,338 DEBUG    Main         Item env.core: no type specified. -- item.py:__init__:242
    2014-01-19 01:05:27,349 DEBUG    Main         Item env.location: no type specified. -- item.py:__init__:242
    2014-01-19 01:05:27,355 DEBUG    Main         Item env.system: no type specified. -- item.py:__init__:242
    2014-01-19 01:05:27,357 DEBUG    Main         Item env: no type specified. -- item.py:__init__:242
    2014-01-19 01:05:27,367 INFO     Main         Start Plugins -- plugin.py:start:65
    2014-01-19 01:05:27,371 INFO     Main         Start Logics -- logic.py:__init__:33
    2014-01-19 01:05:27,373 DEBUG    Main         Reading Logics from /usr/local/smarthome-1.0/lib/env/logic_conf -- logic.py:_read_logics:64
    2014-01-19 01:05:27,376 DEBUG    Main         Reading Logics from /usr/local/smarthome-1.0/etc/logic.conf -- logic.py:_read_logics:64
    2014-01-19 01:05:27,379 DEBUG    Main         Logic: env_init -- logic.py:__init__:44
    2014-01-19 01:05:27,444 DEBUG    Main         Logic: env_stat -- logic.py:__init__:44
    2014-01-19 01:05:27,451 DEBUG    Main         env_stat next time: 2014-01-19 01:05:41+00:00 -- scheduler.py:_next_time:289
    2014-01-19 01:05:27,461 DEBUG    Main         Logic: env_loc -- logic.py:__init__:44
    2014-01-19 01:05:27,868 DEBUG    Connections  KNX: connected to 127.0.0.1:6720 -- connection.py:connect:384
    2014-01-19 01:05:27,870 DEBUG    Connections  KNX: enable group monitor -- __init__.py:handle_connect:117
    2014-01-19 01:05:27,872 DEBUG    Connections  KNX: init read -- __init__.py:handle_connect:123
    2014-01-19 01:05:27,874 DEBUG    Connections  WebSocket: binding to 0.0.0.0:2424 (TCP) -- connection.py:connect:160
    2014-01-19 01:05:28,478 DEBUG    Main         KNX: 0.0.0 read 3/0/151 -- __init__.py:parse_telegram:203
    2014-01-19 01:05:28,481 DEBUG    Main         KNX: 0.0.0 read 3/0/153 -- __init__.py:parse_telegram:203
    2014-01-19 01:05:28,519 DEBUG    Main         knx: 1.1.91 set 3/0/151 to False -- __init__.py:parse_telegram:190
    2014-01-19 01:05:28,561 DEBUG    Main         knx: 1.1.91 set 3/0/153 to True -- __init__.py:parse_telegram:190
    2014-01-19 01:05:28,563 DEBUG    Main         Item EG.Arbeiten.Schreibtisch = True via KNX 1.1.91 3/0/153 -- item.py:__update:363
    2014-01-19 01:05:28,987 DEBUG    Main         knx: 1.1.88 set 4/3/28 to 0039 -- __init__.py:parse_telegram:181
    2014-01-19 01:05:31,138 DEBUG    Main         knx: 1.1.88 set 4/3/28 to 01f3 -- __init__.py:parse_telegram:181
    2014-01-19 01:05:31,681 DEBUG    Main         knx: 1.1.88 set 4/3/28 to 01be -- __init__.py:parse_telegram:181
    2014-01-19 01:05:32,221 DEBUG    Main         knx: 1.1.65 set 4/0/1 to 44b80147 -- __init__.py:parse_telegram:181
    2014-01-19 01:05:32,244 DEBUG    Main         knx: 1.1.88 set 4/3/28 to 0218 -- __init__.py:parse_telegram:181
    2014-01-19 01:05:32,269 DEBUG    Main         knx: 1.1.65 set 4/0/2 to 43873eb8 -- __init__.py:parse_telegram:181
    2014-01-19 01:05:32,765 DEBUG    Main         knx: 1.1.88 set 4/3/28 to 0269 -- __init__.py:parse_telegram:181
    2014-01-19 01:05:32,835 DEBUG    env_init     Item env.core.version = 1.0 via Logic None None -- item.py:__update:363
    2014-01-19 01:05:32,876 DEBUG    env_init     Item env.core.start = 2014-01-19 01:05:32.875655+00:00 via Logic None None -- item.py:__update:363
    2014-01-19 01:05:32,881 DEBUG    env_init     Item env.system.name = cubietruck via Logic None None -- item.py:__update:363
    2014-01-19 01:05:32,887 DEBUG    env_init     Item env.system.start = 2014-01-18 23:28:59.886330+00:00 via Logic None None -- item.py:__update:363
    2014-01-19 01:05:32,882 DEBUG    sh.gc        Garbage collector: collected 0 objects. -- smarthome.py:_garbage_collection:498
    2014-01-19 01:05:32,947 DEBUG    sh.gc        Object references: 7968 -- smarthome.py:_maintenance:490
    2014-01-19 01:05:33,335 WARNING  Scheduler    No latitude/longitude specified. You could not use sunrise/sunset as crontab entry. -- scheduler.py:_sun:403
    2014-01-19 01:05:33,337 WARNING  Scheduler    No latitude/longitude specified. You could not use sunrise/sunset as crontab entry. -- scheduler.py:_sun:403
    2014-01-19 01:05:33,338 WARNING  Scheduler    No latitude/longitude specified. You could not use sunrise/sunset as crontab entry. -- scheduler.py:_sun:403
    2014-01-19 01:05:33,340 WARNING  Scheduler    No latitude/longitude specified. You could not use sunrise/sunset as crontab entry. -- scheduler.py:_sun:403
    2014-01-19 01:05:33,342 DEBUG    Scheduler    env_loc next time: 2014-01-19 01:35:33+00:00 -- scheduler.py:_next_time:289
    2014-01-19 01:05:33,347 DEBUG    Scheduler    sh.gc next time: 2014-01-19 02:04:00+00:00 -- scheduler.py:_next_time:289
    2014-01-19 01:05:33,840 DEBUG    Main         knx: 1.1.88 set 4/3/28 to 01af -- __init__.py:parse_telegram:181
    2014-01-19 01:05:34,382 DEBUG    Main         knx: 1.1.88 set 4/3/28 to 01f6 -- __init__.py:parse_telegram:181
    2014-01-19 01:05:35,458 DEBUG    Main         knx: 1.1.88 set 4/3/28 to 029b -- __init__.py:parse_telegram:181
    2014-01-19 01:05:35,945 DEBUG    Main         knx: 1.1.65 set 4/0/1 to 44b97333 -- __init__.py:parse_telegram:181
    2014-01-19 01:05:35,974 DEBUG    Main         knx: 1.1.65 set 4/0/2 to 438e4ccd -- __init__.py:parse_telegram:181
    2014-01-19 01:05:35,995 DEBUG    Main         knx: 1.1.88 set 4/3/28 to 023a -- __init__.py:parse_telegram:181
    2014-01-19 01:05:36,533 DEBUG    Main         knx: 1.1.88 set 4/3/28 to 019c -- __init__.py:parse_telegram:181
    2014-01-19 01:05:37,076 DEBUG    Main         knx: 1.1.88 set 4/3/28 to 020d -- __init__.py:parse_telegram:181
    2014-01-19 01:05:37,118 DEBUG    Main         knx: 1.1.200 set 5/0/3 to 0000 -- __init__.py:parse_telegram:181
    2014-01-19 01:05:37,132 DEBUG    Main         knx: 1.1.200 set 5/0/2 to 0000 -- __init__.py:parse_telegram:181
    2014-01-19 01:05:37,153 DEBUG    Main         knx: 1.1.200 set 5/0/1 to 0000 -- __init__.py:parse_telegram:181
    2014-01-19 01:05:37,202 DEBUG    Main         knx: 1.1.200 set 5/0/5 to 0000 -- __init__.py:parse_telegram:181
    2014-01-19 01:05:37,219 DEBUG    Main         knx: 1.1.200 set 5/0/6 to 0000 -- __init__.py:parse_telegram:181
    2014-01-19 01:05:37,242 DEBUG    Main         knx: 1.1.200 set 5/0/4 to 010e -- __init__.py:parse_telegram:181
    2014-01-19 01:05:37,281 DEBUG    Main         knx: 1.1.22 set 5/0/10 to 06 -- __init__.py:parse_telegram:181
    2014-01-19 01:05:37,396 DEBUG    Main         knx: 1.1.22 set 5/0/10 to 09 -- __init__.py:parse_telegram:181
    2014-01-19 01:05:37,480 DEBUG    Main         knx: 1.1.22 set 5/0/10 to 0a -- __init__.py:parse_telegram:181
    2014-01-19 01:05:37,564 DEBUG    Main         knx: 1.1.22 set 5/0/10 to 06 -- __init__.py:parse_telegram:181
    2014-01-19 01:05:37,648 DEBUG    Main         knx: 1.1.22 set 5/0/10 to 09 -- __init__.py:parse_telegram:181
    wie ich daraus erkennen kann, werden die werte der definierten items auch ausgelesen und auch initial mit den werten belegt.

    warscheinlich sehe ich den wald vor lauter bäumen nicht, aber ich bekomme es einfach nicht zum laufen.

    danke für eure hilfe!

    #2
    Hi,

    nachdem Du für das Visu Plugin cal = rw gesetzt hast, sind die visu_acl = rw bei den Items irrelevant.

    define('config_driver_address', '');
    Es hilft in der SV-Config eine IP Adresse des Backends anzugeben....

    Bis bald

    Marcus

    Kommentar


      #3
      hi,

      naja was soll ich sagen: DANKE.

      ...ich sagte ja bereits. ich hatte wohl den wald vor lauter bäumen nicht mehr gesehen. ich hatte das ganze auch schon drin, aber wohl wieder raus, da ich noch ein anderes problem hatte.

      Kommentar

      Lädt...
      X