Hallo,
wie schon in einem anderen Thread geschrieben, läuft bei mir ein eibd auf einem Wiregate, der über einen Weinzierl 750 Router (mittels Tunneling) verbunden ist.
Auf einem RasPi mit smarthome.py-Image würde ich jetzt gerne smarthome.py und smartVISU laufen lassen. Dazu soll sich smarthome.py mit dem eibd des Wiregates verbinden. Das Wiregate hat die IP 192.168.1.13.
Leider funktioniert die Verbindung nicht. Ich kann aber mittels "groupswrite" durchaus auf das Wiregate zugreifen ... z.B.: "groupswrite ip:192.168.1.13 8/3/0 1" schaltet mein Licht im Arbeitszimmer an.
Smarthome.py meldet (auch im Debug-Modus) einen Verbindungsfehler. Könnte jemand die Ursache nachvollziehen ... oder was kann ich machen, damit die Verbindung läuft?
Die plugin.conf ist ganz einfach:
Hier ist noch die Debug-Ausgabe vom Start des smartHome.py:
Ich würde mich echt freuen, wenn jemand da die zündende Idee hat 
Viele Grüße,
Stefan
wie schon in einem anderen Thread geschrieben, läuft bei mir ein eibd auf einem Wiregate, der über einen Weinzierl 750 Router (mittels Tunneling) verbunden ist.
Auf einem RasPi mit smarthome.py-Image würde ich jetzt gerne smarthome.py und smartVISU laufen lassen. Dazu soll sich smarthome.py mit dem eibd des Wiregates verbinden. Das Wiregate hat die IP 192.168.1.13.
Leider funktioniert die Verbindung nicht. Ich kann aber mittels "groupswrite" durchaus auf das Wiregate zugreifen ... z.B.: "groupswrite ip:192.168.1.13 8/3/0 1" schaltet mein Licht im Arbeitszimmer an.
Smarthome.py meldet (auch im Debug-Modus) einen Verbindungsfehler. Könnte jemand die Ursache nachvollziehen ... oder was kann ich machen, damit die Verbindung läuft?
Die plugin.conf ist ganz einfach:
Code:
# plugin.conf [knx] class_name = KNX class_path = plugins.knx host = 192.168.1.13 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.1.13' port=2424 acl = rw smartvisu_dir = /var/www/smartvisu [cli] class_name = CLI class_path = plugins.cli ip = 0.0.0.0 update = True
Code:
2014-12-16 21:40:47,577 INFO Main Start SmartHome.py 1.0-35-gf62db45 -- smarthome.py:__init__:231 2014-12-16 21:40:47,582 DEBUG Main Python 3.2.3 -- smarthome.py:__init__:232 2014-12-16 21:40:47,588 INFO Main Init Scheduler -- scheduler.py:__init__:86 2014-12-16 21:40:47,593 INFO Main Init Plugins -- smarthome.py:start:274 2014-12-16 21:40:47,609 DEBUG Scheduler creating 5 workers -- scheduler.py:run:93 2014-12-16 21:40:47,615 DEBUG Main Plugin: knx -- plugin.py:__init__:43 2014-12-16 21:40:47,637 DEBUG Main Plugin: visu -- plugin.py:__init__:43 2014-12-16 21:40:47,736 DEBUG Main Plugin: cli -- plugin.py:__init__:43 2014-12-16 21:40:47,748 DEBUG Main Plugin: sql -- plugin.py:__init__:43 2014-12-16 21:40:47,780 DEBUG Main SQLite 3.7.13 -- __init__.py:__init__:62 2014-12-16 21:40:48,575 DEBUG Main SQLite: database integrity ok -- __init__.py:__init__:78 2014-12-16 21:40:48,601 DEBUG Main SQLite pack next time: 2014-12-17 03:02:00+01:00 -- scheduler.py:_next_time:289 2014-12-16 21:40:48,607 INFO Main Init Items -- smarthome.py:start:280 2014-12-16 21:40:48,776 DEBUG Main Item env.core.memory = 15335424.0 via SQLite None None -- item.py:set:457 2014-12-16 21:40:48,869 DEBUG Main Item env.core.threads = 7.0 via SQLite None None -- item.py:set:457 2014-12-16 21:40:48,962 DEBUG Main Item env.core.garbage = 0.0 via SQLite None None -- item.py:set:457 2014-12-16 21:40:48,968 DEBUG Main Item env.core: no type specified. -- item.py:__init__:242 2014-12-16 21:40:49,008 DEBUG Main Item env.location: no type specified. -- item.py:__init__:242 2014-12-16 21:40:49,104 DEBUG Main Item env.system.load = 0.01 via SQLite None None -- item.py:set:457 2014-12-16 21:40:49,114 DEBUG Main Item env.system: no type specified. -- item.py:__init__:242 2014-12-16 21:40:49,118 DEBUG Main Item env: no type specified. -- item.py:__init__:242 2014-12-16 21:40:49,134 DEBUG Main KNX: Aussen.Wetter.Wind_Jalousie listen on 0/0/1 -- __init__.py:parse_item:235 2014-12-16 21:40:49,144 DEBUG Main KNX: Aussen.Wetter.Frost listen on 0/0/2 -- __init__.py:parse_item:235 2014-12-16 21:40:49,155 DEBUG Main KNX: Aussen.Wetter.Wind_Markiese listen on 0/0/3 -- __init__.py:parse_item:235 2014-12-16 21:40:49,165 DEBUG Main KNX: Aussen.Wetter.Temperatur_aussen listen on 1/2/2 -- __init__.py:parse_item:235 2014-12-16 21:40:49,175 DEBUG Main KNX: Aussen.Wetter.Helligkeit_aussen listen on 1/2/3 -- __init__.py:parse_item:235 2014-12-16 21:40:49,186 DEBUG Main KNX: Aussen.Wetter.Windgeschwindigkeit listen on 1/2/4 -- __init__.py:parse_item:235 2014-12-16 21:40:49,196 DEBUG Main KNX: Aussen.Wetter.Regen listen on 1/2/5 -- __init__.py:parse_item:235 2014-12-16 21:40:49,207 DEBUG Main KNX: Aussen.Wetter.Azimut listen on 1/2/12 -- __init__.py:parse_item:235 2014-12-16 21:40:49,219 DEBUG Main KNX: Aussen.Wetter.Elevation listen on 1/2/13 -- __init__.py:parse_item:235 2014-12-16 21:40:49,225 DEBUG Main Item Aussen.Wetter: no type specified. -- item.py:__init__:242 2014-12-16 21:40:49,229 DEBUG Main Item Aussen: no type specified. -- item.py:__init__:242 2014-12-16 21:40:49,236 INFO Main Start Plugins -- plugin.py:start:65 2014-12-16 21:40:49,300 INFO Main Start Logics -- logic.py:__init__:33 2014-12-16 21:40:49,305 DEBUG Main Reading Logics from /usr/smarthome/lib/env/logic_conf -- logic.py:_read_logics:64 2014-12-16 21:40:49,335 DEBUG Main Reading Logics from /usr/smarthome/etc/logic.conf -- logic.py:_read_logics:64 2014-12-16 21:40:49,355 DEBUG Main Logic: dummy -- logic.py:__init__:44 2014-12-16 21:40:49,406 DEBUG Main dummy next time: 2014-12-16 21:40:59+01:00 -- scheduler.py:_next_time:289 2014-12-16 21:40:49,410 DEBUG Main Logic: hello -- logic.py:__init__:44 2014-12-16 21:40:49,419 DEBUG Main Logic: env_init -- logic.py:__init__:44 2014-12-16 21:40:49,430 DEBUG Main Logic: env_stat -- logic.py:__init__:44 2014-12-16 21:40:49,446 DEBUG Main env_stat next time: 2014-12-16 21:40:59+01:00 -- scheduler.py:_next_time:289 2014-12-16 21:40:49,450 DEBUG Main Logic: env_loc -- logic.py:__init__:44 2014-12-16 21:40:49,794 DEBUG Connections KNX: connected to 192.168.1.13:6720 -- connection.py:connect:386 2014-12-16 21:40:49,799 DEBUG Connections KNX: enable group monitor -- __init__.py:handle_connect:117 2014-12-16 21:40:49,805 ERROR Connections WebSocket: problem binding 192.168.1.13:2424 (TCP): [Errno 99] Cannot assign requested address -- connection.py:connect:157 2014-12-16 21:40:49,813 DEBUG Connections CLI: binding to 0.0.0.0:2323 (TCP) -- connection.py:connect:161 2014-12-16 21:40:54,809 DEBUG env_loc Item env.location.sunrise = 2014-12-17 08:20:02.288243+01:00 via Logic None None -- item.py:__update:363 2014-12-16 21:40:54,817 DEBUG sh.gc Garbage collector: collected 0 objects. -- smarthome.py:_garbage_collection:498 2014-12-16 21:40:54,816 DEBUG env_init Item env.core.version = 1.0-35-gf62db45 via Logic None None -- item.py:__update:363 2014-12-16 21:40:54,812 INFO hello Hello World! -- hello.py:<module>:3 2014-12-16 21:40:54,842 DEBUG env_init Item env.core.start = 2014-12-16 21:40:54.839948+01:00 via Logic None None -- item.py:__update:363 2014-12-16 21:40:54,886 DEBUG env_loc Item env.location.sunset = 2014-12-17 16:26:17.912710+01:00 via Logic None None -- item.py:__update:363 2014-12-16 21:40:54,923 DEBUG env_init Item env.system.name = smarthome.local via Logic None None -- item.py:__update:363 2014-12-16 21:40:54,946 DEBUG env_loc Item env.location.moonrise = 2014-12-17 02:52:52.841224+01:00 via Logic None None -- item.py:__update:363 2014-12-16 21:40:54,965 DEBUG env_init Item env.system.start = 2014-12-14 20:38:02.962264+01:00 via Logic None None -- item.py:__update:363 2014-12-16 21:40:55,035 DEBUG env_loc Item env.location.moonset = 2014-12-17 13:42:26.687186+01:00 via Logic None None -- item.py:__update:363 2014-12-16 21:40:55,076 DEBUG env_loc Item env.location.moonphase = 7 via Logic None None -- item.py:__update:363 2014-12-16 21:40:55,157 DEBUG env_loc Item env.location.night = True via Logic None None -- item.py:__update:363 2014-12-16 21:40:55,165 DEBUG sh.gc Object references: 8986 -- smarthome.py:_maintenance:490 2014-12-16 21:40:55,372 DEBUG Scheduler env_loc next time: 2014-12-16 22:10:55+01:00 -- scheduler.py:_next_time:289 2014-12-16 21:40:55,392 DEBUG Scheduler sh.gc next time: 2014-12-17 02:04:00+01:00 -- scheduler.py:_next_time:289 2014-12-16 21:40:59,480 DEBUG env_stat Item env.core.memory = 14864384 via Logic None None -- item.py:__update:363 2014-12-16 21:40:59,492 DEBUG env_stat Item env.system.load = 0.02 via Logic None None -- item.py:__update:363 2014-12-16 21:40:59,483 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-12-16 21:40:59,506 DEBUG env_stat Item env.location.moonlight = 28 via Logic None None -- item.py:__update:363 2014-12-16 21:40:59,928 DEBUG Scheduler dummy next time: 2014-12-16 21:45:59+01:00 -- scheduler.py:_next_time:289 2014-12-16 21:40:59,936 DEBUG Scheduler env_stat next time: 2014-12-16 21:45:59+01:00 -- scheduler.py:_next_time:289 2014-12-16 21:41:00,444 ERROR Connections WebSocket: problem binding 192.168.1.13:2424 (TCP): [Errno 99] Cannot assign requested address -- connection.py:connect:157 2014-12-16 21:41:10,502 ERROR Connections WebSocket: problem binding 192.168.1.13:2424 (TCP): [Errno 99] Cannot assign requested address -- connection.py:connect:157 2014-12-16 21:41:12,236 INFO Main Number of Threads: 7 -- smarthome.py:stop:348 2014-12-16 21:41:12,240 INFO Main Stop Plugins -- plugin.py:stop:70 2014-12-16 21:41:12,472 DEBUG Main KNX: closing socket 192.168.1.13:6720 -- connection.py:close:303 2014-12-16 21:41:13,182 INFO Main SmartHome.py stopped -- smarthome.py:stop:372

Viele Grüße,
Stefan
Kommentar