Hallo, hat schon mal jemand das Kathrein plugin zum laufen gebraucht? Wenn ich es einladen will, funktiniert smarthome nicht mehr.
Ankündigung
Einklappen
Keine Ankündigung bisher.
Kathrein plugin
Einklappen
X
-
waldmeister68 was sagt denn das Log :>
Das Plugin ist seit Jahren offenbar gleich - da es noch nicht mal ein SmartPlugin ist. Es ist aber auch ziemlich banal, da es nur eine http-URL aufruft. Daher kann ansich wenig schief laufen.
Ich vermute eher, dass es mit neueren Kathrein Firmwares nicht klarkommt, die bspw. ein Passwort wollen.
-
Hallo, hab das Plugin vor Jahren für das "alte" smarthome geschrieben und hat bei mir damals ohne Probleme funktioniert (UFS922). Da ich aber keinen Kathrein Receiver mehr habe, habe ich es nie zu smarthomeNG portiert (das sollte aber kein Problem sein). Wie psilo schon schreibt ist es aber ein sehr einfaches Plugin und sollte eigentlich keine Probleme machen.
Du kannst ja mal testen ob dein Receiver überhaupt auf die Befehle hört in dem du die HTTP Requests manuell über den Browser triggerst:
http://192.168.0.149:9000/HandleKey/mute
Die IP und den Port musst du natürlich entsprechend ersetzten.
Hier übrigens die Doku des Protokolls:
https://www.kathrein.de/fileadmin/me...German-V09.pdf
Hoffe ich konnte helfen!
Kommentar
-
Hallo, danke für Antworten und die Hilfe.
Genau den gleichen Receiver habe ich noch, Kathtein UFS 922. Sollte aber mit allen Kathrein receivern funktionieren, da die http Befehle gleich geblieben sind.
Den http request versteht der Reeicer und führt auch entsprechende Befehle aus. Nur wie kann man das plugin zu smarthomeNG portieren, was ist da zu tun?
Kommentar
-
Das plugin funktioniert so nicht und wenn aktiviert, starten auch alle anderen plugins nicht. Hier ist der Auszug aus dem log.
Die Lines 331 und 333 würde ich mir gerne anschauen, aber die gibt es doch gar nicht.
Den Eintrag fürs plugin.yaml habe ich natrülich auf die neue Version angepasst und sieht so aus:
kathrein
class_name: Kathrein
class_path: plugins.kathrein
host: 192.168.178.37
port: 9000
kathreinid: 1
Anbei der log:
2018-04-29 13:18:17 INFO Main [29/Apr/2018:13:18:17] ENGINE Bus STARTING
2018-04-29 13:18:17 INFO Main [29/Apr/2018:13:18:17] ENGINE Serving on http://192.168.178.29:8383
2018-04-29 13:18:17 INFO Main [29/Apr/2018:13:18:17] ENGINE Serving on http://192.168.178.29:8384
2018-04-29 13:18:17 INFO Main [29/Apr/2018:13:18:17] ENGINE Bus STARTED
2018-04-29 13:18:17 INFO Main mount '/plugins' - webif_dir = '/usr/local/smarthome/modules/http/webif'
2018-04-29 13:18:17 INFO Main Module http: config dict: '{'/': {'tools.auth_basic.realm': 'shng_http_webif', 'tools.auth_basic.checkpassword': <bound method Http.validate_password of <modules.http.Http object at 0x75f2fa70>>, 'tools.auth_basic.on': False, 'tools.staticdir.root': '/usr/local/smarthome/modules/http/webif'}, '/static': {'tools.staticdir.on': True, 'tools.staticdir.dir': 'static'}}'
2018-04-29 13:18:17 INFO Main - user 'admin', password '', hashed_password ''
2018-04-29 13:18:17 INFO Main Module http: Registering webinterface 'plugins' of plugin 'plugins' from pluginclass '' instance ''
2018-04-29 13:18:17 INFO Main - conf dict: '{'/': {'tools.auth_basic.realm': 'shng_http_webif', 'tools.auth_basic.checkpassword': <bound method Http.validate_password of <modules.http.Http object at 0x75f2fa70>>, 'tools.auth_basic.on': False, 'tools.staticdir.root': '/usr/local/smarthome/modules/http/webif'}, '/static': {'tools.staticdir.on': True, 'tools.staticdir.dir': 'static'}}'
2018-04-29 13:18:17 INFO Main Modules: Loaded module 'http' (class 'Http') v1.4.5: Modul zur Implementierung von Backend-Webinterfaces für Plugins
2018-04-29 13:18:17 WARNING Main Loaded Modules: ['http']
2018-04-29 13:18:17 INFO Main Start Modules
2018-04-29 13:18:17 INFO Main Init Plugins
2018-04-29 13:18:17 INFO Main Loading '/usr/local/smarthome/etc/plugin.yaml' to 'OrderedDict'
2018-04-29 13:18:18 ERROR Main YAML-file load error in /usr/local/smarthome/etc/plugin.yaml:
while scanning a simple key
in "<unicode string>", line 331, column 1:
kathrein
^ (line: 331)
could not find expected ':'
in "<unicode string>", line 333, column 15:
class_name: Kathrein
^ (line: 333)
2018-04-29 13:18:18 CRITICAL Main No file '/usr/local/smarthome/etc/plugin.*' found with plugin configuration
2018-04-29 13:18:18 INFO Main Start initialization of items
2018-04-29 13:18:18 INFO Main Loading '/usr/local/smarthome/lib/env/core.yaml' to 'OrderedDict'
2018-04-29 13:18:18 INFO Main Loading '/usr/local/smarthome/lib/env/location.yaml' to 'OrderedDict'
2018-04-29 13:18:18 INFO Main config.parse_itemsdir: skipping logic definition file = /usr/local/smarthome/lib/env/logic.yaml
2018-04-29 13:18:18 INFO Main Loading '/usr/local/smarthome/lib/env/system.yaml' to 'OrderedDict'
2018-04-29 13:18:18 INFO Main Loading '/usr/local/smarthome/items/schmelig.Multimedia.yaml' to 'OrderedDict'
2018-04-29 13:18:20 INFO Main Items initialization finished, 259 items loaded
2018-04-29 13:18:20 INFO Main Start Logics
2018-04-29 13:18:20 INFO Main Loading '/usr/local/smarthome/lib/env/logic.yaml' to 'OrderedDict'
2018-04-29 13:18:20 INFO Main Loading '/usr/local/smarthome/etc/logic.yaml' to 'OrderedDict'
2018-04-29 13:18:20 INFO Main Start plugins
2018-04-29 13:18:20 INFO Main Start of plugins finished
4-29 13:18:17 INFO Main - conf dict: '{'/': {'tools.auth_basic.realm': 'shng_http_webif', 'tools.auth_basic.checkpassword': <bound method Http.validate_password of <modules.http.Http object at 0x75f2fa70>>, 'tools.auth_basic.on': False, 'tools.staticdir.root': '/usr/local/smarthome/modules/http/webif'}, '/static': {'tools.staticdir.on': True, 'tools.staticdir.dir': 'static'}}'
2018-04-29 13:18:17 INFO Main Modules: Loaded module 'http' (class 'Http') v1.4.5: Modul zur Implementierung von Backend-Webinterfaces für Plugins
2018-04-29 13:18:17 WARNING Main Loaded Modules: ['http']
2018-04-29 13:18:17 INFO Main Start Modules
2018-04-29 13:18:17 INFO Main Init Plugins
2018-04-29 13:18:17 INFO Main Loading '/usr/local/smarthome/etc/plugin.yaml' to 'OrderedDict'
2018-04-29 13:18:18 ERROR Main YAML-file load error in /usr/local/smarthome/etc/plugin.yaml:
while scanning a simple key
in "<unicode string>", line 331, column 1:
kathrein
^ (line: 331)
could not find expected ':'
in "<unicode string>", line 333, column 15:
class_name: Kathrein
^ (line: 333)
2018-04-29 13:18:18 CRITICAL Main No file '/usr/local/smarthome/etc/plugin.*' found with plugin configuration
2018-04-29 13:18:18 INFO Main Start initialization of items
2018-04-29 13:18:18 INFO Main Loading '/usr/local/smarthome/lib/env/core.yaml' to 'OrderedDict'
2018-04-29 13:18:18 INFO Main Loading '/usr/local/smarthome/lib/env/location.yaml' to 'OrderedDict'
2018-04-29 13:18:18 INFO Main config.parse_itemsdir: skipping logic definition file = /usr/local/smarthome/lib/env/logic.yaml
2018-04-29 13:18:18 INFO Main Loading '/usr/local/smarthome/lib/env/system.yaml' to 'OrderedDict'
2018-04-29 13:18:18 INFO Main Loading '/usr/local/smarthome/items/schmelig.Multimedia.yaml' to 'OrderedDict'
2018-04-29 13:18:20 INFO Main Items initialization finished, 259 items loaded
2018-04-29 13:18:20 INFO Main Start Logics
2018-04-29 13:18:20 INFO Main Loading '/usr/local/smarthome/lib/env/logic.yaml' to 'OrderedDict'
2018-04-29 13:18:20 INFO Main Loading '/usr/local/smarthome/etc/logic.yaml' to 'OrderedDict'
2018-04-29 13:18:20 INFO Main Start plugins
2018-04-29 13:18:20 INFO Main Start of plugins finished
Kommentar
-
Das ist aber kein Problem des Plugins, sondern Deiner Konfigurationsdatei. Das Log sagt, dass Du eine fehlerhafte yaml Datei hast. Die Zeilennummern sind irreführend. Ich habe inzwischen herausgefunden, dass irgendwo beim Einlesen jede Zeile doppelt gezählt wird. Probiere es mal mit (331 + 1) / 2 --> 166 als Zeilennummer.
Abgesehen steht dort auch recht genau, was in Deiner Konfigurationsdatei nicht stimmt:
In der Zeile wo "kathrein" steht, konnte der erwartete Doppelpunkt nicht gefunden werden.
Nachtrag: Wenn in einer yaml Datei ein Fehler auftritt, wird die gesamte Datei nicht ausgewertet. Bei der etc/plugin.yaml bedeutet das: Es wird kein Plugin geladen.Zuletzt geändert von Msinn; 29.04.2018, 12:41.Viele Grüße
Martin
There is no cloud. It's only someone else's computer.
Kommentar
-
ach stimmt, der Doppelpunkt hinter dem Kathrein hat gefehlt, jetzt funktioniert es.
Vielen Dank für die Hilfe und die Erklärung.
P.S. Jetzt steht mir nur noch jede Menge Konfigurationsaufwand bevor....Kann ich dann aber auch posten, wenn es jemand interessiert und kann dann auch in dem readme hinterlegt werden
Kommentar
Kommentar