Moin!
Nachdem smarthome.py (erstmal) läuft, habe ich jetzt versucht, mit smartVISU drauf zuzugreifen. Die Verbindung funktioniert, im Log sehe ich die Zugriffe von der Visu - aber ich habe den Eindruck, dass die Konfiguration von smarthome.py nicht stimmt, die reden offensichtlich aneinander vorbei.
System: Debian 8, smarthome.py 1.0-45-g02cf972, smartVISU 2.7, eibd auf externem Rechner (funktioniert mit anderer Visu).
plugins.conf:
smarthome.conf:
items/rooms.conf: enthält zwei Beispiellampen (Arbeitstisch, Schreibtisch) zum Testen
Nach dem Start versuche ich,
a) die room-Seite Arbeit aufzurufen
b) die Konfig-Seite smarthome.py aufzurufen.
Ergebnis:
Mich irritiert, dass offensichtlich kein einziges Item so abgefragt werden kann, dass ein gültiger Wert zurückgegeben wird, sh.py beschwert sich immer über "invalid item" oder "invalid series".
Übersehe ich einen offensichtlichen Fehler, habe ich beim Setup was grundlegend falsch gemacht? Wo kann ich ansetzen?
Nachdem smarthome.py (erstmal) läuft, habe ich jetzt versucht, mit smartVISU drauf zuzugreifen. Die Verbindung funktioniert, im Log sehe ich die Zugriffe von der Visu - aber ich habe den Eindruck, dass die Konfiguration von smarthome.py nicht stimmt, die reden offensichtlich aneinander vorbei.
System: Debian 8, smarthome.py 1.0-45-g02cf972, smartVISU 2.7, eibd auf externem Rechner (funktioniert mit anderer Visu).
plugins.conf:
Code:
[knx] class_name = KNX class_path = plugins.knx host = hauspi port = 6720 send_time = 60 # update date/time every 600 seconds, default none time_ga = 5/1/0 # default none date_ga = 5/1/1 # default none busmonitor = true [visu] class_name = WebSocket class_path = plugins.visu smartvisu_dir = /var/www/html/smartVISU
Code:
lat = 50 lon = 7 elev = 200 tz = 'Europe/Berlin'
Code:
[EG] [[Arbeit]] name = Arbeitszimmer sv_page = room sv_img = scene_livingroom.svg [[[AT]]] type = bool visu = yes knx_dpt = 1 knx_send = 1/0/2 knx_status = 1/3/2 visu_acl = rw [[[ST]]] type = bool visu = yes knx_dpt = 1 knx_send = 1/0/3 knx_status = 1/3/3 visu_acl = rw
Nach dem Start versuche ich,
a) die room-Seite Arbeit aufzurufen
b) die Konfig-Seite smarthome.py aufzurufen.
Ergebnis:
Code:
2015-06-14 11:34:15,307 INFO Main Start SmartHome.py 1.0-45-g02cf972 -- smarthome.py:__init__:231
2015-06-14 11:34:15,308 DEBUG Main Python 3.4.2 -- smarthome.py:__init__:232
2015-06-14 11:34:15,308 INFO Main Init Scheduler -- scheduler.py:__init__:86
2015-06-14 11:34:15,308 DEBUG Scheduler creating 5 workers -- scheduler.py:run:93
2015-06-14 11:34:15,309 INFO Main Init Plugins -- smarthome.py:start:274
2015-06-14 11:34:15,310 DEBUG Main Plugin: knx -- plugin.py:__init__:43
2015-06-14 11:34:15,311 DEBUG Main KNX time next time: 2015-06-14 11:34:26+02:00 -- scheduler.py:_next_time:289
2015-06-14 11:34:15,311 DEBUG Main Plugin: visu -- plugin.py:__init__:43
2015-06-14 11:34:15,314 INFO Main Init Items -- smarthome.py:start:280
2015-06-14 11:34:15,315 DEBUG Main Item env.core: no type specified. -- item.py:__init__:242
2015-06-14 11:34:15,316 DEBUG Main Item env.location: no type specified. -- item.py:__init__:242
2015-06-14 11:34:15,317 DEBUG Main Item env.system: no type specified. -- item.py:__init__:242
2015-06-14 11:34:15,318 DEBUG Main Item env: no type specified. -- item.py:__init__:242
2015-06-14 11:34:15,318 INFO Main Start Plugins -- plugin.py:start:65
2015-06-14 11:34:15,319 INFO Main Start Logics -- logic.py:__init__:33
2015-06-14 11:34:15,319 DEBUG Main Reading Logics from /home/sh/smarthome/lib/env/logic_conf -- logic.py:_read_logics:64
2015-06-14 11:34:15,320 DEBUG Main Reading Logics from /home/sh/smarthome/etc/logic.conf -- logic.py:_read_logics:64
2015-06-14 11:34:15,321 DEBUG Main Logic: env_init -- logic.py:__init__:44
2015-06-14 11:34:15,323 DEBUG Main Logic: env_stat -- logic.py:__init__:44
2015-06-14 11:34:15,323 DEBUG Main env_stat next time: 2015-06-14 11:34:26+02:00 -- scheduler.py:_next_time:289
2015-06-14 11:34:15,327 DEBUG Main Logic: env_loc -- logic.py:__init__:44
2015-06-14 11:34:15,331 DEBUG Connections KNX: connected to hauspi:6720 -- connection.py:connect:386
2015-06-14 11:34:15,332 DEBUG Connections KNX: enable group monitor -- __init__.py:handle_connect:117
2015-06-14 11:34:15,332 DEBUG Connections WebSocket: binding to 0.0.0.0:2424 (TCP) -- connection.py:connect:161
2015-06-14 11:34:20,344 DEBUG env_loc Item env.location.sunrise = 2015-06-15 05:16:26.141108+02:00 via Logic None None -- item.py:__update:363
2015-06-14 11:34:20,360 DEBUG env_loc Item env.location.sunset = 2015-06-14 21:45:32.541486+02:00 via Logic None None -- item.py:__update:363
2015-06-14 11:34:20,346 DEBUG env_init Item env.core.version = 1.0-45-g02cf972 via Logic None None -- item.py:__update:363
2015-06-14 11:34:20,358 DEBUG sh.gc Garbage collector: collected 0 objects. -- smarthome.py:_garbage_collection:498
2015-06-14 11:34:20,366 DEBUG env_init Item env.core.start = 2015-06-14 11:34:20.366196+02:00 via Logic None None -- item.py:__update:363
2015-06-14 11:34:20,374 DEBUG env_init Item env.system.name = smh via Logic None None -- item.py:__update:363
2015-06-14 11:34:20,375 DEBUG env_init Item env.system.start = 2015-06-14 09:49:40.375426+02:00 via Logic None None -- item.py:__update:363
2015-06-14 11:34:20,365 DEBUG env_loc Item env.location.moonrise = 2015-06-15 04:47:17.552605+02:00 via Logic None None -- item.py:__update:363
2015-06-14 11:34:20,379 DEBUG env_loc Item env.location.moonset = 2015-06-14 19:16:07.172464+02:00 via Logic None None -- item.py:__update:363
2015-06-14 11:34:20,382 DEBUG env_loc Item env.location.moonphase = 7 via Logic None None -- item.py:__update:363
2015-06-14 11:34:20,386 DEBUG env_loc Item env.location.day = True via Logic None None -- item.py:__update:363
2015-06-14 11:34:20,381 DEBUG sh.gc Object references: 10680 -- smarthome.py:_maintenance:490
2015-06-14 11:34:20,843 DEBUG Scheduler sh.gc next time: 2015-06-15 02:04:00+02:00 -- scheduler.py:_next_time:289
2015-06-14 11:34:20,858 DEBUG Scheduler env_loc next time: 2015-06-14 12:04:20+02:00 -- scheduler.py:_next_time:289
2015-06-14 11:34:26,384 DEBUG env_stat Item env.core.threads = 7 via Logic None None -- item.py:__update:363
2015-06-14 11:34:26,389 DEBUG env_stat Item env.core.memory = 18526208 via Logic None None -- item.py:__update:363
2015-06-14 11:34:26,390 DEBUG env_stat Item env.system.load = 0.01 via Logic None None -- item.py:__update:363
2015-06-14 11:34:26,391 DEBUG env_stat Item env.location.moonlight = 6 via Logic None None -- item.py:__update:363
2015-06-14 11:34:26,394 INFO Main knx: 0.0.0 set 5/1/0 to eb221a -- __init__.py:parse_telegram:181
2015-06-14 11:34:26,399 INFO Main knx: 0.0.0 set 5/1/1 to 0e060f -- __init__.py:parse_telegram:181
2015-06-14 11:34:26,882 DEBUG Scheduler KNX time next time: 2015-06-14 11:35:26+02:00 -- scheduler.py:_next_time:289
2015-06-14 11:34:26,882 DEBUG Scheduler env_stat next time: 2015-06-14 11:39:26+02:00 -- scheduler.py:_next_time:289
2015-06-14 11:34:27,781 DEBUG Main WebSocket: incoming connection from 192.168.2.2:42802 to 0.0.0.0:2424 -- connection.py:accept:188
2015-06-14 11:34:27,980 DEBUG Main 192.168.2.2:42802 sent '{"cmd":"proto","ver":3}' -- __init__.py:json_parse:270
2015-06-14 11:34:45,625 DEBUG Main 192.168.2.2:42802 sent '{"cmd":"monitor","items":["EG.Arbeit.AT","EG.Arbeit.ST"]}' -- __init__.py:json_parse:270
2015-06-14 11:34:45,625 WARNING Main Client 192.168.2.2:42802 requested invalid item: EG.Arbeit.AT -- __init__.py:json_parse:294
2015-06-14 11:34:45,626 WARNING Main Client 192.168.2.2:42802 requested invalid item: EG.Arbeit.ST -- __init__.py:json_parse:294
2015-06-14 11:34:51,979 DEBUG Main WebSocketHandler: closing socket 192.168.2.2:42802 -- connection.py:close:303
2015-06-14 11:34:52,111 DEBUG Main WebSocket: incoming connection from 192.168.2.2:42821 to 0.0.0.0:2424 -- connection.py:accept:188
2015-06-14 11:34:52,568 DEBUG Main 192.168.2.2:42821 sent '{"cmd":"proto","ver":3}' -- __init__.py:json_parse:270
2015-06-14 11:34:53,928 DEBUG Main 192.168.2.2:42821 sent '{"cmd":"monitor","items":["env.system.name","env.core.version","env.system.load","env.core.threads","env.core.memory","env.system.start","env.core.start","env.location.sunrise","env.location.sunset","env.location.moonrise","env.location.moonset","env.location.moonphase","env.location.moonlight"]}' -- __init__.py:json_parse:270
2015-06-14 11:34:53,929 DEBUG Main 192.168.2.2:42821 sent '{"cmd":"series","item":"env.system.load","series":"avg","start":"1d"}' -- __init__.py:json_parse:270
2015-06-14 11:34:53,929 WARNING Main Client 192.168.2.2:42821 requested invalid series: env.system.load. -- __init__.py:json_parse:336
2015-06-14 11:34:53,929 DEBUG Main 192.168.2.2:42821 sent '{"cmd":"series","item":"env.core.threads","series":"avg","start":"1d"}' -- __init__.py:json_parse:270
2015-06-14 11:34:53,929 WARNING Main Client 192.168.2.2:42821 requested invalid series: env.core.threads. -- __init__.py:json_parse:336
2015-06-14 11:34:53,929 DEBUG Main 192.168.2.2:42821 sent '{"cmd":"series","item":"env.core.memory","series":"avg","start":"1d"}' -- __init__.py:json_parse:270
2015-06-14 11:34:53,929 WARNING Main Client 192.168.2.2:42821 requested invalid series: env.core.memory. -- __init__.py:json_parse:336
2015-06-14 11:34:53,929 DEBUG Main 192.168.2.2:42821 sent '{"cmd":"log","name":"env.core.log","max":"10"}' -- __init__.py:json_parse:270
2015-06-14 11:35:01,221 INFO Main Number of Threads: 7 -- smarthome.py:stop:348
2015-06-14 11:35:01,221 INFO Main Stop Plugins -- plugin.py:stop:70
2015-06-14 11:35:01,222 DEBUG Main WebSocketHandler: closing socket 192.168.2.2:42821 -- connection.py:close:303
2015-06-14 11:35:01,223 DEBUG Main KNX: closing socket hauspi:6720 -- connection.py:close:303
2015-06-14 11:35:01,466 INFO Main SmartHome.py stopped -- smarthome.py:stop:372
Übersehe ich einen offensichtlichen Fehler, habe ich beim Setup was grundlegend falsch gemacht? Wo kann ich ansetzen?


Kommentar