Danke für die Erläuterung, ich stelle mal das Logging entsprechend ein und schaue was beim nächsten Disconnect so auftaucht
Schönen Abend
Gunnar
Schönen Abend
Gunnar
23-07-15 12:21:20 CEST DEBUG __init__ modules.mqtt.paho_client _get_caller_type: inspect.stack()[2][1] = '/usr/local/smarthome/lib/model/mqttplugin.py', split = ['', 'usr', 'local', 'smarthome', 'lib', 'model', 'mqttplugin.py'] -- (__init__.py:_get_caller_type:743) 2023-07-15 12:21:20 CEST INFO __init__ modules.mqtt.paho_client 'publish_topic()' - called from Plugin by 'publish_topic()' -- (__init__.py:publish_topic:773) 2023-07-15 12:21:20 CEST INFO __init__ modules.mqtt.paho_client Plugin 'tasmota' is publishing topic 'cmnd/gosund7/teleperiod' with payload '15' (qos=1, retain=False) -- (__init__.py:publish_topic:781) 2023-07-15 12:21:20 CEST DEBUG __init__ modules.mqtt.paho_client cast_to_mqtt: data = '15', type(data) = '<class 'int'>', bool_values ='None' -- (__init__.py:cast_to_mqtt:870) 2023-07-15 12:21:20 CEST DEBUG __init__ modules.mqtt.paho_client _on_log: Sending PUBLISH (d0, q1, r0, m20032), 'b'cmnd/gosund7/teleperiod'', ... (2 bytes) -- (__init__.py:_on_mqtt_log:597) 2023-07-15 12:21:20 CEST INFO __init__ modules.mqtt.paho_client Plugin 'tasmota' has published topic 'cmnd/gosund7/teleperiod' with payload '15' -- (__init__.py:publish_topic:785) 2023-07-15 12:21:20 CEST DEBUG __init__ modules.mqtt.paho_client _on_log: Received PUBACK (Mid: 20032) -- (__init__.py:_on_mqtt_log:597) 2023-07-15 12:21:20 CEST DEBUG __init__ modules.mqtt.paho_client _on_log: Received PUBLISH (d0, q0, r0, m0), 'tele/gosund7/STATE', ... (318 bytes) -- (__init__.py:_on_mqtt_log:597) 2023-07-15 12:21:20 CEST DEBUG __init__ modules.mqtt.paho_client _on_mqtt_message: RECEIVED topic 'tele/gosund7/STATE', payload 'b'{"Time":"2023-07-15T11:21:19","Uptime":"55T02:10:11","UptimeSec":4759811,"Vcc":3.405,"Heap":28,"SleepMode":"Dynamic","Sleep":50\xfe\x01\x00\x13tele/gosund7/SENSOR{"Time":"2023-07-15T11:21:19","ENERGY":{"TotalStartTime":"2022-02-25T21:34:59","Total":219.881,"Yesterday":0.581,"Today":0.038,"Period": 0,"Power":94,"ApparentPower":94', QoS '0', retain '0' -- (__init__.py:_on_mqtt_message:533) 2023-07-15 12:21:20 CEST DEBUG __init__ modules.mqtt.paho_client _on_mqtt_message: subscription 'tasmota-5': {'subscriber_type': 'plugin', 'callback': <bound method Tasmota.on_mqtt_message of <plugins.tasmota.Tasmota object at 0x7fa8f423d880>>, 'payload_type': 'dict', 'bool_values': None} -- (__init__.py:_on_mqtt_message:560) 2023-07-15 12:21:20 CEST ERROR __init__ modules.mqtt.paho_client _on_log: Caught exception in on_message: 'utf-8' codec can't decode byte 0xfe in position 127: invalid start byte -- (__init__.py:_on_mqtt_log:595)
"Sleep":50\xfe\x01\x00\x13tele/gosund7/SENSOR{"Time":"2023-07-15T11:21:19","ENERGY":
def _on_mqtt_message(self, client, userdata, message): """ Callback function to handle received messages for items and logics
Gosund5: type: bool tasmota_topic: gosund5 tasmota_attr: online Schalter: type: bool tasmota_topic: ..:. tasmota_attr: relay enforce_updates: true ## mqtt_topic_out ?? uzsu: type: dict uzsu_item: Haus.Zentral.Gosund5.Schalter cache: 'true' Leistung: tasmota_topic: ..:. tasmota_attr: power type: num Spannung: tasmota_topic: ..:. type: num tasmota_attr: voltage Strom: tasmota_topic: ..:. type: num tasmota_attr: current Energy_total: type: num tasmota_topic: ..:. tasmota_attr: power_total Energy_yesterday: type: num tasmota_topic: ..:. tasmota_attr: power_yesterday Energy_today: type: num tasmota_topic: ..:. tasmota_attr: power_today database: true database_maxage: 730
2023-07-15 12:21:22 CEST INFO __init__ Haus.Zentral.Strom_Haushalt.Bezug.Total-eval 'publish_topic()' - called from Plugin by 'publish_topic()' -- (__init__.py:publish_topic:773) 2023-07-15 12:21:22 CEST INFO __init__ Haus.Zentral.Strom_Haushalt.Bezug.Total-eval Plugin 'mqtt' is publishing topic 'sgm-c8/energy' with payload '5073.73' (qos=1, retain=True) -- (__init__.py:publish_topic:781) 2023-07-15 12:21:22 CEST DEBUG __init__ Haus.Zentral.Strom_Haushalt.Bezug.Total-eval cast_to_mqtt: data = '5073.73', type(data) = '<class 'float'>', bool_values ='None' -- (__init__.py:cast_to_mqtt:870) 2023-07-15 12:21:22 CEST DEBUG __init__ Haus.Zentral.Strom_Haushalt.Bezug.Total-eval _on_log: Sending PUBLISH (d0, q1, r1, m20033), 'b'sgm-c8/energy'', ... (7 bytes) -- (__init__.py:_on_mqtt_log:597) 2023-07-15 12:21:22 CEST INFO __init__ [B]Haus.Zentral.Strom_Haushalt.Bezug.Total-eval Plugin 'mqtt' has published topic 'sgm-c8/energy' with payload '5073.73' -- (__init__.py:publish_topic:785) --> kommt nicht mehr im MQTT-Broker an[/B] 2023-07-15 12:21:22 CEST DEBUG __init__ plugins.smlx.Smlx _get_caller_type: inspect.stack()[2][1] = '/usr/local/smarthome/lib/model/mqttplugin.py', split = ['', 'usr', 'local', 'smarthome', 'lib', 'model', 'mqttplugin.py'] -- (__init__.py:_get_caller_type:743) 2023-07-15 12:21:22 CEST INFO __init__ plugins.smlx.Smlx 'publish_topic()' - called from Plugin by 'publish_topic()' -- (__init__.py:publish_topic:773) 2023-07-15 12:21:22 CEST INFO __init__ plugins.smlx.Smlx Plugin 'mqtt' is publishing topic 'sgm-c8/power' with payload '-5927' (qos=1, retain=True) -- (__init__.py:publish_topic:781) 2023-07-15 12:21:22 CEST DEBUG __init__ plugins.smlx.Smlx cast_to_mqtt: data = '-5927', type(data) = '<class 'int'>', bool_values ='None' -- (__init__.py:cast_to_mqtt:870)
023-08-06 17:14:20 CEST ERROR __init__ modules.mqtt.paho_client cast_from_mqtt: datatype 'dict', error 'Expecting ',' delimiter: line 1 column 128 (char 127)', data = ‘{"Time":"2023-08-06T15:48:22","Uptime":"28T00:40:46","UptimeSec":2421646,"Vcc":3.472,"Heap":29,"SleepMode":"Dynamic","[B]Sleep":50\xfe\x01\x00[/B]\x13tele/gosund7/SENSOR{"Time":"2023-07-15T11:21:19","ENERGY":{"TotalStartTime":"2022-02-25T21:34:59","Total":219.881,"Yesterday":0.581,"Today":0.038,"Period": 0,"Power":94,"ApparentPower":94, QoS '0', retain '0'
altes Log: ECEIVED topic 'tele/gosund7/STATE', payload 'b'{"Time":"2023-07-15T11:21:19","Uptime":"55T02:10:11","UptimeSec":4759811,"Vcc":3.405,"Heap":28,"SleepMode":"Dynamic","Sleep":50\xfe\x01\x00\x13 --> hier fehlt eigentlich was, stattdessen geht es direkt hiermit weiter tele/gosund7/SENSOR{"Time":"2023-07-15T11:21:19","ENERGY":{"TotalStartTime":"2022-02-25T21:34:59","Total":219.881,"Yesterday":0.581,"Today":0.038,"Period": 0,"Power":94,"ApparentPower":94', QoS '0', retain '0' -- (__init__.py:_on_mqtt_message:533) so muss es eigentlich aussehen tele/gosund7/STATE {"Time":"2023-08-06T15:39:13","Uptime":"77T06:28:05","UptimeSec":6676085,"Vcc":3.402,"Heap":30,"SleepMode":"Dynamic","Sleep":50,"LoadAvg":19,"MqttCount":405,"POWER":"ON","Wifi":{"AP":1,"SSId":"unify","BSSId":"xxxxxxxxxx","Channel":13,"Mode":"11n","RSSI":58,"Signal":-71,"LinkCount":391,"Downtime":"0T06:27:40"}} tele/gosund7/SENSOR {"Time":"2023-08-06T15:39:13","ENERGY":{"TotalStartTime":"2022-02-25T21:34:59","Total":227.404,"Yesterday":0.000,"Today":0.404,"Period": 0,"Power":115,"ApparentPower":134,"ReactivePower":69,"Factor":0.86,"Voltage":226,"Current":0.594}}
mqtt: plugin_name: mqtt mqttwb: plugin_name: mqtt instance: mqttwb host: 192.168.10.110
2023-09-26 11:26:39 INFO plugins.mqtt mqttwb@: publish_topic: Item 'Wirkleistung.openWB' -> topic 'openWB/set/evu/W', payload '9', QoS 'None', retain 'False'
name: jk1_soc type: num database@mysqldb: init mqtt_topic_in: jk1/Data/Percent_Remain mqtt_topic_out: 'openWB/set/houseBattery/%Soc'
Wir verarbeiten personenbezogene Daten über die Nutzer unserer Website mithilfe von Cookies und anderen Technologien, um unsere Dienste bereitzustellen. Weitere Informationen findest Du in unserer Datenschutzerklärung.
Indem Du unten auf "ICH stimme zu" klickst, stimmst Du unserer Datenschutzerklärung und unseren persönlichen Datenverarbeitungs- und Cookie-Praktiken zu, wie darin beschrieben. Du erkennst außerdem an, dass dieses Forum möglicherweise außerhalb Deines Landes gehostet wird und bist damit einverstanden, dass Deine Daten in dem Land, in dem dieses Forum gehostet wird, gesammelt, gespeichert und verarbeitet werden.
Kommentar