Hallo zusammen,
habe auf meinem Raspberry das SmarthomeNG image inkl. SmartVisu installiert.
jedoch kann ich via visu nichts einschalten bzw ausschalten.
Verbindung zum Bus steht.
items.conf
plugin.yaml
room.example.html
PS: Habe auch schon probiert über die Gruppenadresse direkt zu schalten.
Bin langsam am Ende angelangt da leider nichts über die Visu funktioniert.
smarthome.log
Danke für eure Hilfe
habe auf meinem Raspberry das SmarthomeNG image inkl. SmartVisu installiert.
jedoch kann ich via visu nichts einschalten bzw ausschalten.
Verbindung zum Bus steht.
items.conf
Code:
[Aussen] [[Terasse]] [[[Unterbau]]] [[[[Schalten]]]] type = bool enforce_updates = yes visu_acl = rw knx_dpt = 1 knx_listen = 0/1/8 knx_send = 3/1/5 knx_init 0/1/8
plugin.yaml
Code:
# plugin.yaml knx: plugin_name: knx class_name: KNX class_path: plugins.knx instance: knx_1 host: 127.0.0.1 port: 6720 send_time: 600 # update date/time every 600 seconds, default none time_ga: 0/4/1 #date_ga: 0/4/2 websocket: class_name: WebSocket class_path: plugins.visu_websocket ip: 192.168.178.54 port: 2424 tls: no wsproto: 4 acl: rw sql: class_name: SQL class_path: plugins.sqlite BackendServer: class_name: BackendServer class_path: plugins.backend user: smarthome password: admin
Code:
{% extends "rooms.html" %} {% block content %} Kinderzimmer 1 - Licht {{ basic.switch('switch1', 'Aussen.Terasse.Unterbau.Schalten') }} {% endblock %}
PS: Habe auch schon probiert über die Gruppenadresse direkt zu schalten.
Bin langsam am Ende angelangt da leider nichts über die Visu funktioniert.
smarthome.log
Code:
2018-02-17 21:59:21 INFO Main Using module 'http' 2018-02-17 21:59:21 INFO Main WebInterface: Running from '/usr/local/smarthome/plugins/backend/webif' 2018-02-17 21:59:21 INFO Main Module http: Registering webinterface 'backend' of plugin 'backend' from pluginclass 'BackendServer' instance '' 2018-02-17 21:59:21 INFO Main - conf dict: '{'/': {'tools.auth_basic.checkpassword': <bound method Http.validate_password of <modules.http.Http object at 0x7601dc10>>, 'tools.staticdir.root': '/usr/local/smarthome/plugins/backend/webif', 'tools.auth_basic.realm': 'shng_http_webif', 'tools.auth_basic.on': False}, '/static': {'tools.staticdir.on': True, 'tools.staticdir.dir': 'static'}}' 2018-02-17 21:59:21 INFO Main self._applications['backend'] = {'Description': 'Administrationsoberfläche für SmartHomeNG', 'Mount': '/backend', 'Pluginclass': 'BackendServer', 'Instance': '', 'Pluginname': 'backend', 'Conf': {'/': {'tools.auth_basic.checkpassword': <bound method Http.validate_password of <modules.http.Http object at 0x7601dc10>>, 'tools.staticdir.root': '/usr/local/smarthome/plugins/backend/webif', 'tools.auth_basic.realm': 'shng_http_webif', 'tools.auth_basic.on': False}, '/static': {'tools.staticdir.on': True, 'tools.staticdir.dir': 'static'}}, 'Webifname': 'backend'} 2018-02-17 21:59:21 DEBUG Main Plugins: Loaded plugin 'BackendServer' (class 'BackendServer') v1.4.9: Web Interface zur Anzeige von Informationen zum System und SmartHomeNG Backend-Daten 2018-02-17 21:59:21 INFO Main Initialized plugin 'backend' from from section 'BackendServer' 2018-02-17 21:59:21 INFO Main Load of plugins finished 2018-02-17 21:59:21 INFO Main Start initialization of items 2018-02-17 21:59:21 DEBUG Main parse_yaml: Parsing file core.yaml 2018-02-17 21:59:21 INFO Main Loading '/usr/local/smarthome/lib/env/core.yaml' to 'OrderedDict' 2018-02-17 21:59:21 DEBUG Main parse_yaml: Parsing file location.yaml 2018-02-17 21:59:21 INFO Main Loading '/usr/local/smarthome/lib/env/location.yaml' to 'OrderedDict' 2018-02-17 21:59:21 INFO Main config.parse_itemsdir: skipping logic definition file = /usr/local/smarthome/lib/env/logic.yaml 2018-02-17 21:59:21 DEBUG Main parse_yaml: Parsing file system.yaml 2018-02-17 21:59:21 INFO Main Loading '/usr/local/smarthome/lib/env/system.yaml' to 'OrderedDict' 2018-02-17 21:59:21 DEBUG Main Item env.core.memory = 29323264.0 via SQLite None None 2018-02-17 21:59:21 DEBUG Main Item env.core.threads = 27.0 via SQLite None None 2018-02-17 21:59:21 DEBUG Main Item env.core.garbage = 0.0 via SQLite None None 2018-02-17 21:59:21 DEBUG Main Item env.system.load = 0.02 via SQLite None None 2018-02-17 21:59:21 INFO Main Items initialization finished, 49 items loaded 2018-02-17 21:59:21 INFO Main Start Logics 2018-02-17 21:59:21 DEBUG Main Reading Logics from /usr/local/smarthome/lib/env/logic.* 2018-02-17 21:59:21 DEBUG Main parse_yaml: Parsing file logic.yaml 2018-02-17 21:59:21 INFO Main Loading '/usr/local/smarthome/lib/env/logic.yaml' to 'OrderedDict' 2018-02-17 21:59:21 DEBUG Main Reading Logics from /usr/local/smarthome/etc/logic.* 2018-02-17 21:59:21 DEBUG Main parse_yaml: Parsing file logic.yaml 2018-02-17 21:59:21 INFO Main Loading '/usr/local/smarthome/etc/logic.yaml' to 'OrderedDict' 2018-02-17 21:59:21 DEBUG Main Logic: env_loc 2018-02-17 21:59:21 DEBUG Main Logic: env_daily 2018-02-17 21:59:21 DEBUG Main logics.env_daily next time: 2018-02-18 06:00:00+01:00 2018-02-17 21:59:21 DEBUG Main Logic: env_init 2018-02-17 21:59:21 DEBUG Main Logic: env_stat 2018-02-17 21:59:21 DEBUG Main logics.env_stat next time: 2018-02-17 21:59:31+01:00 2018-02-17 21:59:21 DEBUG Main sh.connections next time: 2018-02-17 21:59:21+01:00 2018-02-17 21:59:21 INFO Main Start plugins 2018-02-17 21:59:21 DEBUG Main Starting plugin 'knx', instance 'default' 2018-02-17 21:59:21 DEBUG Main Starting plugin 'visu_websocket' 2018-02-17 21:59:21 DEBUG websocket scheduler_add: name = plugins.visu_websocket.series 2018-02-17 21:59:21 DEBUG Main Starting plugin 'sqlite' 2018-02-17 21:59:21 DEBUG websocket plugins.visu_websocket.series next time: 2018-02-17 21:59:31+01:00 2018-02-17 21:59:21 DEBUG Main Starting plugin 'backend' 2018-02-17 21:59:21 DEBUG BackendServer Plugin 'backend': run method called 2018-02-17 21:59:21 INFO Main Start of plugins finished 2018-02-17 21:59:22 DEBUG sh.connections KNX: connected to 127.0.0.1:6720 2018-02-17 21:59:22 DEBUG sh.connections KNX[default]: enable group monitor 2018-02-17 21:59:22 DEBUG sh.connections _websocket: binding to 192.168.178.54:2424 (TCP) 2018-02-17 21:59:22 DEBUG Scheduler sh.connections next time: 2018-02-17 21:59:32+01:00 2018-02-17 21:59:22 DEBUG Main _websocket: incoming connection from 192.168.178.46:15565 to 192.168.178.54:2424 2018-02-17 21:59:22 INFO Main VISU: Websocket handler uses protocol version 4 2018-02-17 21:59:22 DEBUG Main rfc6455 Handshake 2018-02-17 21:59:23 DEBUG Main 192.168.178.46:15565 sent '{"cmd":"proto","ver":4}' 2018-02-17 21:59:23 DEBUG Main 192.168.178.46:15565 sent '{"cmd":"identity","sw":"smartVISU","ver":"v2.9","browser":"Chrome","bver":"64"}' 2018-02-17 21:59:23 DEBUG Main VISU json_parse: received 'identify' from 192.168.178.46:15565: {'sw': 'smartVISU', 'bver': '64', 'ver': 'v2.9', 'browser': 'Chrome', 'cmd': 'identity'} 2018-02-17 21:59:23 DEBUG Main 192.168.178.46:15565 sent '{"cmd":"monitor","items":["Aussen.Terasse.Unterbau.Schalten","0/0/4/9.xxx","0/1/2/1.001","0/1/12/1.001","0/1/22/1.001","0/1/32/1.001","0/0/2/1.001","1/0/4/9.xxx","1/1/2/1.001","1/1/12/1.001","1/1/22/1.001","1/0/2/1.001","2/0/4/9.xxx","2/1/2/1.001","2/0/2/1.001","3/0/4/9.xxx","3/1/2/1.001","3/0/2/1.001","5/1/2/1.001","4/0/4/9.xxx","4/1/2/1.001","4/1/12/1.001","4/1/22/1.001","4/0/2/1.001","6/0/4/9.xxx","6/1/2/1.001","6/0/2/1.001","7/0/4/9.xxx","7/1/2/1.001","7/1/12/1.001","7/0/2/1.001","8/0/4/9.xxx","8/1/2/1.001","8/0/2/1.001","9/0/4/9.xxx","9/1/2/1.001","9/1/12/1.001","9/0/2/1.001","10/0/4/9.xxx","10/1/2/1.001","10/0/2/1.001"]}' 2018-02-17 21:59:23 WARNING Main Client 192.168.178.46:15565 requested invalid item: 0/0/4/9.xxx 2018-02-17 21:59:23 WARNING Main Client 192.168.178.46:15565 requested invalid item: 0/1/2/1.001 2018-02-17 21:59:23 WARNING Main Client 192.168.178.46:15565 requested invalid item: 0/1/12/1.001
Kommentar