Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

MQTT import issues? (please test) #3106

Closed
TD-er opened this issue Jun 8, 2020 · 4 comments
Closed

MQTT import issues? (please test) #3106

TD-er opened this issue Jun 8, 2020 · 4 comments

Comments

@TD-er
Copy link
Member

TD-er commented Jun 8, 2020

As stated here: 15c34ee
Apparently the MQTT import plugin is causing issues with the current mega branch.

CPU load rising over 40%(!) with MQTTimport (P037) plug-in with this changes. :-(

P037 : MQTT Intentional reconnect
P037 : MQTT connection lost
P037 : MQTT Intentional reconnect
P037 : MQTT connection lost
P037 : MQTT Intentional reconnect
P037 : MQTT connection lost

Test build with current mega branch:
ESPEasy_ESP82xx_mega-20200515-87-g7a353b12.zip
ESPEasy_ESP32_mega-20200515-87-g7a353b12.zip

Would be nice if someone else could also test it.

@Wiki591
Copy link
Contributor

Wiki591 commented Jun 8, 2020

At a first glance:

grafik

grafik

Status/behaviour before update:


CPU Load avg 17.5%

Copied: "Build:?
20104  - Mega
System Libraries:?
ESP82xx Core bc204a9b, NONOS SDK 2.2.2-dev(38a443e), LWIP: 2.1.2 PUYA support
Git Build:?
mega-20191208
Plugins:?
46 [Normal]
Build Time:?
Dec  8 2019 18:04:38
Binary Filename:?
ESP_Easy_mega-20191208_normal_ESP8266_4M1M.bin
" to clipboard!

Copied: "1642559268: IMPT : [Batterie#AZ] : 6712.00
1642559352: EVENT: Batterie#AZ=6712.00
1642559441: IMPT : [BS#LZ] : 92.00
1642559456: EVENT: BS#LZ=92.00
1642559586: IMPT : [Batterie#EC] : 7603200.00
1642559606: IMPT : [Batterie#FC] : 1036800.00
1642559615: IMPT : [BS#BS] : 56.40
1642559636: IMPT : [BS#PP] : 1767.00
1642559641: EVENT: Batterie#EC=7603200.00
1642559754: EVENT: Batterie#FC=1036800.00
1642559836: EVENT: BS#BS=56.40
1642559907: IMPT : [BS#LP] : 250.00
1642559936: EVENT: BS#PP=1767.00
1642560035: EVENT: BS#LP=250.00
1642560061: ACT  : SendToHTTP 192.168.xxx.yyy,80,'/control?cmd=Di,page1.t7.txt='92%''     
1642560064: Command: SendToHTTP
1642560124: ACT  : SendToHTTP 192.168.xxx.yyy,80,'/control?cmd=Di,page1.t5.txt='56.40V''  
1642560126: Command: SendToHTTP
1642560246: ACT  : publish domoticz/in,'{'idx':138,'nvalue':0,'svalue':'92'}'     
1642560249: Command: publish
1642560254: ACT  : TaskValueset,4,2,6712/60         
1642560255: Command: TaskValueset
1642560259: ACT  : SendToHTTP 192.168.xxx.yyy,80,'/control?cmd=Di,page1.t33.txt='Ausgleichszeit:112min.''           
1642560261: Command: SendToHTTP
1642560287: ACT  : TaskValueSet,3,3,1036800/60      
1642560289: Command: TaskValueSet
1642560293: ACT  : TaskValueSet,3,4,7603200/60      
1642560295: Command: TaskValueSet
1642560308: ACT  : SendToHTTP 192.168.xxx.yyy,80,'/control?cmd=Di,page1.t34.txt='Volladung:12.00Tage''                    
1642560311: Command: SendToHTTP
1642560355: ACT  : SendToHTTP 192.168.xxx.yyy,80,'/control?cmd=Di,page1.t35.txt='Ausgleichsldg.:88.00Tage''                    
1642560357: Command: SendToHTTP
1642575546: Command: publish
1642575551: ACT  : TaskValueset,4,2,6701/60         
1642575553: Command: TaskValueset
1642575557: ACT  : SendToHTTP 192.168.xxx.yyy,80,'/control?cmd=Di,page1.t33.txt='Ausgleichszeit:112min.''           
1642575559: Command: SendToHTTP
1642575590: ACT  : TaskValueSet,3,3,1036800/60      
1642575592: Command: TaskValueSet
1642575595: ACT  : TaskValueSet,3,4,7603200/60      
1642575596: Command: TaskValueSet
1642575609: ACT  : SendToHTTP 192.168.xxx.yyy,80,'/control?cmd=Di,page1.t34.txt='Volladung:12.00Tage''                    
1642575612: Command: SendToHTTP
1642575654: ACT  : SendToHTTP 192.168.xxx.yyy,80,'/control?cmd=Di,page1.t35.txt='Ausgleichsldg.:88.00Tage''                    
1642575656: Command: SendToHTTP
1642575714: WD   : Uptime 98959 ConnectFailures 0 FreeMem 13648 WiFiStatus 3
" to clipboard!

After update:


CPU load avg 15.5%

Copied: "Build:⋄
20107  - Mega
System Libraries:⋄
ESP82xx Core a5432625, NONOS SDK 2.2.2-dev(38a443e), LWIP: 2.1.2 PUYA support
Git Build:⋄

Plugin Count:⋄
46 [Normal]
Build Time:⋄
Jun  8 2020 01:37:48
Binary Filename:⋄
ESP_Easy_mega_20200608_normal_ESP8266_4M1M
Build Platform:⋄
Linux-4.15.0-91-generic-x86_64-with-glibc2.27
Git HEAD:⋄
mega
" to clipboard!



Copied: "297653: IMPT : [Batterie#AZ] : 6290.00
297715: EVENT: Batterie#AZ=6290.00
297801: IMPT : [BS#LZ] : 92.00
297819: EVENT: BS#LZ=92.00
297944: IMPT : [Batterie#EC] : 7603200.00
297962: IMPT : [Batterie#FC] : 1036800.00
297971: IMPT : [BS#BS] : 56.40
297990: IMPT : [BS#PP] : 1487.00
298002: EVENT: Batterie#EC=7603200.00
298091: IMPT : [BS#LP] : 270.00
298104: EVENT: Batterie#FC=1036800.00
298200: EVENT: BS#BS=56.40
298300: EVENT: BS#PP=1487.00
298400: EVENT: BS#LP=270.00
298669: ACT  : publish domoticz/in,'{'idx':138,'nvalue':0,'svalue':'92'}'
298672: Command: publish
298697: ACT  : TaskValueset,4,2,6290/60
298699: Command: TaskValueset
298702: ACT  : SendToHTTP 192.168.xxx.yyy,80,'/control?cmd=Di,page1.t33.txt='Ausgleichszeit:105min.''
298704: Command: SendToHTTP
298813: ACT  : TaskValueSet,3,3,1036800/60
298814: Command: TaskValueSet
298818: ACT  : TaskValueSet,3,4,7603200/60
298819: Command: TaskValueSet
298833: ACT  : SendToHTTP 192.168.xxx.yyy,80,'/control?cmd=Di,page1.t34.txt='Volladung:12.00Tage''
298835: Command: SendToHTTP
299188: ACT  : SendToHTTP 192.168.xxx.yyy,80,'/control?cmd=Di,page1.t35.txt='Ausgleichsldg.:88.00Tage''
299190: Command: SendToHTTP
310794: Dummy: value 1: 0.00
310795: Dummy: value 2: 0.00
310795: Dummy: value 3: 17280.00
310795: Dummy: value 4: 126720.00
310840: EVENT: Netzdaten#Netzbezug=0.00
310942: EVENT: Netzdaten#Einspeisung=0.00
311041: EVENT: Netzdaten#FC=17280.00
311141: EVENT: Netzdaten#EC=126720.00
312391: WD   : Uptime 5 ConnectFailures 0 FreeMem 16520 WiFiStatus 3
313149: IMPT : [BS#LZ] : 92.00
313164: EVENT: BS#LZ=92.00
313286: IMPT : [Batterie#EC] : 7603200.00
313306: IMPT : [Batterie#FC] : 1036800.00
313317: IMPT : [BS#BS] : 56.40
313335: IMPT : [BS#PP] : 1483.00
313347: EVENT: Batterie#EC=7603200.00
313443: IMPT : [BS#LP] : 273.00
313447: EVENT: Batterie#FC=1036800.00
313540: EVENT: BS#BS=56.40
313640: EVENT: BS#PP=1483.00
313740: EVENT: BS#LP=273.00
313787: ACT  : SendToHTTP 192.168.xxx.yyy,80,'/control?cmd=Di,page1.t7.txt='92%''
313793: Command: SendToHTTP
314038: ACT  : publish domoticz/in,'{'idx':138,'nvalue':0,'svalue':'92'}'
314041: Command: publish
314067: ACT  : TaskValueset,4,2,6279/60
314068: Command: TaskValueset
314072: ACT  : SendToHTTP 192.168.xxx.yyy,80,'/control?cmd=Di,page1.t33.txt='Ausgleichszeit:105min.''
314074: Command: SendToHTTP
314129: ACT  : TaskValueSet,3,3,1036800/60
314130: Command: TaskValueSet
314133: ACT  : TaskValueSet,3,4,7603200/60
314134: Command: TaskValueSet
314148: ACT  : SendToHTTP 192.168.xxx.yyy,80,'/control?cmd=Di,page1.t34.txt='Volladung:12.00Tage''
314150: Command: SendToHTTP
314203: ACT  : SendToHTTP 192.168.xxx.yyy,80,'/control?cmd=Di,page1.t35.txt='Ausgleichsldg.:88.00Tage''
314205: Command: SendToHTTP
315836: EVENT: Clock#Time=Mon,14:46
328264: IMPT : [Batterie#AZ] : 6255.00
328339: EVENT: Batterie#AZ=6255.00
328487: IMPT : [BS#LZ] : 92.00
328513: IMPT : [Batterie#EC] : 7603200.00
328553: EVENT: BS#LZ=92.00
328957: BME280 : Address: 0x76
328958: BME280 : Temperature: 19.01
328958: BME280 : Humidity: 49.20
328958: BME280 : Barometric Pressure: 1014.67
328981:  Domoticz: Sensortype: 4 idx: 106 values: 19.0;49;1;1015;0
328986: EVENT: Umluft#C=19.01
328999: ACT  : SendToHTTP 192.168.xxx.yyy,80,'/control?cmd=Di,page0.BC.txt='19.0°C''
329001: Command: SendToHTTP
329059: ACT  : SendToHTTP 192.168.xxx.yyy,80,'/control?cmd=Di,page0.BH.txt='49%''
329062: Command: SendToHTTP
329158: EVENT: Umluft#H=49.20
329252: EVENT: Umluft#P=1014.67
329339: IMPT : [BS#PP] : 1478.00
329342: EVENT: BS#PP=1478.00
329724: ACT  : publish domoticz/in,'{'idx':137,'nvalue':0,'svalue':'273'}'
329727: Command: publish
329761: ACT  : publish domoticz/in,'{'idx':138,'nvalue':0,'svalue':'92'}'
329766: Command: publish
329792: ACT  : TaskValueset,4,2,6255/60
329793: Command: TaskValueset
329797: ACT  : SendToHTTP 192.168.xxx.yyy,80,'/control?cmd=Di,page1.t33.txt='Ausgleichszeit:104min.''
329799: Command: SendToHTTP
329859: ACT  : TaskValueSet,3,3,1036800/60
329860: Command: TaskValueSet
329865: ACT  : TaskValueSet,3,4,7603200/60
329867: Command: TaskValueSet
329885: ACT  : SendToHTTP 192.168.xxx.yyy,80,'/control?cmd=Di,page1.t34.txt='Volladung:12.00Tage''
329887: Command: SendToHTTP
329954: ACT  : SendToHTTP 192.168.xxx.yyy,80,'/control?cmd=Di,page1.t35.txt='Ausgleichsldg.:88.00Tage''
329956: Command: SendToHTTP
342391: WD   : Uptime 6 ConnectFailures 0 FreeMem 16816 WiFiStatus 3
343559: IMPT : [Batterie#AZ] : 6238.00
343610: EVENT: Batterie#AZ=6238.00
343756: IMPT : [BS#LZ] : 92.00
343783: IMPT : [Batterie#EC] : 7603200.00
343824: EVENT: BS#LZ=92.00
343929: EVENT: Batterie#EC=7603200.00
344015: IMPT : [Batterie#FC] : 1036800.00
344021: EVENT: Batterie#FC=1036800.00
344113: IMPT : [BS#BS] : 56.40
344685: ACT  : publish domoticz/in,'{'idx':138,'nvalue':0,'svalue':'92'}'
344688: Command: publish
344715: ACT  : TaskValueset,4,2,6238/60
344716: Command: TaskValueset
344720: ACT  : SendToHTTP 192.168.xxx.yyy,80,'/control?cmd=Di,page1.t33.txt='Ausgleichszeit:104min.''
344722: Command: SendToHTTP
344759: ACT  : TaskValueSet,3,3,1036800/60
344760: Command: TaskValueSet
344763: ACT  : TaskValueSet,3,4,7603200/60
344765: Command: TaskValueSet
344779: ACT  : SendToHTTP 192.168.xxx.yyy,80,'/control?cmd=Di,page1.t34.txt='Volladung:12.00Tage''
344781: Command: SendToHTTP
344817: ACT  : SendToHTTP 192.168.xxx.yyy,80,'/control?cmd=Di,page1.t35.txt='Ausgleichsldg.:88.00Tage''
344819: Command: SendToHTTP
" to clipboard!

For me works perfectly, MQTT broker on Raspberry Stretch:

mosquitto version 1.3.4 (build date 2017-05-29 22:25:09+0000)

Wired connection of the broker.

@giig1967g
Copy link
Contributor

giig1967g commented Jun 8, 2020

for me is working fine too:

152303831: IMPT : Connected to MQTT broker with Client ID=ESPT10_10-Import
152303859: IMPT : [test#Value1] subscribed to OH2Varazze/status/zr5
152303860: IMPT : [test#Value2] subscribed to OH2Varazze/status/zr4
152303861: IMPT : [test#Value3] subscribed to OH2Varazze/status/zn10a
152304044: IMPT : [test#Value1] : 3.00
152304137: EVENT: test#Value1=3.00
152304257: IMPT : [test#Value2] : 2.00
152304337: EVENT: test#Value2=2.00
152304445: IMPT : [test#Value3] : 0.00
152304537: EVENT: test#Value3=0.00
152324041: WD : Uptime 2539 ConnectFailures 0 FreeMem 13680 WiFiStatus 3
152328486: EVENT: Clock#Time=Mon,15:25
152335150: IMPT : [test#Value3] : 1.00
152335237: EVENT: test#Value3=1.00
152343946: IMPT : [test#Value3] : 0.00
152344037: EVENT: test#Value3=0.00

with raspberry and openHAB

@v-a-d-e-r
Copy link

Ok, now it works here, too. I have no clue what was happening here.... :-/ I think the open issue can be closed now.

@TD-er
Copy link
Member Author

TD-er commented Jun 9, 2020

OK, then we can close it.
Thanks all for testing.

@TD-er TD-er closed this as completed Jun 9, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants