Ankündigung

Einklappen
Keine Ankündigung bisher.

Neues MQTT Plugin

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

  • Msinn
    antwortet
    Zitat von ThommyKNX Beitrag anzeigen
    Die Smarthomeng-loglevels habe ich schon auf DEBUG gestellt, aber trotzdem kommt zu diesem Fehler nicht mehr durch.
    Da kannst Du das Logging aufdrehen wie Du willst, das Package paho-mqtt (der MQTT Client) liefert nur genau diese Info. Deshalb kann auch in SmartHomeNG nicht mehr geloggt werden.

    Einen Kommentar schreiben:


  • Msinn
    antwortet
    Zitat von ThommyKNX Beitrag anzeigen
    Weiß jemand, wie man das debugging von dem mqtt-modul aufdreht?
    Schon mal in die Doku geschaut?

    Probiere es in der Admin GUI mal unter Logging/Logger Konfiguration und gehe auf das Tab "Advanced Logger". Dort findest Du den Logger modules.mqtt und kannst den Level einstellen.

    Bei der Gelegenheit kannst Du im Tab "Custom Logger" auch mal den Level des Loggers cherrypy.error auf WARNING setzen. Dann sind die sinnfreien Einträge des CherryPy Packages weg.
    Zuletzt geändert von Msinn; 01.06.2023, 18:28.

    Einen Kommentar schreiben:


  • Msinn
    antwortet
    Zitat von Sipple Beitrag anzeigen
    Aber: Unter Dienste fehlt die Versionsnummer vom MQTT Broker, der nicht lokal installiert ist, sondern auf dem Raspi 3 für die openWB.
    Das ist normal und richtig. Angezeigt wird nur die Version eines lokal auf dem Rechner laufenden Brokers, nicht die Version eines Brokers zu dem man sich remote verbindet.

    Einen Kommentar schreiben:


  • Msinn
    antwortet
    Zitat von whe Beitrag anzeigen
    stört nicht weiter ist aber wohl ein "error".
    Ist nur eine Warnung, dass das MQTT Modul sich nicht ordnungsgemäß beendet hat. Ist aus Sicht von SmartHomtNG kein Error, da das Modul ja anschließend beendet wird.

    Einen Kommentar schreiben:


  • bmx
    antwortet
    Ich denke wenn es tiefer ins Detail geht, wäre Msinn der Richtige Mann für eine tiefere Analyse, ich nutze aktuell kein mqtt.

    Einen Kommentar schreiben:


  • ThommyKNX
    antwortet
    Ah ja, danke! Hab ich gemacht. Leider kommen zu dem Fehler auch nicht mehr Details.
    Ich befürchte dass dies ein SmarthomeNG spezifischer Fehler ist, ich hab im Internet nichts dazu gefunden.

    Code:
    2023-06-01  17:02:31 NOTICE   lib.smarthome     --------------------   Init SmartHomeNG v1.9.5-master (646146a0f)   --------------------
    2023-06-01  17:02:31 NOTICE   lib.smarthome     Running in Python interpreter 'v3.9.2 final', from directory /usr/local/smarthome
    2023-06-01  17:02:31 NOTICE   lib.smarthome      - operating system 'Debian GNU/Linux 11 (bullseye)' (pid=72023)
    2023-06-01  17:02:32 NOTICE   lib.smarthome      - on 'Intel(R) Core(TM) i3-10110U CPU @ 2.10GHz'
    2023-06-01  17:02:33 NOTICE   lib.smarthome      - Nutze Feiertage für Land 'AT', Provinz 'B', 1 benutzerdefinierte(r) Feiertag(e) definiert
    2023-06-01  17:02:33 INFO     cherrypy.error    [01/Jun/2023:17:02:33] ENGINE Bus STARTING
    2023-06-01  17:02:33 INFO     cherrypy.error    [01/Jun/2023:17:02:33] ENGINE Serving on http://192.168.7.239:8383
    2023-06-01  17:02:33 INFO     cherrypy.error    [01/Jun/2023:17:02:33] ENGINE Serving on http://192.168.7.239:8384
    2023-06-01  17:02:33 INFO     cherrypy.error    [01/Jun/2023:17:02:33] ENGINE Bus STARTED
    2023-06-01  17:02:33 INFO     cherrypy.access.140514237398704 192.168.7.63 - - [01/Jun/2023:17:02:33] "GET /plugin/mqtt/get_data.html HTTP/1.1" 404 4334 "http://visu.tkacsik.lan:8383/plugin/mqtt/" "Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:109.0) Gecko/20100101 Firefox/113.0"
    2023-06-01  17:02:33 INFO     cherrypy.access.140514237398704 192.168.7.63 - - [01/Jun/2023:17:02:33] "GET /plugin/mqtt/get_data.html HTTP/1.1" 404 4334 "http://visu.tkacsik.lan:8383/plugin/mqtt/" "Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:109.0) Gecko/20100101 Firefox/113.0"
    2023-06-01  17:02:35 INFO     plugins.mqtt      Publishing topic 'evcc/site/bufferSoc/set' (when needed) for item 'evcc.bufferSoC'
    2023-06-01  17:02:35 INFO     plugins.mqtt      Publishing topic 'evcc/site/bufferSoc/set' (when needed) for item 'evcc.bufferSoC'
    2023-06-01  17:02:35 INFO     plugins.mqtt      Publishing topic 'evcc/loadpoints/1/mode/set' (when needed) for item 'evcc.prioritySoC.mode'
    2023-06-01  17:02:35 INFO     plugins.mqtt      Publishing topic 'evcc/loadpoints/1/mode/set' (when needed) for item 'evcc.prioritySoC.mode'
    2023-06-01  17:02:35 INFO     plugins.mqtt      Publishing topic 'evcc/loadpoints/1/minSoc/set' (when needed) for item 'evcc.prioritySoC.minSoC'
    2023-06-01  17:02:35 INFO     plugins.mqtt      Publishing topic 'evcc/loadpoints/1/minSoc/set' (when needed) for item 'evcc.prioritySoC.minSoC'
    2023-06-01  17:02:35 INFO     plugins.mqtt      Publishing topic 'evcc/loadpoints/1/targetSoc/set' (when needed) for item 'evcc.prioritySoC.targetSoC'
    2023-06-01  17:02:35 INFO     plugins.mqtt      Publishing topic 'evcc/loadpoints/1/targetSoc/set' (when needed) for item 'evcc.prioritySoC.targetSoC'
    2023-06-01  17:02:35 INFO     plugins.mqtt      Publishing topic 'evcc/loadpoints/1/targetTime/set' (when needed) for item 'evcc.prioritySoC.targetTime'
    2023-06-01  17:02:35 INFO     plugins.mqtt      Publishing topic 'evcc/loadpoints/1/targetTime/set' (when needed) for item 'evcc.prioritySoC.targetTime'
    2023-06-01  17:02:35 INFO     plugins.mqtt      Publishing topic 'evcc/loadpoints/1/minCurrent/set' (when needed) for item 'evcc.prioritySoC.minCurrent'
    2023-06-01  17:02:35 INFO     plugins.mqtt      Publishing topic 'evcc/loadpoints/1/minCurrent/set' (when needed) for item 'evcc.prioritySoC.minCurrent'
    2023-06-01  17:02:35 INFO     plugins.mqtt      Publishing topic 'evcc/loadpoints/1/maxCurrent/set' (when needed) for item 'evcc.prioritySoC.maxCurrent'
    2023-06-01  17:02:35 INFO     plugins.mqtt      Publishing topic 'evcc/loadpoints/1/maxCurrent/set' (when needed) for item 'evcc.prioritySoC.maxCurrent'
    2023-06-01  17:02:35 INFO     plugins.mqtt      Publishing topic 'evcc/site/prioritySoc/set' (when needed) for item 'evcc.prioritySoC'
    2023-06-01  17:02:35 INFO     plugins.mqtt      Publishing topic 'evcc/site/prioritySoc/set' (when needed) for item 'evcc.prioritySoC'
    2023-06-01  17:02:35 INFO     cherrypy.access.140512045340896 192.168.7.63 - - [01/Jun/2023:17:02:35] "GET /plugin/mqtt/get_data.html HTTP/1.1" 200 406 "http://visu.tkacsik.lan:8383/plugin/mqtt/" "Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:109.0) Gecko/20100101 Firefox/113.0"
    2023-06-01  17:02:36 INFO     plugins.mqtt      _start_subscription: Subscribing to topic evcc/updated, payload_type 'str' for item evcc.updated (callback=<bound method MqttPlugin._on_mqtt_message of <plugins.mqtt.Mqtt2 object at 0x7fcb82927e80>>)
    2023-06-01  17:02:36 INFO     plugins.mqtt      _start_subscription: Subscribing to topic evcc/updated, payload_type 'str' for item evcc.updated (callback=<bound method MqttPlugin._on_mqtt_message of <plugins.mqtt.Mqtt2 object at 0x7fcb82927e80>>)
    2023-06-01  17:02:36 NOTICE   lib.smarthome     --------------------   SmartHomeNG initialization finished   --------------------
    2023-06-01  17:02:36 INFO     plugins.mqtt      _start_subscription: Subscribing to topic evcc/site/bufferSoc, payload_type 'num' for item evcc.bufferSoC (callback=<bound method MqttPlugin._on_mqtt_message of <plugins.mqtt.Mqtt2 object at 0x7fcb82927e80>>)
    2023-06-01  17:02:36 INFO     plugins.mqtt      _on_mqtt_message: Received topic 'evcc/updated', payload '1685631749' (type str), QoS '1', retain '1' for item 'evcc.updated'
    2023-06-01  17:02:36 INFO     plugins.mqtt      _on_mqtt_message: Received topic 'evcc/updated', payload '1685631749' (type str), QoS '1', retain '1' for item 'evcc.updated'
    2023-06-01  17:02:36 INFO     plugins.mqtt      _start_subscription: Subscribing to topic evcc/site/bufferSoc, payload_type 'num' for item evcc.bufferSoC (callback=<bound method MqttPlugin._on_mqtt_message of <plugins.mqtt.Mqtt2 object at 0x7fcb82927e80>>)
    2023-06-01  17:02:36 INFO     plugins.mqtt      _start_subscription: Subscribing to topic evcc/loadpoints/1/mode, payload_type 'str' for item evcc.prioritySoC.mode (callback=<bound method MqttPlugin._on_mqtt_message of <plugins.mqtt.Mqtt2 object at 0x7fcb82927e80>>)
    2023-06-01  17:02:36 INFO     plugins.mqtt      _start_subscription: Subscribing to topic evcc/loadpoints/1/mode, payload_type 'str' for item evcc.prioritySoC.mode (callback=<bound method MqttPlugin._on_mqtt_message of <plugins.mqtt.Mqtt2 object at 0x7fcb82927e80>>)
    2023-06-01  17:02:36 INFO     plugins.mqtt      _start_subscription: Subscribing to topic evcc/loadpoints/1/minSoc, payload_type 'num' for item evcc.prioritySoC.minSoC (callback=<bound method MqttPlugin._on_mqtt_message of <plugins.mqtt.Mqtt2 object at 0x7fcb82927e80>>)
    2023-06-01  17:02:36 INFO     plugins.mqtt      _start_subscription: Subscribing to topic evcc/loadpoints/1/minSoc, payload_type 'num' for item evcc.prioritySoC.minSoC (callback=<bound method MqttPlugin._on_mqtt_message of <plugins.mqtt.Mqtt2 object at 0x7fcb82927e80>>)
    2023-06-01  17:02:36 INFO     plugins.mqtt      _start_subscription: Subscribing to topic evcc/loadpoints/1/targetSoc, payload_type 'num' for item evcc.prioritySoC.targetSoC (callback=<bound method MqttPlugin._on_mqtt_message of <plugins.mqtt.Mqtt2 object at 0x7fcb82927e80>>)
    2023-06-01  17:02:36 INFO     plugins.mqtt      _start_subscription: Subscribing to topic evcc/loadpoints/1/targetSoc, payload_type 'num' for item evcc.prioritySoC.targetSoC (callback=<bound method MqttPlugin._on_mqtt_message of <plugins.mqtt.Mqtt2 object at 0x7fcb82927e80>>)
    2023-06-01  17:02:36 INFO     plugins.mqtt      _start_subscription: Subscribing to topic evcc/loadpoints/1/targetTime, payload_type 'num' for item evcc.prioritySoC.targetTime (callback=<bound method MqttPlugin._on_mqtt_message of <plugins.mqtt.Mqtt2 object at 0x7fcb82927e80>>)
    2023-06-01  17:02:36 INFO     plugins.mqtt      _start_subscription: Subscribing to topic evcc/loadpoints/1/targetTime, payload_type 'num' for item evcc.prioritySoC.targetTime (callback=<bound method MqttPlugin._on_mqtt_message of <plugins.mqtt.Mqtt2 object at 0x7fcb82927e80>>)
    2023-06-01  17:02:36 INFO     plugins.mqtt      _start_subscription: Subscribing to topic evcc/loadpoints/1/planProjectedStart, payload_type 'num' for item evcc.prioritySoC.planProjectedStart (callback=<bound method MqttPlugin._on_mqtt_message of <plugins.mqtt.Mqtt2 object at 0x7fcb82927e80>>)
    2023-06-01  17:02:36 INFO     plugins.mqtt      _start_subscription: Subscribing to topic evcc/loadpoints/1/planProjectedStart, payload_type 'num' for item evcc.prioritySoC.planProjectedStart (callback=<bound method MqttPlugin._on_mqtt_message of <plugins.mqtt.Mqtt2 object at 0x7fcb82927e80>>)
    2023-06-01  17:02:36 INFO     plugins.mqtt      _start_subscription: Subscribing to topic evcc/loadpoints/1/planActive, payload_type 'bool' for item evcc.prioritySoC.planActive (callback=<bound method MqttPlugin._on_mqtt_message of <plugins.mqtt.Mqtt2 object at 0x7fcb82927e80>>)
    2023-06-01  17:02:36 INFO     plugins.mqtt      _start_subscription: Subscribing to topic evcc/loadpoints/1/planActive, payload_type 'bool' for item evcc.prioritySoC.planActive (callback=<bound method MqttPlugin._on_mqtt_message of <plugins.mqtt.Mqtt2 object at 0x7fcb82927e80>>)
    2023-06-01  17:02:36 INFO     plugins.mqtt      _start_subscription: Subscribing to topic evcc/loadpoints/1/minCurrent, payload_type 'num' for item evcc.prioritySoC.minCurrent (callback=<bound method MqttPlugin._on_mqtt_message of <plugins.mqtt.Mqtt2 object at 0x7fcb82927e80>>)
    2023-06-01  17:02:36 INFO     plugins.mqtt      _start_subscription: Subscribing to topic evcc/loadpoints/1/minCurrent, payload_type 'num' for item evcc.prioritySoC.minCurrent (callback=<bound method MqttPlugin._on_mqtt_message of <plugins.mqtt.Mqtt2 object at 0x7fcb82927e80>>)
    2023-06-01  17:02:36 INFO     plugins.mqtt      _start_subscription: Subscribing to topic evcc/loadpoints/1/maxCurrent, payload_type 'num' for item evcc.prioritySoC.maxCurrent (callback=<bound method MqttPlugin._on_mqtt_message of <plugins.mqtt.Mqtt2 object at 0x7fcb82927e80>>)
    2023-06-01  17:02:36 INFO     plugins.mqtt      _start_subscription: Subscribing to topic evcc/loadpoints/1/maxCurrent, payload_type 'num' for item evcc.prioritySoC.maxCurrent (callback=<bound method MqttPlugin._on_mqtt_message of <plugins.mqtt.Mqtt2 object at 0x7fcb82927e80>>)
    2023-06-01  17:02:36 INFO     plugins.mqtt      _start_subscription: Subscribing to topic evcc/loadpoints/1/connected, payload_type 'bool' for item evcc.prioritySoC.connected (callback=<bound method MqttPlugin._on_mqtt_message of <plugins.mqtt.Mqtt2 object at 0x7fcb82927e80>>)
    2023-06-01  17:02:36 INFO     plugins.mqtt      _start_subscription: Subscribing to topic evcc/loadpoints/1/connected, payload_type 'bool' for item evcc.prioritySoC.connected (callback=<bound method MqttPlugin._on_mqtt_message of <plugins.mqtt.Mqtt2 object at 0x7fcb82927e80>>)
    2023-06-01  17:02:36 INFO     plugins.mqtt      _start_subscription: Subscribing to topic evcc/loadpoints/1/charging, payload_type 'bool' for item evcc.prioritySoC.charging (callback=<bound method MqttPlugin._on_mqtt_message of <plugins.mqtt.Mqtt2 object at 0x7fcb82927e80>>)
    2023-06-01  17:02:36 INFO     plugins.mqtt      _start_subscription: Subscribing to topic evcc/loadpoints/1/charging, payload_type 'bool' for item evcc.prioritySoC.charging (callback=<bound method MqttPlugin._on_mqtt_message of <plugins.mqtt.Mqtt2 object at 0x7fcb82927e80>>)
    2023-06-01  17:02:36 INFO     plugins.mqtt      _start_subscription: Subscribing to topic evcc/loadpoints/1/phasesActive, payload_type 'num' for item evcc.prioritySoC.phasesActive (callback=<bound method MqttPlugin._on_mqtt_message of <plugins.mqtt.Mqtt2 object at 0x7fcb82927e80>>)
    2023-06-01  17:02:36 INFO     plugins.mqtt      _start_subscription: Subscribing to topic evcc/loadpoints/1/phasesActive, payload_type 'num' for item evcc.prioritySoC.phasesActive (callback=<bound method MqttPlugin._on_mqtt_message of <plugins.mqtt.Mqtt2 object at 0x7fcb82927e80>>)
    2023-06-01  17:02:36 INFO     plugins.mqtt      _start_subscription: Subscribing to topic evcc/loadpoints/1/chargePower, payload_type 'num' for item evcc.prioritySoC.chargePower (callback=<bound method MqttPlugin._on_mqtt_message of <plugins.mqtt.Mqtt2 object at 0x7fcb82927e80>>)
    2023-06-01  17:02:36 INFO     plugins.mqtt      _start_subscription: Subscribing to topic evcc/loadpoints/1/chargePower, payload_type 'num' for item evcc.prioritySoC.chargePower (callback=<bound method MqttPlugin._on_mqtt_message of <plugins.mqtt.Mqtt2 object at 0x7fcb82927e80>>)
    2023-06-01  17:02:36 INFO     plugins.mqtt      _start_subscription: Subscribing to topic evcc/site/prioritySoc, payload_type 'num' for item evcc.prioritySoC (callback=<bound method MqttPlugin._on_mqtt_message of <plugins.mqtt.Mqtt2 object at 0x7fcb82927e80>>)
    2023-06-01  17:02:36 INFO     plugins.mqtt      _start_subscription: Subscribing to topic evcc/site/prioritySoc, payload_type 'num' for item evcc.prioritySoC (callback=<bound method MqttPlugin._on_mqtt_message of <plugins.mqtt.Mqtt2 object at 0x7fcb82927e80>>)
    2023-06-01  17:02:36 INFO     plugins.mqtt      _start_subscription: Subscribing to topic Tkacsik/status/MightyOhm, payload_type 'bool' for item mqtt.status.mightyohm (callback=<bound method MqttPlugin._on_mqtt_message of <plugins.mqtt.Mqtt2 object at 0x7fcb82927e80>>)
    2023-06-01  17:02:36 INFO     plugins.mqtt      _start_subscription: Subscribing to topic Tkacsik/status/MightyOhm, payload_type 'bool' for item mqtt.status.mightyohm (callback=<bound method MqttPlugin._on_mqtt_message of <plugins.mqtt.Mqtt2 object at 0x7fcb82927e80>>)
    2023-06-01  17:02:36 INFO     plugins.mqtt      _start_subscription: Subscribing to topic evcc/status, payload_type 'str' for item mqtt.status.evcc.raw (callback=<bound method MqttPlugin._on_mqtt_message of <plugins.mqtt.Mqtt2 object at 0x7fcb82927e80>>)
    2023-06-01  17:02:36 INFO     plugins.mqtt      _start_subscription: Subscribing to topic evcc/status, payload_type 'str' for item mqtt.status.evcc.raw (callback=<bound method MqttPlugin._on_mqtt_message of <plugins.mqtt.Mqtt2 object at 0x7fcb82927e80>>)
    2023-06-01  17:02:36 INFO     plugins.mqtt      _start_subscription: Subscribing to topic Tkacsik/Sensoren/MightyOhm/CPS, payload_type 'num' for item sensoren.mightyohm.cps (callback=<bound method MqttPlugin._on_mqtt_message of <plugins.mqtt.Mqtt2 object at 0x7fcb82927e80>>)
    2023-06-01  17:02:36 INFO     plugins.mqtt      _start_subscription: Subscribing to topic Tkacsik/Sensoren/MightyOhm/CPS, payload_type 'num' for item sensoren.mightyohm.cps (callback=<bound method MqttPlugin._on_mqtt_message of <plugins.mqtt.Mqtt2 object at 0x7fcb82927e80>>)
    2023-06-01  17:02:36 INFO     plugins.mqtt      _start_subscription: Subscribing to topic Tkacsik/Sensoren/MightyOhm/CPM, payload_type 'num' for item sensoren.mightyohm.cpm (callback=<bound method MqttPlugin._on_mqtt_message of <plugins.mqtt.Mqtt2 object at 0x7fcb82927e80>>)
    2023-06-01  17:02:36 INFO     plugins.mqtt      _start_subscription: Subscribing to topic Tkacsik/Sensoren/MightyOhm/CPM, payload_type 'num' for item sensoren.mightyohm.cpm (callback=<bound method MqttPlugin._on_mqtt_message of <plugins.mqtt.Mqtt2 object at 0x7fcb82927e80>>)
    2023-06-01  17:02:36 INFO     plugins.mqtt      _start_subscription: Subscribing to topic Tkacsik/Sensoren/MightyOhm/dose, payload_type 'num' for item sensoren.mightyohm.dose (callback=<bound method MqttPlugin._on_mqtt_message of <plugins.mqtt.Mqtt2 object at 0x7fcb82927e80>>)
    2023-06-01  17:02:36 INFO     plugins.mqtt      _start_subscription: Subscribing to topic Tkacsik/Sensoren/MightyOhm/dose, payload_type 'num' for item sensoren.mightyohm.dose (callback=<bound method MqttPlugin._on_mqtt_message of <plugins.mqtt.Mqtt2 object at 0x7fcb82927e80>>)
    2023-06-01  17:02:36 ERROR    modules.mqtt      _on_log: Caught exception in on_message: 'ip'
    2023-06-01  17:02:39 INFO     cherrypy.access.140512045340896 192.168.7.63 - - [01/Jun/2023:17:02:39] "GET /plugin/mqtt/get_data.html HTTP/1.1" 200 1618 "http://visu.tkacsik.lan:8383/plugin/mqtt/" "Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:109.0) Gecko/20100101 Firefox/113.0"
    2023-06-01  17:02:46 INFO     cherrypy.access.140512045340896 192.168.7.63 - - [01/Jun/2023:17:02:46] "GET /plugin/mqtt/get_data.html HTTP/1.1" 200 1618 "http://visu.tkacsik.lan:8383/plugin/mqtt/" "Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:109.0) Gecko/20100101 Firefox/113.0"
    2023-06-01  17:02:48 INFO     cherrypy.access.140512045340896 192.168.7.63 - - [01/Jun/2023:17:02:48] "GET /plugin/mqtt/get_data.html HTTP/1.1" 200 1618 "http://visu.tkacsik.lan:8383/plugin/mqtt/" "Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:109.0) Gecko/20100101 Firefox/113.0"
    Beim Neustart hängt SHNG eine Zeit lang beim mqtt Modul:

    Code:
    2023-06-01  17:13:50 NOTICE   lib.smarthome     --------------------   SmartHomeNG restarting, initiated by admin interface   --------------------
    2023-06-01  17:13:50 INFO     cherrypy.error    [01/Jun/2023:17:13:50] ENGINE SystemExit raised: shutting down HTTP server
    2023-06-01  17:13:50 INFO     cherrypy.error    [01/Jun/2023:17:13:50] ENGINE Bus STOPPING
    2023-06-01  17:13:50 INFO     cherrypy.error    [01/Jun/2023:17:13:50] ENGINE HTTP Server cherrypy._cpwsgi_server.CPWSGIServer(('192.168.7.239', 8383)) shut down
    2023-06-01  17:13:50 INFO     cherrypy.error    [01/Jun/2023:17:13:50] ENGINE HTTP Server cherrypy._cpwsgi_server.CPWSGIServer(('192.168.7.239', 8384)) shut down
    2023-06-01  17:13:50 INFO     cherrypy.error    [01/Jun/2023:17:13:50] ENGINE Bus STOPPED
    2023-06-01  17:13:50 INFO     cherrypy.error    [01/Jun/2023:17:13:50] ENGINE Bus EXITING
    2023-06-01  17:13:50 INFO     cherrypy.error    [01/Jun/2023:17:13:50] ENGINE Bus EXITED
    2023-06-01  17:13:57 INFO     plugins.mqtt      stop(): Unsubscribing from topic evcc/updated for item evcc.updated
    2023-06-01  17:13:57 INFO     plugins.mqtt      stop(): Unsubscribing from topic evcc/updated for item evcc.updated
    2023-06-01  17:13:57 INFO     plugins.mqtt      stop(): Unsubscribing from topic evcc/site/bufferSoc for item evcc.bufferSoC
    2023-06-01  17:13:57 INFO     plugins.mqtt      stop(): Unsubscribing from topic evcc/site/bufferSoc for item evcc.bufferSoC
    2023-06-01  17:13:57 INFO     plugins.mqtt      stop(): Unsubscribing from topic evcc/loadpoints/1/mode for item evcc.prioritySoC.mode
    2023-06-01  17:13:57 INFO     plugins.mqtt      stop(): Unsubscribing from topic evcc/loadpoints/1/mode for item evcc.prioritySoC.mode
    2023-06-01  17:13:57 INFO     plugins.mqtt      stop(): Unsubscribing from topic evcc/loadpoints/1/minSoc for item evcc.prioritySoC.minSoC
    2023-06-01  17:13:57 INFO     plugins.mqtt      stop(): Unsubscribing from topic evcc/loadpoints/1/minSoc for item evcc.prioritySoC.minSoC
    2023-06-01  17:13:57 INFO     plugins.mqtt      stop(): Unsubscribing from topic evcc/loadpoints/1/targetSoc for item evcc.prioritySoC.targetSoC
    2023-06-01  17:13:57 INFO     plugins.mqtt      stop(): Unsubscribing from topic evcc/loadpoints/1/targetSoc for item evcc.prioritySoC.targetSoC
    2023-06-01  17:13:57 INFO     plugins.mqtt      stop(): Unsubscribing from topic evcc/loadpoints/1/targetTime for item evcc.prioritySoC.targetTime
    2023-06-01  17:13:57 INFO     plugins.mqtt      stop(): Unsubscribing from topic evcc/loadpoints/1/targetTime for item evcc.prioritySoC.targetTime
    2023-06-01  17:13:57 INFO     plugins.mqtt      stop(): Unsubscribing from topic evcc/loadpoints/1/planProjectedStart for item evcc.prioritySoC.planProjectedStart
    2023-06-01  17:13:57 INFO     plugins.mqtt      stop(): Unsubscribing from topic evcc/loadpoints/1/planProjectedStart for item evcc.prioritySoC.planProjectedStart
    2023-06-01  17:13:57 INFO     plugins.mqtt      stop(): Unsubscribing from topic evcc/loadpoints/1/planActive for item evcc.prioritySoC.planActive
    2023-06-01  17:13:57 INFO     plugins.mqtt      stop(): Unsubscribing from topic evcc/loadpoints/1/planActive for item evcc.prioritySoC.planActive
    2023-06-01  17:13:57 INFO     plugins.mqtt      stop(): Unsubscribing from topic evcc/loadpoints/1/minCurrent for item evcc.prioritySoC.minCurrent
    2023-06-01  17:13:57 INFO     plugins.mqtt      stop(): Unsubscribing from topic evcc/loadpoints/1/minCurrent for item evcc.prioritySoC.minCurrent
    2023-06-01  17:13:57 INFO     plugins.mqtt      stop(): Unsubscribing from topic evcc/loadpoints/1/maxCurrent for item evcc.prioritySoC.maxCurrent
    2023-06-01  17:13:57 INFO     plugins.mqtt      stop(): Unsubscribing from topic evcc/loadpoints/1/maxCurrent for item evcc.prioritySoC.maxCurrent
    2023-06-01  17:13:57 INFO     plugins.mqtt      stop(): Unsubscribing from topic evcc/loadpoints/1/connected for item evcc.prioritySoC.connected
    2023-06-01  17:13:57 INFO     plugins.mqtt      stop(): Unsubscribing from topic evcc/loadpoints/1/connected for item evcc.prioritySoC.connected
    2023-06-01  17:13:57 INFO     plugins.mqtt      stop(): Unsubscribing from topic evcc/loadpoints/1/charging for item evcc.prioritySoC.charging
    2023-06-01  17:13:57 INFO     plugins.mqtt      stop(): Unsubscribing from topic evcc/loadpoints/1/charging for item evcc.prioritySoC.charging
    2023-06-01  17:13:57 INFO     plugins.mqtt      stop(): Unsubscribing from topic evcc/loadpoints/1/phasesActive for item evcc.prioritySoC.phasesActive
    2023-06-01  17:13:57 INFO     plugins.mqtt      stop(): Unsubscribing from topic evcc/loadpoints/1/phasesActive for item evcc.prioritySoC.phasesActive
    2023-06-01  17:13:57 INFO     plugins.mqtt      stop(): Unsubscribing from topic evcc/loadpoints/1/chargePower for item evcc.prioritySoC.chargePower
    2023-06-01  17:13:57 INFO     plugins.mqtt      stop(): Unsubscribing from topic evcc/loadpoints/1/chargePower for item evcc.prioritySoC.chargePower
    2023-06-01  17:13:57 INFO     plugins.mqtt      stop(): Unsubscribing from topic evcc/site/prioritySoc for item evcc.prioritySoC
    2023-06-01  17:13:57 INFO     plugins.mqtt      stop(): Unsubscribing from topic evcc/site/prioritySoc for item evcc.prioritySoC
    2023-06-01  17:13:57 INFO     plugins.mqtt      stop(): Unsubscribing from topic Tkacsik/status/MightyOhm for item mqtt.status.mightyohm
    2023-06-01  17:13:57 INFO     plugins.mqtt      stop(): Unsubscribing from topic Tkacsik/status/MightyOhm for item mqtt.status.mightyohm
    2023-06-01  17:13:57 INFO     plugins.mqtt      stop(): Unsubscribing from topic evcc/status for item mqtt.status.evcc.raw
    2023-06-01  17:13:57 INFO     plugins.mqtt      stop(): Unsubscribing from topic evcc/status for item mqtt.status.evcc.raw
    2023-06-01  17:13:57 INFO     plugins.mqtt      stop(): Unsubscribing from topic Tkacsik/Sensoren/MightyOhm/CPS for item sensoren.mightyohm.cps
    2023-06-01  17:13:57 INFO     plugins.mqtt      stop(): Unsubscribing from topic Tkacsik/Sensoren/MightyOhm/CPS for item sensoren.mightyohm.cps
    2023-06-01  17:13:57 INFO     plugins.mqtt      stop(): Unsubscribing from topic Tkacsik/Sensoren/MightyOhm/CPM for item sensoren.mightyohm.cpm
    2023-06-01  17:13:57 INFO     plugins.mqtt      stop(): Unsubscribing from topic Tkacsik/Sensoren/MightyOhm/CPM for item sensoren.mightyohm.cpm
    2023-06-01  17:13:57 INFO     plugins.mqtt      stop(): Unsubscribing from topic Tkacsik/Sensoren/MightyOhm/dose for item sensoren.mightyohm.dose
    2023-06-01  17:13:57 INFO     plugins.mqtt      stop(): Unsubscribing from topic Tkacsik/Sensoren/MightyOhm/dose for item sensoren.mightyohm.dose
    
    
    2023-06-01  17:14:22 WARNING  modules.mqtt      Disconnected from broker with returncode '7'
    2023-06-01  17:14:22 INFO     cherrypy.error    [01/Jun/2023:17:14:22] ENGINE Bus STOPPING
    2023-06-01  17:14:22 INFO     cherrypy.error    [01/Jun/2023:17:14:22] ENGINE HTTP Server cherrypy._cpwsgi_server.CPWSGIServer(('192.168.7.239', 8383)) already shut down
    2023-06-01  17:14:22 INFO     cherrypy.error    [01/Jun/2023:17:14:22] ENGINE HTTP Server cherrypy._cpwsgi_server.CPWSGIServer(('192.168.7.239', 8384)) already shut down
    2023-06-01  17:14:22 INFO     cherrypy.error    [01/Jun/2023:17:14:22] ENGINE Bus STOPPED
    2023-06-01  17:14:22 INFO     cherrypy.error    [01/Jun/2023:17:14:22] ENGINE Bus EXITING
    2023-06-01  17:14:22 INFO     cherrypy.error    [01/Jun/2023:17:14:22] ENGINE Bus EXITED
    2023-06-01  17:14:22 NOTICE   lib.smarthome     --------------------   SmartHomeNG stopped   --------------------
    und im mosquitto-log wird SHNG offenbar irgendwann aufgrund eines Timeouts disconnected:
    Code:
    1685632668: New connection from 192.168.7.239:58175 on port 1883.
    1685632668: New client connected from 192.168.7.239:58175 as smarthome.MQTT-module (p2, c1, k60, u'smarthomeng').
    1685632767: Client smarthome.MQTT-module has exceeded timeout, disconnecting.
    ​
    Zuletzt geändert von ThommyKNX; 01.06.2023, 16:21.

    Einen Kommentar schreiben:


  • bmx
    antwortet
    Sipple
    Bisher war das Admin Interface immer so, das nur lokale Dienste angezeigt werden. Das steht auch in der Doku so drin: "Weiterhin kann der Status einiger von Plugins genutzter Dienste angesehen werden, soweit diese Dienste auf dem selben Rechner laufen wie SmartHomeNG selbst."

    ThommyKNX
    Unter Logging Best Practices findest Du Infos, da ist sogar ein Beispiel zu mqtt drin. Statt INFO dann natürlich DEBUG setzen.

    Einen Kommentar schreiben:


  • ThommyKNX
    antwortet
    Hallo,
    den Fehler, den Sipple beschreibt habe ich nur teilweise, auf der Dienstseite steht alles ganz normal da, jedoch auf der Pluginseite fehlen auch die entsprechenden Felder.

    Weiß jemand, wie man das debugging von dem mqtt-modul aufdreht? Ich habe seit kurzem folgendes Probelm, und bin noch nicht dahinter gestiegen.

    Beim starten kommt folgender Fehler im warnings-log:
    Code:
    2023-06-01  14:18:56 NOTICE   lib.smarthome     --------------------   Init SmartHomeNG v1.9.5-master (646146a0f)   --------------------
    2023-06-01  14:18:56 NOTICE   lib.smarthome     Running in Python interpreter 'v3.9.2 final', from directory /usr/local/smarthome
    2023-06-01  14:18:56 NOTICE   lib.smarthome      - operating system 'Debian GNU/Linux 11 (bullseye)' (pid=50152)
    2023-06-01  14:18:57 NOTICE   lib.smarthome      - on 'Intel(R) Core(TM) i3-10110U CPU @ 2.10GHz'
    2023-06-01  14:18:58 NOTICE   lib.smarthome      - Nutze Feiertage für Land 'AT', Provinz 'B', 1 benutzerdefinierte(r) Feiertag(e) definiert
    2023-06-01  14:18:58 INFO     cherrypy.error    [01/Jun/2023:14:18:58] ENGINE Bus STARTING
    2023-06-01  14:18:58 INFO     cherrypy.error    [01/Jun/2023:14:18:58] ENGINE Serving on http://192.168.7.239:8384
    2023-06-01  14:18:58 INFO     cherrypy.error    [01/Jun/2023:14:18:58] ENGINE Serving on http://192.168.7.239:8383
    2023-06-01  14:18:58 INFO     cherrypy.error    [01/Jun/2023:14:18:58] ENGINE Bus STARTED
    2023-06-01  14:19:01 NOTICE   lib.smarthome     --------------------   SmartHomeNG initialization finished   --------------------
    2023-06-01  14:19:01 INFO     cherrypy.access.140571606926048 192.168.7.63 - - [01/Jun/2023:14:19:01] "GET /api/server/status/ HTTP/1.1" 200 31 "http://visu.tkacsik.lan:8383/admin/services" "Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:109.0) Gecko/20100101 Firefox/113.0"
    2023-06-01  14:19:01 ERROR    modules.mqtt      _on_log: Caught exception in on_message: 'ip'
    ​
    Und es werden keinerlei Daten von dem Modul mehrt verarbeitet, dh. SMarthomeNG sieht keine MQTT Nachrichten mehr, und schickt auch keine mehr raus.
    Hatte das schon mal jemand?
    Die Smarthomeng-loglevels habe ich schon auf DEBUG gestellt, aber trotzdem kommt zu diesem Fehler nicht mehr durch.

    Einen Kommentar schreiben:


  • Sipple
    antwortet
    Guten Morgen

    Ich habe gerade auf meinen Backup-Server (Waveshare Board mit CM4 Modul, also quasi ein RPI 4) die aktuelle Master Version installiert:

    grafik.png
    Dabei habe ich vorher die gesamte Konfiguration von SHNG über die Backup Funktion auf meinem Produktiv Server exportiert und auf dem CM4 importiert.
    Neustart und im Log steht nun nichts auffälliges mehr:

    Code:
    2023-05-26  10:15:20 NOTICE   lib.smarthome       --------------------   Init SmartHomeNG v1.9.5-master (646146a0f)   --------------------
    2023-05-26  10:15:20 NOTICE   lib.smarthome       Running in Python interpreter 'v3.9.2 final', from directory /usr/local/smarthome
    2023-05-26  10:15:20 NOTICE   lib.smarthome        - operating system 'Debian GNU/Linux 11 (bullseye)' (pid=1997276)
    2023-05-26  10:15:20 NOTICE   lib.smarthome        - on 'Raspberry Pi (Rev. c03140)'
    2023-05-26  10:15:20 NOTICE   lib.smarthome        - Loglevel NOTICE is set to value 31 because handler of root logger is set to level WARNING or higher  -  Set level of handler 'shng_warnings_file' to 'NOTICE'!
    2023-05-26  10:15:21 NOTICE   lib.smarthome        - Nutze Feiertage für Land 'DE', Provinz 'BY', 1 benutzerdefinierte(r) Feiertag(e) definiert
    2023-05-26  10:15:29 NOTICE   lib.smarthome       --------------------   SmartHomeNG initialization finished   --------------------
    Läuft.
    Aber: Unter Dienste fehlt die Versionsnummer vom MQTT Broker, der nicht lokal installiert ist, sondern auf dem Raspi 3 für die openWB.

    grafik.png

    Hier steht "Nicht aktiv". Doch, ist aktiv. Denn seltsamerweise kommen sehr wohl z.B. die Nachrichten von der go.e Wallbox an.
    MQTT Plugin Version ist laut Liste 2.0.5.
    Auch seltsam:

    grafik.png
    Das ist alles was bei Plugin-Konfiguration raus kommt. Da fehlt mir die instance Zeile.

    Zum Vergleich hier die Ausgaben vom Produktiv-Server:

    grafik.png
    grafik.png

    grafik.png
    Die Plugin Version ist hier 2.0.2.
    Alles andere ist identisch, natürlich auch die Modulkonfiguration. Ist ja auch exportiert/importiert ohne jegliche Manipulation.

    Ist das in der neueren SHNG/Plugin Version so gewollt? Wird nur noch angezeigt wenn der Broker lokal läuft?

    Gruß, Martin
    Angehängte Dateien

    Einen Kommentar schreiben:


  • whe
    antwortet
    minor problem beim Beenden von SHNG.

    im log finde ich nach dem Neustart von SHNG immer folgende Meldung:
    Code:
    2023-05-12  12:52:17 NOTICE   lib.smarthome       --------------------   SmartHomeNG restarting, initiated by admin interface   --------------------
    2023-05-12  12:52:26 WARNING  lib.module          Error while stopping module 'mqtt'
    -> 'dict' object has no attribute 'id'
    2023-05-12  12:52:31 NOTICE   lib.smarthome       --------------------   SmartHomeNG stopped   --------------------
    2023-05-12  11:52:35 NOTICE   lib.smarthome       --------------------   Init SmartHomeNG v1.9.5-master (646146a0f)   --------------------
    2023-05-12  11:52:35 NOTICE   lib.smarthome       Running in Python interpreter 'v3.9.2 final', from directory /usr/local/smarthome
    2023-05-12  11:52:35 NOTICE   lib.smarthome        - operating system 'Debian GNU/Linux 11 (bullseye)' (pid=1982411)
    2023-05-12  11:52:35 NOTICE   lib.smarthome        - on 'Raspberry Pi 3 Model B+ v1.3, 1GB (Sony, UK)'
    stört nicht weiter ist aber wohl ein "error".

    Einen Kommentar schreiben:


  • franzmm
    antwortet
    Hallo zusammen,

    ich kämpfe gerade mit dem Attribut "mqtt_topic_init". Das beim Start von SH eine entprechende Message gesendet wird, wäre genau das was ich bräuchte. Aber irgendwie kommt eben genau diese Nachricht bei mir nicht bei einem Client an (spätere Nachrichten wie bei "mqtt_topic_out" funktionieren ohne Probleme). Broker und Client laufen in diesem Fall weiter, SH wird neugestartet. Ich nehme an, es wäre so gedacht, dass diese Init Message auch bei einem Neustart des Brokers gesendet werden würde?
    Meine Frage: Gibt es irgendwelche besondere Voraussetzungen für diese Funktionalität, Broker Version?, "mqtt_retain" muss nicht aktiv sein, nehme ich an? mqtt_qos sollte auch egal sein, nehme ich an?

    Gruß
    Franz

    Einen Kommentar schreiben:


  • Msinn
    antwortet
    Da, wie ich das sehe, die Zuweisung ein konstanter String ist, muss die Zuweisung auch nicht per eval erfolgen.

    Noch ‘ne Quick&Dirty Lösung:
    Wenn man ein eval nutzen möchte, kann man aber die kritischen Zeichen anders in den Sting einbauen:
    Code:
    eval: ‘“erster Teil des Strings“ + chr(58) + “zweiter Teil des Strings“‘
    58 ist der ASCII Code für den Doppelpunkt.

    Einen Kommentar schreiben:


  • bmx
    antwortet
    Ich habe das Problem nun nicht in die Tiefe verfolgt aber könnte man nicht das eval einfach anders schreiben ohne escapen zu müssen oder Gänsefüsschen zu nutzen?

    Siehe dazu hier eine schöne Übersicht in der Lösung. Vielleicht klappt ja > oder | damit

    Einen Kommentar schreiben:


  • Msinn
    antwortet
    Der Editor in der Admin GUI ist Codewarrier. Das ist ein normaler Texteditor. Sämtliches escapen damit Du eine gültige YAML Datei erhältst musst Du selber machen, wie bei jedem anderen Texteditor auch. Auch den Doppelminkt musst Du (je nach Stringtyp) escapen. Welche Möglichkeiten es dazu gibt, findest Du in verschiedenen YAML Dokumentationen im Internet.

    Der einzige Unterschied zwischen dem Editor in der Admin GUI und anderen Texteditoren ist, dass SmartHomNG die Daten bereits nicht speichert, wenn es keine gültige YAML Datei ist. Wenn Du andere Editoren (Notepad, …) nutzt, kannst Du eine beliebige Datei speichern und SmartHomeNG beschwert sich über den Fehler erst, wenn es die Dazei laden will und dabei feststellt, dass es keine gültige YAML Datei ist.

    Eine Quick&Dirty Lösung für Dein Problem könnte zum Beispiel der Einsatz einer Logik sein, in der Du das Item mit dem gewünschten String befüllst, der als Payload gesendet werden soll. Damit umgehst Du erstmal das Escaping-Problem in der YAML Datei.

    Einen Kommentar schreiben:


  • mayrjohannes
    antwortet
    Hallo Msinn, hab mich da jetzt etwas damit beschäftigt und du hast mich jedenfalls auf die richtige Fährte gebracht. Aber es liegt weniger am casten der { und " sondern mehr an den ":".
    Ich bin mir jetzt nicht sicher ob der Editor im Backend auf swagger basiert, aber jedenfalls gibt es da ein paar Probleme mit den ":" (siehe: https://stackoverflow.com/questions/...-a-yaml-string). Dort gibt es zwar ein paar Lösungsvorschläge, von denen funktioniert aber keiner.

    Der String funktioniert ja für eval im helperitem, aber nicht für on_update im bool-Item.

    Ich hab jetzt folgende Varianten versucht:
    Variante A funktioniert prinzipiell und es lässt sich alles schön im Backend speichern, aber die ":" fehlen halt und am Empfänger gibt es entsprechend eine parse error
    Code:
                    cleanwintergarten:
                        type: bool
                        visu_acl: rw
                        on_update:
                         - .cleanwintergartenhelper = '{"segment_ids" ["8"],"iterations" 1}'
                                          
                        cleanwintergartenhelper:  
                            type: str
                            mqtt_topic: 'robots/Z10/MapSegmentationCapability/clean/set'
                            enforce_updates: true    ​
    Variante B published den mqtt nur mit 'abc' und in der smarthomeNG log bekomme ich folgende Warning: 2022-12-19 20:17:20 WARNING lib.item.item Item glob.robots.vacuum.segments.cleanwintergarten.clea nwintergartenhelper: value "{'segment_ids': ['8'], 'iterations': 1}" does not match type str. Via mqtt None
    Code:
                    cleanwintergarten:
                        type: bool
                        visu_acl: rw
                        on_update:
                         - .cleanwintergartenhelper = 'abc'
                                          
                        cleanwintergartenhelper:  
                            type: str
                            mqtt_topic: 'robots/Z10/MapSegmentationCapability/clean/set'
                            eval: "{\"segment_ids\": [\"8\"], \"iterations\": 1}"
                            enforce_updates: true    ​
    Variante C kann ich nur über nano editieren und speichern (wegen der Doppelpunkte nicht über das Backend). Wenn ich smarthomeNG dann aber neu starte gibt es die selbe Fehlermeldung wie im Backend.
    Code:
                    cleanwintergarten:
                        type: bool
                        visu_acl: rw
                        on_update:
                         - .cleanwintergartenhelper = '{"segment_ids": ["8"],"iterations": 1}'
                                          
                        cleanwintergartenhelper:  
                            type: str
                            mqtt_topic: 'robots/Z10/MapSegmentationCapability/clean/set'
                            enforce_updates: true    ​
    Variante A und C funktioniert auch mit
    Code:
    "{\"segment_ids\": [\"8\"], \"iterations\": 1}"
    nur wenn man die Doppelpunkte entfernt.

    Wie könnte ich da meine ":" reinbekommen?

    Das ganze ist ganz und gar kein MQTT Thema, deswegen vermutlich im vollkommen falschen Thread. Kann man das irgendwie verschieben?
    Zuletzt geändert von mayrjohannes; 19.12.2022, 20:32.

    Einen Kommentar schreiben:

Lädt...
X