Ankündigung

Einklappen
Keine Ankündigung bisher.

Invalid Item

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

    Invalid Item

    Hallo zusammen,

    ich habe mir einen Raspberry pi B+ zugelegt und mit viel herumprobieren und lesen mal ein System aufgesezt. Eibd läuft, mit groupswrite in der Befehlszeile kann ich Befehle senden und die werden auch ausgeführt.

    Jetzt habe ich smarthome und smartvisu installiert und mein erstes item eingefügt, allerdings passiert nichts wenn ich im Browser den Button zum Licht ein- und ausschalten drücke.
    Im Monitor des smarthomes steht dann
    Client 192.168.1.101:55190 want to update invalid item: 1stFloor.Eckzimmer.Licht.OnOff

    Hier mal meine config files:

    /usr/local/smarthome/items/smartvisu.conf
    Code:
    [1stFloor]
            [[Eckzimmer]]
                    [[[Licht]]]
                            [[[[OnOff]]]]
                                    type = bool
                                    visu_acl = rw
                                    knx_dpt = 1
                                    knx_listen = 1/1/41
                                    knx_send = 1/1/41
                                    knx_init = 1/1/41
    /usr/local/smarthome/etc/plugin.conf
    Code:
    # plugin.conf
    [knx]
       class_name = KNX
       class_path = plugins.knx
       host = 192.168.1.17
       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
    [visu]
        class_name = WebSocket
        class_path = plugins.visu
        smartvisu_dir = /var/www/smartVISU
        ip = 192.168.1.17
        port = 2424
        acl = rw
        # for Ubuntu 14.04 upwards the base for html has changed
        # smartvisu_dir = /var/www/html/smartVISU
    [cli]
        class_name = CLI
        class_path = plugins.cli
        ip = 0.0.0.0
        update = True
    [sql]
        class_name = SQL
        class_path = plugins.sqlite
    /var/www/smartVISU/pages/dahoam/eckzimmer.html
    Code:
    /**
    * -----------------------------------------------------------------------------
    * @package     smartVISU
    * @author      Martin Gleiß
    * @copyright   2012
    * @license     GPL [http://www.gnu.de]
    * -----------------------------------------------------------------------------
    */
    
    
    {% extends "base.html" %}
    
    {% block sidebar %}
            {% include 'rooms_menu.html' %}
    {% endblock %}
    
    {% block content %}
    
            <div class="block">
                    <div class="set-2" data-role="collapsible-set" data-theme="c" data-content-theme="a" data-mini="true">
                            <div data-role="collapsible" data-collapsed="false">
                                    <h3>Licht</h3>
                                            <table width=100%>
                                                    <td align=left>
                                                            {{ basic.switch('S1', '1stFloor.Eckzimmer.Licht.OnOff', icon1~'light_floor_lamp.png', icon0~'light_floor_lamp.png') }} Eckzimmer Licht
                                                    </td>
                                            </table>
                            </div>
                    </div>
            </div>
    
    
    {% endblock %}
    wenn ich smarhome im debug Modus starte kommen folgende Meldungen wenn ich versuche zu schalten:
    Code:
    2014-10-08 22:50:53,697 INFO     Main         Start SmartHome.py 1.0-35-gf62db45 -- smarthome.py:__init__:231
    2014-10-08 22:50:53,702 DEBUG    Main         Python 3.2.3 -- smarthome.py:__init__:232
    2014-10-08 22:50:53,708 INFO     Main         Init Scheduler -- scheduler.py:__init__:86
    2014-10-08 22:50:53,714 INFO     Main         Init Plugins -- smarthome.py:start:274
    2014-10-08 22:50:53,727 DEBUG    Scheduler    creating 5 workers -- scheduler.py:run:93
    2014-10-08 22:50:53,738 DEBUG    Main         Plugin: knx -- plugin.py:__init__:43
    2014-10-08 22:50:53,770 DEBUG    Main         Plugin: ow -- plugin.py:__init__:43
    2014-10-08 22:50:53,806 DEBUG    Main         Plugin: visu -- plugin.py:__init__:43
    2014-10-08 22:50:53,892 DEBUG    Main         Plugin: cli -- plugin.py:__init__:43
    2014-10-08 22:50:53,904 DEBUG    Main         Plugin: sql -- plugin.py:__init__:43
    2014-10-08 22:50:53,934 DEBUG    Main         SQLite 3.7.13 -- __init__.py:__init__:62
    2014-10-08 22:50:54,002 DEBUG    Main         SQLite: database integrity ok -- __init__.py:__init__:78
    2014-10-08 22:50:54,030 DEBUG    Main         SQLite pack next time: 2014-10-09 03:02:00+02:00 -- scheduler.py:_next_time:289
    2014-10-08 22:50:54,037 INFO     Main         Init Items -- smarthome.py:start:280
    2014-10-08 22:50:54,138 DEBUG    Main         Item env.core.memory = 12877824.0 via SQLite None None -- item.py:set:457
    2014-10-08 22:50:54,174 DEBUG    Main         Item env.core.threads = 8.0 via SQLite None None -- item.py:set:457
    2014-10-08 22:50:54,208 DEBUG    Main         Item env.core.garbage = 0.0 via SQLite None None -- item.py:set:457
    2014-10-08 22:50:54,215 DEBUG    Main         Item env.core: no type specified. -- item.py:__init__:242
    2014-10-08 22:50:54,279 DEBUG    Main         Item env.location: no type specified. -- item.py:__init__:242
    2014-10-08 22:50:54,326 DEBUG    Main         Item env.system.load = 0.059526930330225894 via SQLite None None -- item.py:set:457
    2014-10-08 22:50:54,340 DEBUG    Main         Item env.system: no type specified. -- item.py:__init__:242
    2014-10-08 22:50:54,344 DEBUG    Main         Item env: no type specified. -- item.py:__init__:242
    2014-10-08 22:50:54,373 DEBUG    Main         KNX: 1stFloor.Eckzimmer.Licht.OnOff listen on 1/1/41 -- __init__.py:parse_item:235
    2014-10-08 22:50:54,377 DEBUG    Main         KNX: 1stFloor.Eckzimmer.Licht.OnOff listen on and init with 1/1/41 -- __init__.py:parse_item:244
    2014-10-08 22:50:54,382 DEBUG    Main         Item 1stFloor.Eckzimmer.Licht: no type specified. -- item.py:__init__:242
    2014-10-08 22:50:54,386 DEBUG    Main         Item 1stFloor.Eckzimmer: no type specified. -- item.py:__init__:242
    2014-10-08 22:50:54,390 DEBUG    Main         Item 1stFloor: no type specified. -- item.py:__init__:242
    2014-10-08 22:50:54,397 INFO     Main         Start Plugins -- plugin.py:start:65
    2014-10-08 22:50:54,409 DEBUG    ow           1w-disc next time: 2014-10-08 22:50:56+02:00 -- scheduler.py:_next_time:289
    2014-10-08 22:50:54,469 INFO     Main         Start Logics -- logic.py:__init__:33
    2014-10-08 22:50:54,473 DEBUG    Main         Reading Logics from /usr/local/smarthome/lib/env/logic_conf -- logic.py:_read_logics:64
    2014-10-08 22:50:54,503 DEBUG    Main         Reading Logics from /usr/local/smarthome/etc/logic.conf -- logic.py:_read_logics:64
    2014-10-08 22:50:54,514 DEBUG    Main         Logic: env_init -- logic.py:__init__:44
    2014-10-08 22:50:54,575 DEBUG    Main         Logic: env_stat -- logic.py:__init__:44
    2014-10-08 22:50:54,592 DEBUG    Main         env_stat next time: 2014-10-08 22:51:09+02:00 -- scheduler.py:_next_time:289
    2014-10-08 22:50:54,596 DEBUG    Main         Logic: env_loc -- logic.py:__init__:44
    2014-10-08 22:50:54,904 DEBUG    Connections  KNX: connected to 192.168.1.17:6720 -- connection.py:connect:386
    2014-10-08 22:50:54,908 DEBUG    Connections  KNX: enable group monitor -- __init__.py:handle_connect:117
    2014-10-08 22:50:54,913 DEBUG    Connections  KNX: init read -- __init__.py:handle_connect:123
    2014-10-08 22:50:54,919 ERROR    Connections  1-Wire: could not connect to 127.0.0.1:4304: [Errno 111] Verbindungsaufbau abgelehnt -- __init__.py:connect:60
    2014-10-08 22:50:54,928 ERROR    Connections  WebSocket: problem binding 192.168.1.17:2424 (TCP): [Errno 98] Die Adresse wird bereits verwendet -- connection.py:connect:157
    2014-10-08 22:50:54,937 ERROR    Connections  CLI: problem binding 0.0.0.0:2323 (TCP): [Errno 98] Die Adresse wird bereits verwendet -- connection.py:connect:157
    2014-10-08 22:50:55,623 DEBUG    Main         KNX: 0.0.0 read 1/1/41 -- __init__.py:parse_telegram:203
    2014-10-08 22:50:56,840 DEBUG    Scheduler    1w-disc next time: 2014-10-08 23:00:56+02:00 -- scheduler.py:_next_time:289
    2014-10-08 22:50:59,944 DEBUG    env_init     Item env.core.version = 1.0-35-gf62db45 via Logic None None -- item.py:__update:363
    2014-10-08 22:50:59,947 DEBUG    sh.gc        Garbage collector: collected 0 objects. -- smarthome.py:_garbage_collection:498
    2014-10-08 22:50:59,951 DEBUG    env_loc      Item env.location.sunrise = 2014-10-09 07:47:44.569487+02:00 via Logic None None -- item.py:__update:363
    2014-10-08 22:50:59,960 DEBUG    env_init     Item env.core.start = 2014-10-08 22:50:59.956084+02:00 via Logic None None -- item.py:__update:363
    2014-10-08 22:51:00,025 DEBUG    env_init     Item env.system.name = raspberrypi via Logic None None -- item.py:__update:363
    2014-10-08 22:51:00,037 DEBUG    env_loc      Item env.location.sunset = 2014-10-09 18:58:39.400388+02:00 via Logic None None -- item.py:__update:363
    2014-10-08 22:51:00,074 DEBUG    env_init     Item env.system.start = 2014-10-07 18:09:18.068583+02:00 via Logic None None -- item.py:__update:363
    2014-10-08 22:51:00,147 DEBUG    env_loc      Item env.location.moonrise = 2014-10-09 19:35:29.921465+02:00 via Logic None None -- item.py:__update:363
    2014-10-08 22:51:00,220 DEBUG    env_loc      Item env.location.moonset = 2014-10-09 08:52:56.720884+02:00 via Logic None None -- item.py:__update:363
    2014-10-08 22:51:00,278 DEBUG    env_loc      Item env.location.moonphase = 4 via Logic None None -- item.py:__update:363
    2014-10-08 22:51:00,362 DEBUG    env_loc      Item env.location.night = True via Logic None None -- item.py:__update:363
    2014-10-08 22:51:00,371 DEBUG    sh.gc        Object references: 8938 -- smarthome.py:_maintenance:490
    2014-10-08 22:51:00,509 DEBUG    Scheduler    env_loc next time: 2014-10-08 23:21:00+02:00 -- scheduler.py:_next_time:289
    2014-10-08 22:51:00,533 DEBUG    Scheduler    sh.gc next time: 2014-10-09 02:04:00+02:00 -- scheduler.py:_next_time:289
    2014-10-08 22:51:05,068 ERROR    Connections  WebSocket: problem binding 192.168.1.17:2424 (TCP): [Errno 98] Die Adresse wird bereits verwendet -- connection.py:connect:157
    2014-10-08 22:51:05,088 ERROR    Connections  CLI: problem binding 0.0.0.0:2323 (TCP): [Errno 98] Die Adresse wird bereits verwendet -- connection.py:connect:157
    2014-10-08 22:51:09,158 DEBUG    env_stat     Item env.core.memory = 13324288 via Logic None None -- item.py:__update:363
    2014-10-08 22:51:09,170 DEBUG    env_stat     Item env.system.load = 0.07 via Logic None None -- item.py:__update:363
    2014-10-08 22:51:09,182 DEBUG    env_stat     Item env.location.moonlight = 100 via Logic None None -- item.py:__update:363
    2014-10-08 22:51:09,607 DEBUG    Scheduler    env_stat next time: 2014-10-08 22:56:09+02:00 -- scheduler.py:_next_time:289
    2014-10-08 22:51:15,154 ERROR    Connections  WebSocket: problem binding 192.168.1.17:2424 (TCP): [Errno 98] Die Adresse wird bereits verwendet -- connection.py:connect:157
    2014-10-08 22:51:15,162 ERROR    Connections  CLI: problem binding 0.0.0.0:2323 (TCP): [Errno 98] Die Adresse wird bereits verwendet -- connection.py:connect:157
    ^X2014-10-08 22:51:25,222 ERROR    Connections  WebSocket: problem binding 192.168.1.17:2424 (TCP): [Errno 98] Die Adresse wird bereits verwendet -- connection.py:connect:157
    2014-10-08 22:51:25,232 ERROR    Connections  CLI: problem binding 0.0.0.0:2323 (TCP): [Errno 98] Die Adresse wird bereits verwendet -- connection.py:connect:157
    ^C2014-10-08 22:51:27,437 INFO     Main         Number of Threads: 8 -- smarthome.py:stop:348
    2014-10-08 22:51:27,441 INFO     Main         Stop Plugins -- plugin.py:stop:70
    ^C2014-10-08 22:51:33,344 INFO     Main         Number of Threads: 1 -- smarthome.py:stop:348
    2014-10-08 22:51:33,348 INFO     Main         Stop Plugins -- plugin.py:stop:70
    Ich hoffe das is nicht zu viel Text auf einmal und bin über jede Hilfe höchst dankbar

    Lg
    Jacomo

    #2
    Geh' mal auf die Kommandozeile und lass Dir mit "ps ax | grep smart" die laufenden smarthome Prozesse zeigen. Ich würde drauf wetten, das Du derer zwei hast. Darum bekommst Du auch Meldungen, das die Verbindungen nicht hergestellt werden konnten. Am besten beide beenden und nochmal im Debug Modus starten ( -d). Dann kann man weiterschauen falls es dann noch nicht klappt.

    Gruß,
    Bernd

    Kommentar


      #3
      Tja, so einfacht kanns gehen. Prozesse beendet, im Debug Modus gestartet und schon funktioniert alles. Hätt ich auch selber drauf kommen können, aber nachher is man immer schlauer

      Vielen Dank! Jetzt kann ich weitermachen

      Kommentar

      Lädt...
      X