Autor Thema: [gelöst] MQTT / MQTT2 – alle 5 – 10 Sek. jeweils 10 Meldungen vom Device  (Gelesen 756 mal)

Offline Omega

  • Sr. Member
  • ****
  • Beiträge: 537
Auf der Suche, warum mein FHEM so lahmt, bin ich darüber gestolpert, dass jedes MQTT/MQTT2-Device (ESP’s, SONOFF-Schalter, Gosund-Steckdosen,…) im Abstand von 5 – 10 Sekunden jeweils 10 Sätze mit Statusinfos produziert.

18:29:01 MQT: stat/KG.Werkzeugkeller.Licht/STATUS = {"Status":{"Module":29,"FriendlyName":["KG.Werkzeugkeller.Licht_1","KG.Werkzeugkeller.Licht_2"],"Topic":"KG.Werkzeugkeller.Licht","ButtonTopic":"0","Power":0,"PowerOnState":3,"LedState":1,"SaveData":0,"SaveState":1,"SwitchTopic":"0","SwitchMode":[0,0,0,0,0,0,0,0],"ButtonRetain":0,"SwitchRetain":0,"SensorRetain":0,"PowerRetain":0}}
18:29:01 MQT: stat/KG.Werkzeugkeller.Licht/STATUS1 = {"StatusPRM":{"Baudrate":115200,"GroupTopic":"sonoffs","OtaUrl":"http://192.168.0.212:10061/data/firmwares/sonoff.bin","RestartReason":"Software/System restart","Uptime":"0T02:44:08","StartupUTC":"2019-10-17T13:44:53","Sleep":50,"BootCount":56,"SaveCount":82,"SaveAddress":"FB000"}}
18:29:01 MQT: stat/KG.Werkzeugkeller.Licht/STATUS2 = {"StatusFWR":{"Version":"6.3.0.3","BuildDateTime":"2018.11.06 12:05:28","Boot":31,"Core":"2_3_0","SDK":"1.5.3(aec24ac9)"}}
18:29:01 MQT: stat/KG.Werkzeugkeller.Licht/STATUS3 = {"StatusLOG":{"SerialLog":2,"WebLog":2,"SysLog":0,"LogHost":"domus1","LogPort":514,"SSId":["IoTGW4H","indebuurt2"],"TelePeriod":300,"SetOption":["00000009","558180C0","00000001"]}}
18:29:01 MQT: stat/KG.Werkzeugkeller.Licht/STATUS4 = {"StatusMEM":{"ProgramSize":492,"Free":508,"Heap":14,"ProgramFlashSize":1024,"FlashSize":1024,"FlashMode":3,"Features":["00000407","0FDAE794","000183A0","23B617CE","00003BC0"]}}
18:29:01 MQT: stat/KG.Werkzeugkeller.Licht/STATUS5 = {"StatusNET":{"Hostname":"KG.Werkzeugkeller.Licht-1063","IPAddress":"192.168.0.57","Gateway":"192.168.0.1","Subnetmask":"255.255.255.0","DNSServer":"192.168.0.1","Mac":"DC:4F:22:CA:84:27","Webserver":2,"WifiConfig":2}}
18:29:01 MQT: stat/KG.Werkzeugkeller.Licht/STATUS6 = {"StatusMQT":{"MqttHost":"192.168.0.19","MqttPort":1883,"MqttClientMask":"DVES_%06X","MqttClient":"DVES_CA8427","MqttUser":"DVES_USER","MqttType":1,"MAX_PACKET_SIZE":1000,"KEEPALIVE":15}}
18:29:01 MQT: stat/KG.Werkzeugkeller.Licht/STATUS7 = {"StatusTIM":{"UTC":"Thu Oct 17 16:29:01 2019","Local":"Thu Oct 17 18:29:01 2019","StartDST":"Sun Mar 31 02:00:00 2019","EndDST":"Sun Oct 27 03:00:00 2019","Timezone":99,"Sunrise":"08:13","Sunset":"18:57"}}
18:29:01 MQT: stat/KG.Werkzeugkeller.Licht/STATUS10 = {"StatusSNS":{"Time":"2019-10-17T18:29:01"}}
18:29:01 MQT: stat/KG.Werkzeugkeller.Licht/STATUS11 = {"StatusSTS":{"Time":"2019-10-17T18:29:01","Uptime":"0T02:44:08","Vcc":3.174,"POWER1":"off","POWER2":"off","Wifi":{"AP":1,"SSId":"IoTGW4H","BSSId":"78:8A:20:2A:A4:98","Channel":7,"RSSI":70}}}
18:29:05 MQT: stat/KG.Werkzeugkeller.Licht/STATUS = {"Status":{"Module":29,"FriendlyName":["KG.Werkzeugkeller.Licht_1","KG.Werkzeugkeller.Licht_2"],"Topic":"KG.Werkzeugkeller.Licht","ButtonTopic":"0","Power":0,"PowerOnState":3,"LedState":1,"SaveData":0,"SaveState":1,"SwitchTopic":"0","SwitchMode":[0,0,0,0,0,0,0,0],"ButtonRetain":0,"SwitchRetain":0,"SensorRetain":0,"PowerRetain":0}}
18:29:05 MQT: stat/KG.Werkzeugkeller.Licht/STATUS1 = {"StatusPRM":{"Baudrate":115200,"GroupTopic":"sonoffs","OtaUrl":"http://192.168.0.212:10061/data/firmwares/sonoff.bin","RestartReason":"Software/System restart","Uptime":"0T02:44:12","StartupUTC":"2019-10-17T13:44:53","Sleep":50,"BootCount":56,"SaveCount":82,"SaveAddress":"FB000"}}
18:29:05 MQT: stat/KG.Werkzeugkeller.Licht/STATUS2 = {"StatusFWR":{"Version":"6.3.0.3","BuildDateTime":"2018.11.06 12:05:28","Boot":31,"Core":"2_3_0","SDK":"1.5.3(aec24ac9)"}}
18:29:05 MQT: stat/KG.Werkzeugkeller.Licht/STATUS3 = {"StatusLOG":{"SerialLog":2,"WebLog":2,"SysLog":0,"LogHost":"domus1","LogPort":514,"SSId":["IoTGW4H","indebuurt2"],"TelePeriod":300,"SetOption":["00000009","558180C0","00000001"]}}
18:29:05 MQT: stat/KG.Werkzeugkeller.Licht/STATUS4 = {"StatusMEM":{"ProgramSize":492,"Free":508,"Heap":14,"ProgramFlashSize":1024,"FlashSize":1024,"FlashMode":3,"Features":["00000407","0FDAE794","000183A0","23B617CE","00003BC0"]}}
18:29:05 MQT: stat/KG.Werkzeugkeller.Licht/STATUS5 = {"StatusNET":{"Hostname":"KG.Werkzeugkeller.Licht-1063","IPAddress":"192.168.0.57","Gateway":"192.168.0.1","Subnetmask":"255.255.255.0","DNSServer":"192.168.0.1","Mac":"DC:4F:22:CA:84:27","Webserver":2,"WifiConfig":2}}
18:29:05 MQT: stat/KG.Werkzeugkeller.Licht/STATUS6 = {"StatusMQT":{"MqttHost":"192.168.0.19","MqttPort":1883,"MqttClientMask":"DVES_%06X","MqttClient":"DVES_CA8427","MqttUser":"DVES_USER","MqttType":1,"MAX_PACKET_SIZE":1000,"KEEPALIVE":15}}
18:29:05 MQT: stat/KG.Werkzeugkeller.Licht/STATUS7 = {"StatusTIM":{"UTC":"Thu Oct 17 16:29:05 2019","Local":"Thu Oct 17 18:29:05 2019","StartDST":"Sun Mar 31 02:00:00 2019","EndDST":"Sun Oct 27 03:00:00 2019","Timezone":99,"Sunrise":"08:13","Sunset":"18:57"}}
18:29:05 MQT: stat/KG.Werkzeugkeller.Licht/STATUS10 = {"StatusSNS":{"Time":"2019-10-17T18:29:05"}}
18:29:05 MQT: stat/KG.Werkzeugkeller.Licht/STATUS11 = {"StatusSTS":{"Time":"2019-10-17T18:29:05","Uptime":"0T02:44:12","Vcc":3.174,"POWER1":"off","POWER2":"off","Wifi":{"AP":1,"SSId":"IoTGW4H","BSSId":"78:8A:20:2A:A4:98","Channel":7,"RSSI":70}}}
18:29:11 MQT: stat/KG.Werkzeugkeller.Licht/STATUS = {"Status":{"Module":29,"FriendlyName":["KG.Werkzeugkeller.Licht_1","KG.Werkzeugkeller.Licht_2"],"Topic":"KG.Werkzeugkeller.Licht","ButtonTopic":"0","Power":0,"PowerOnState":3,"LedState":1,"SaveData":0,"SaveState":1,"SwitchTopic":"0","SwitchMode":[0,0,0,0,0,0,0,0],"ButtonRetain":0,"SwitchRetain":0,"SensorRetain":0,"PowerRetain":0}}
18:29:11 MQT: stat/KG.Werkzeugkeller.Licht/STATUS1 = {"StatusPRM":{"Baudrate":115200,"GroupTopic":"sonoffs","OtaUrl":"http://192.168.0.212:10061/data/firmwares/sonoff.bin","RestartReason":"Software/System restart","Uptime":"0T02:44:18","StartupUTC":"2019-10-17T13:44:53","Sleep":50,"BootCount":56,"SaveCount":82,"SaveAddress":"FB000"}}
18:29:11 MQT: stat/KG.Werkzeugkeller.Licht/STATUS2 = {"StatusFWR":{"Version":"6.3.0.3","BuildDateTime":"2018.11.06 12:05:28","Boot":31,"Core":"2_3_0","SDK":"1.5.3(aec24ac9)"}}
18:29:11 MQT: stat/KG.Werkzeugkeller.Licht/STATUS3 = {"StatusLOG":{"SerialLog":2,"WebLog":2,"SysLog":0,"LogHost":"domus1","LogPort":514,"SSId":["IoTGW4H","indebuurt2"],"TelePeriod":300,"SetOption":["00000009","558180C0","00000001"]}}
18:29:11 MQT: stat/KG.Werkzeugkeller.Licht/STATUS4 = {"StatusMEM":{"ProgramSize":492,"Free":508,"Heap":14,"ProgramFlashSize":1024,"FlashSize":1024,"FlashMode":3,"Features":["00000407","0FDAE794","000183A0","23B617CE","00003BC0"]}}
18:29:11 MQT: stat/KG.Werkzeugkeller.Licht/STATUS5 = {"StatusNET":{"Hostname":"KG.Werkzeugkeller.Licht-1063","IPAddress":"192.168.0.57","Gateway":"192.168.0.1","Subnetmask":"255.255.255.0","DNSServer":"192.168.0.1","Mac":"DC:4F:22:CA:84:27","Webserver":2,"WifiConfig":2}}
18:29:11 MQT: stat/KG.Werkzeugkeller.Licht/STATUS6 = {"StatusMQT":{"MqttHost":"192.168.0.19","MqttPort":1883,"MqttClientMask":"DVES_%06X","MqttClient":"DVES_CA8427","MqttUser":"DVES_USER","MqttType":1,"MAX_PACKET_SIZE":1000,"KEEPALIVE":15}}
18:29:11 MQT: stat/KG.Werkzeugkeller.Licht/STATUS7 = {"StatusTIM":{"UTC":"Thu Oct 17 16:29:11 2019","Local":"Thu Oct 17 18:29:11 2019","StartDST":"Sun Mar 31 02:00:00 2019","EndDST":"Sun Oct 27 03:00:00 2019","Timezone":99,"Sunrise":"08:13","Sunset":"18:57"}}
18:29:11 MQT: stat/KG.Werkzeugkeller.Licht/STATUS10 = {"StatusSNS":{"Time":"2019-10-17T18:29:11"}}
18:29:11 MQT: stat/KG.Werkzeugkeller.Licht/STATUS11 = {"StatusSTS":{"Time":"2019-10-17T18:29:11","Uptime":"0T02:44:18","Vcc":3.174,"POWER1":"off","POWER2":"off","Wifi":{"AP":1,"SSId":"IoTGW4H","BSSId":"78:8A:20:2A:A4:98","Channel":7,"RSSI":70}}}
18:29:14 MQT: stat/KG.Werkzeugkeller.Licht/STATUS = {"Status":{"Module":29,"FriendlyName":["KG.Werkzeugkeller.Licht_1","KG.Werkzeugkeller.Licht_2"],"Topic":"KG.Werkzeugkeller.Licht","ButtonTopic":"0","Power":0,"PowerOnState":3,"LedState":1,"SaveData":0,"SaveState":1,"SwitchTopic":"0","SwitchMode":[0,0,0,0,0,0,0,0],"ButtonRetain":0,"SwitchRetain":0,"SensorRetain":0,"PowerRetain":0}}
18:29:14 MQT: stat/KG.Werkzeugkeller.Licht/STATUS1 = {"StatusPRM":{"Baudrate":115200,"GroupTopic":"sonoffs","OtaUrl":"http://192.168.0.212:10061/data/firmwares/sonoff.bin","RestartReason":"Software/System restart","Uptime":"0T02:44:21","StartupUTC":"2019-10-17T13:44:53","Sleep":50,"BootCount":56,"SaveCount":82,"SaveAddress":"FB000"}}
18:29:14 MQT: stat/KG.Werkzeugkeller.Licht/STATUS2 = {"StatusFWR":{"Version":"6.3.0.3","BuildDateTime":"2018.11.06 12:05:28","Boot":31,"Core":"2_3_0","SDK":"1.5.3(aec24ac9)"}}
18:29:15 MQT: stat/KG.Werkzeugkeller.Licht/STATUS3 = {"StatusLOG":{"SerialLog":2,"WebLog":2,"SysLog":0,"LogHost":"domus1","LogPort":514,"SSId":["IoTGW4H","indebuurt2"],"TelePeriod":300,"SetOption":["00000009","558180C0","00000001"]}}
18:29:15 MQT: stat/KG.Werkzeugkeller.Licht/STATUS4 = {"StatusMEM":{"ProgramSize":492,"Free":508,"Heap":14,"ProgramFlashSize":1024,"FlashSize":1024,"FlashMode":3,"Features":["00000407","0FDAE794","000183A0","23B617CE","00003BC0"]}}
18:29:15 MQT: stat/KG.Werkzeugkeller.Licht/STATUS5 = {"StatusNET":{"Hostname":"KG.Werkzeugkeller.Licht-1063","IPAddress":"192.168.0.57","Gateway":"192.168.0.1","Subnetmask":"255.255.255.0","DNSServer":"192.168.0.1","Mac":"DC:4F:22:CA:84:27","Webserver":2,"WifiConfig":2}}
18:29:15 MQT: stat/KG.Werkzeugkeller.Licht/STATUS6 = {"StatusMQT":{"MqttHost":"192.168.0.19","MqttPort":1883,"MqttClientMask":"DVES_%06X","MqttClient":"DVES_CA8427","MqttUser":"DVES_USER","MqttType":1,"MAX_PACKET_SIZE":1000,"KEEPALIVE":15}}
18:29:15 MQT: stat/KG.Werkzeugkeller.Licht/STATUS7 = {"StatusTIM":{"UTC":"Thu Oct 17 16:29:15 2019","Local":"Thu Oct 17 18:29:15 2019","StartDST":"Sun Mar 31 02:00:00 2019","EndDST":"Sun Oct 27 03:00:00 2019","Timezone":99,"Sunrise":"08:13","Sunset":"18:57"}}
18:29:15 MQT: stat/KG.Werkzeugkeller.Licht/STATUS10 = {"StatusSNS":{"Time":"2019-10-17T18:29:15"}}
18:29:15 MQT: stat/KG.Werkzeugkeller.Licht/STATUS11 = {"StatusSTS":{"Time":"2019-10-17T18:29:15","Uptime":"0T02:44:22","Vcc":3.174,"POWER1":"off","POWER2":"off","Wifi":{"AP":1,"SSId":"IoTGW4H","BSSId":"78:8A:20:2A:A4:98","Channel":7,"RSSI":70}}}
18:29:21 MQT: stat/KG.Werkzeugkeller.Licht/STATUS = {"Status":{"Module":29,"FriendlyName":["KG.Werkzeugkeller.Licht_1","KG.Werkzeugkeller.Licht_2"],"Topic":"KG.Werkzeugkeller.Licht","ButtonTopic":"0","Power":0,"PowerOnState":3,"LedState":1,"SaveData":0,"SaveState":1,"SwitchTopic":"0","SwitchMode":[0,0,0,0,0,0,0,0],"ButtonRetain":0,"SwitchRetain":0,"SensorRetain":0,"PowerRetain":0}

Ist das so normal?
TelePeriod ist default auf 300 Sekunden.

LG
Holger


« Letzte Änderung: 17 Oktober 2019, 23:08:12 von Omega »
NUC6i3SYH (FHEM 5.8 in VM)
Homematic: HMLAN, HMUSB, HM-Sec-SD, HM-CC-RT-DN, HM-TC-IT, ... + diverse weitere
LaCrosseGateway, ESPEasy
ZWave

Offline HomeAlone

  • Full Member
  • ***
  • Beiträge: 249
Antw:MQTT / MQTT2 – alle 5 – 10 Sek. jeweils 10 Meldungen vom Device
« Antwort #1 am: 17 Oktober 2019, 20:34:19 »
Hast Du tasmoadmin am Start? Wenn ja, schalte den Service mal ab und schau, ob die Statusmeldungen zurückgehen.

Die messsges sollte allerdings nicht die Performance von fhem herunterziehen.

Viele Grüße
Sascha
Gefällt mir Gefällt mir x 1 Liste anzeigen

Offline Omega

  • Sr. Member
  • ****
  • Beiträge: 537
Antw:MQTT / MQTT2 – alle 5 – 10 Sek. jeweils 10 Meldungen vom Device
« Antwort #2 am: 17 Oktober 2019, 23:07:48 »
SUPER! Du hattest Recht. Die ganzen stat/... Meldungen kommen nur, solange TasmoAdmin parallel mitläuft.
Beende ich TasmoAdmin, kommen nur noch alle 5 Min (wie zu erwarten mit TelePeriod 300) Meldungen mit Prefix tele/...

Bei ca. 35 Devices mit 10 Meldungen pro Device alle 5 Sek. wären es ca. 250.000 Meldungen pro Stunde. Da braucht es schon eine sehr potentielle Hardware, um das zu verkraften - neben dem ganzen anderen Netzwerktrafik.

Eine Zeitlang hatte ich apptime mitlaufen lassen. Auch wenn ich mit den Aussagen dazu nicht fit bin, zeigen für mich viele meiner Probleme auf MQTT. Ich kann aber nicht mehr sagen, wann in dem Zeitraum TasmoAdmin parallen mitlief.


LG
Holger
NUC6i3SYH (FHEM 5.8 in VM)
Homematic: HMLAN, HMUSB, HM-Sec-SD, HM-CC-RT-DN, HM-TC-IT, ... + diverse weitere
LaCrosseGateway, ESPEasy
ZWave
Gefällt mir Gefällt mir x 1 Liste anzeigen

 

decade-submarginal