Hallo,
ich habe versucht, das (experimental) zigbee2mqtt Plugin zum Laufen zu bekommen. Leider legt es mir aber komplett die MQTT-Verbindung zwischen SmarthomeNG und Mosquitto, also auch das MQTT-Plugin, lahm. Den Grund konnte ich bisher leider nicht finden.
Rahmenbedingungen:
Ich habe SmarthomeNG 1.9.1 + Mosquitto 2.0.14 in einer VM (192.168.2.30) laufen. Das MQTT Plugin nutze ich bereits seit langem, ich habe u.a. Sonoff WIFI Devices darüber angebunden.
Zigbee2MQTT läuft auf einem Raspberry Pi und schickt die MQTT-Nachrichten an 192.168.2.30.
Diese kommen auch einwandfrei in Mosquitto an.
Verwendung des MQTT Plugins und Parsen der Zigbee JSON Payload per Umweg "dict" in dem Items funktioniert einwandfrei und stabil.
Sobald ich aber das Zigbee2MQTT-Plugin aktiviere - und unabhängig davon, ob und welche Items ich definiert habe - ist Schluss.
Ich sehe ankommende Messages nach wie vor in Mosquitto. Im MQTT-Plugin kommt nichts mehr an.
Meine MQTT-Steuerbefehle aus Smartvisu/SmarthomeNG gehen auch nicht mehr raus, Mosquitto sieht sie nicht.
Das SmarthomeNG-Log mit Logging für MQTT- und Zigbee2MQTT-Plugin enabled:
Das o.g. publish_topic z.B. kommt auch nicht in Mosquitto an. Zigbee2MQTT-Plugin disabled, alles geht wieder.
Gruß,
Thomas
Sisamiwe
ich habe versucht, das (experimental) zigbee2mqtt Plugin zum Laufen zu bekommen. Leider legt es mir aber komplett die MQTT-Verbindung zwischen SmarthomeNG und Mosquitto, also auch das MQTT-Plugin, lahm. Den Grund konnte ich bisher leider nicht finden.
Rahmenbedingungen:
Ich habe SmarthomeNG 1.9.1 + Mosquitto 2.0.14 in einer VM (192.168.2.30) laufen. Das MQTT Plugin nutze ich bereits seit langem, ich habe u.a. Sonoff WIFI Devices darüber angebunden.
Zigbee2MQTT läuft auf einem Raspberry Pi und schickt die MQTT-Nachrichten an 192.168.2.30.
Diese kommen auch einwandfrei in Mosquitto an.
Verwendung des MQTT Plugins und Parsen der Zigbee JSON Payload per Umweg "dict" in dem Items funktioniert einwandfrei und stabil.
Sobald ich aber das Zigbee2MQTT-Plugin aktiviere - und unabhängig davon, ob und welche Items ich definiert habe - ist Schluss.
Ich sehe ankommende Messages nach wie vor in Mosquitto. Im MQTT-Plugin kommt nichts mehr an.
Meine MQTT-Steuerbefehle aus Smartvisu/SmarthomeNG gehen auch nicht mehr raus, Mosquitto sieht sie nicht.
Das SmarthomeNG-Log mit Logging für MQTT- und Zigbee2MQTT-Plugin enabled:
Code:
2022-04-25 08:52:12 NOTICE lib.smarthome -------------------- Init SmartHomeNG v1.9.1-master (8133e714) -------------------- 2022-04-25 08:52:12 NOTICE lib.smarthome Running in Python interpreter 'v3.8.10 final', from directory /usr/local/smarthome 2022-04-25 08:52:12 NOTICE lib.smarthome - on Linux-5.4.0-109-generic-x86_64-with-glibc2.29 (pid=101351) 2022-04-25 08:52:12 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'! 2022-04-25 08:52:13 NOTICE lib.smarthome - Nutze Feiertage für Land 'DE', Provinz 'None', 1 benutzerdefinierte(r) Feiertag(e) definiert 2022-04-25 08:52:19 DEBUG plugins.mqtt parsing item: eg.kueche.kaffeemaschine.write 2022-04-25 08:52:19 DEBUG plugins.mqtt (parsing result): item.conf '{'mqtt_topic_out': 'cmnd/sonoffkaffee/POWER1'}' 2022-04-25 08:52:19 INFO plugins.mqtt Publishing topic 'cmnd/sonoffkaffee/POWER1' (when needed) for item 'eg.kueche.kaffeemaschine.write' 2022-04-25 08:52:19 DEBUG plugins.mqtt parsing item: eg.kueche.kaffeemaschine 2022-04-25 08:52:19 DEBUG plugins.mqtt (parsing result): item.conf '{'mqtt_topic_in': 'stat/sonoffkaffee/POWER1'}' 2022-04-25 08:52:20 DEBUG plugins.mqtt parsing item: zentral.lueftung.rg.write 2022-04-25 08:52:20 DEBUG plugins.mqtt (parsing result): item.conf '{'mqtt_topic_out': 'cmnd/sonoff/POWER4'}' 2022-04-25 08:52:20 INFO plugins.mqtt Publishing topic 'cmnd/sonoff/POWER4' (when needed) for item 'zentral.lueftung.rg.write' 2022-04-25 08:52:20 DEBUG plugins.mqtt parsing item: zentral.lueftung.rg 2022-04-25 08:52:20 DEBUG plugins.mqtt (parsing result): item.conf '{'mqtt_topic_in': 'stat/sonoff/POWER4'}' 2022-04-25 08:52:20 DEBUG plugins.zigbee2mqtt parsing item: zigbee.th1.temp 2022-04-25 10:52:20 DEBUG plugins.mqtt Run method called 2022-04-25 10:52:20 INFO plugins.mqtt _start_subscription: Subscribing to topic stat/sonoffkaffee/POWER1, payload_type 'bool' for item eg.kueche.kaffeemaschine (callback=<bound method MqttPlugin._on_mqtt_message of <plugins.mqtt.Mqtt2 object at 0x7ff4982a4a90>>) 2022-04-25 10:52:20 INFO plugins.mqtt _start_subscription: Subscribing to topic stat/sonoff/POWER4, payload_type 'bool' for item zentral.lueftung.rg (callback=<bound method MqttPlugin._on_mqtt_message of <plugins.mqtt.Mqtt2 object at 0x7ff4982a4a90>>) 2022-04-25 10:52:20 DEBUG plugins.zigbee2mqtt Run method called 2022-04-25 10:52:20 INFO plugins.zigbee2mqtt local ip adress is 192.168.2.30 2022-04-25 10:52:20 INFO plugins.zigbee2mqtt _start_subscription: Subscribing to topic zigbee2mqtt/+, payload_type 'dict' for item *no_item* (callback=<bound method Zigbee2Mqtt.on_mqtt_announce of <plugins.zigbee2mqtt.Zigbee2Mqtt object at 0x7ff498119370>>) 2022-04-25 10:52:21 NOTICE lib.smarthome -------------------- SmartHomeNG initialization finished -------------------- 2022-04-25 10:52:21 INFO plugins.zigbee2mqtt _start_subscription: Subscribing to topic zigbee2mqtt/+/state, payload_type 'bool' for item *no_item* (callback=<bound method Zigbee2Mqtt.on_mqtt_announce of <plugins.zigbee2mqtt.Zigbee2Mqtt object at 0x7ff498119370>>) 2022-04-25 10:52:21 INFO plugins.zigbee2mqtt _start_subscription: Subscribing to topic zigbee2mqtt/+/config, payload_type 'dict' for item *no_item* (callback=<bound method Zigbee2Mqtt.on_mqtt_announce of <plugins.zigbee2mqtt.Zigbee2Mqtt object at 0x7ff498119370>>) 2022-04-25 10:52:21 DEBUG plugins.zigbee2mqtt on_mqtt_announce: topic_level1=zigbee2mqtt, topic_level2=bridge, topic_level3=state, topic_level4=, topic_level5=, payload=False 2022-04-25 10:52:21 DEBUG plugins.zigbee2mqtt LWT: detail: state datetime: 2022-04-25 10:52:21.136546 payload: False 2022-04-25 10:52:21 INFO plugins.zigbee2mqtt _start_subscription: Subscribing to topic zigbee2mqtt/+/config/+, payload_type 'dict' for item *no_item* (callback=<bound method Zigbee2Mqtt.on_mqtt_announce of <plugins.zigbee2mqtt.Zigbee2Mqtt object at 0x7ff498119370>>) 2022-04-25 10:52:21 INFO plugins.zigbee2mqtt _start_subscription: Subscribing to topic zigbee2mqtt/+/info, payload_type 'dict' for item *no_item* (callback=<bound method Zigbee2Mqtt.on_mqtt_announce of <plugins.zigbee2mqtt.Zigbee2Mqtt object at 0x7ff498119370>>) 2022-04-25 10:52:21 INFO plugins.zigbee2mqtt _start_subscription: Subscribing to topic zigbee2mqtt/+/info/#, payload_type 'dict' for item *no_item* (callback=<bound method Zigbee2Mqtt.on_mqtt_announce of <plugins.zigbee2mqtt.Zigbee2Mqtt object at 0x7ff498119370>>) 2022-04-25 10:52:21 INFO plugins.zigbee2mqtt _start_subscription: Subscribing to topic zigbee2mqtt/+/response, payload_type 'dict' for item *no_item* (callback=<bound method Zigbee2Mqtt.on_mqtt_announce of <plugins.zigbee2mqtt.Zigbee2Mqtt object at 0x7ff498119370>>) 2022-04-25 10:52:21 INFO plugins.zigbee2mqtt _start_subscription: Subscribing to topic zigbee2mqtt/+/response/#, payload_type 'dict' for item *no_item* (callback=<bound method Zigbee2Mqtt.on_mqtt_announce of <plugins.zigbee2mqtt.Zigbee2Mqtt object at 0x7ff498119370>>) 2022-04-25 10:52:21 INFO plugins.zigbee2mqtt _start_subscription: Subscribing to topic zigbee2mqtt/+/log, payload_type 'dict' for item *no_item* (callback=<bound method Zigbee2Mqtt.on_mqtt_announce of <plugins.zigbee2mqtt.Zigbee2Mqtt object at 0x7ff498119370>>) 2022-04-25 10:52:21 DEBUG plugins.zigbee2mqtt scheduler_add: name = plugins.zigbee2mqtt.poll_bridge, parameters: prio=3, cycle=30 2022-04-25 10:52:21 INFO plugins.zigbee2mqtt publish_topic: topic 'zigbee2mqtt/bridge/config/devices/get', payload '', QoS 'None', retain 'False' 2022-04-25 10:52:21 INFO plugins.zigbee2mqtt publish_topic: topic 'zigbee2mqtt/TH1/get', payload '{"temperature" : ""}', QoS 'None', retain 'False' 2022-04-25 10:52:36 INFO plugins.zigbee2mqtt poll_bridge: Checking online and health status of bridge 2022-04-25 10:52:36 INFO plugins.zigbee2mqtt publish_topic: topic 'zigbee2mqtt/bridge/request/health_check', payload '', QoS 'None', retain 'False' 2022-04-25 10:53:06 INFO plugins.zigbee2mqtt poll_bridge: Checking online and health status of bridge [....] 2022-04-25 10:55:06 INFO plugins.zigbee2mqtt publish_topic: topic 'zigbee2mqtt/bridge/request/health_check', payload '', QoS 'None', retain 'False' 2022-04-25 10:55:36 INFO plugins.zigbee2mqtt poll_bridge: Checking online and health status of bridge 2022-04-25 10:55:36 INFO plugins.zigbee2mqtt publish_topic: topic 'zigbee2mqtt/bridge/request/health_check', payload '', QoS 'None', retain 'False' 2022-04-25 10:55:44 INFO plugins.mqtt Update item: eg.kueche.kaffeemaschine.write, item has been changed outside this plugin 2022-04-25 10:55:44 INFO plugins.mqtt publish_topic: Item 'eg.kueche.kaffeemaschine.write' -> topic 'cmnd/sonoffkaffee/POWER1', payload '2', QoS 'None', retain 'False' 2022-04-25 10:55:46 INFO plugins.mqtt Update item: eg.kueche.kaffeemaschine.write, item has been changed outside this plugin 2022-04-25 10:55:46 INFO plugins.mqtt publish_topic: Item 'eg.kueche.kaffeemaschine.write' -> topic 'cmnd/sonoffkaffee/POWER1', payload '2', QoS 'None', retain 'False' 2022-04-25 10:56:06 INFO plugins.zigbee2mqtt poll_bridge: Checking online and health status of bridge 2022-04-25 10:56:06 INFO plugins.zigbee2mqtt publish_topic: topic 'zigbee2mqtt/bridge/request/health_check', payload '', QoS 'None', retain 'False' 2022-04-25 10:56:36 INFO plugins.zigbee2mqtt poll_bridge: Checking online and health status of bridge [....]
Gruß,
Thomas
Sisamiwe
Kommentar