Egyras / HeishaMon

Panasonic Aquarea air-water H, J, K and L series protocol decrypt
218 stars 113 forks source link

MQTT Topic base add to MQTT password #441

Open Bohoo69 opened 7 months ago

Bohoo69 commented 7 months ago

Hello,

I have installed the HeishaMon card on an Aquarea T-Cap and it's running great. Thanks a lot for the job done and sharing ! I am currrently working on Jeedom integration but I have discovered an issue with MQTT topic base setting. The fiield is automatically add to the password when send to the mqtt server. For the example below I select PAC as MQTT topic it's then added to the password has showed on the capture below. It's running perfectly if the MQQ Topic Field is left blank.

17-12-2023 14-25-4CCCC3

17-12-2023 14-18-31

Kind regards

Ludovic

IgorYbema commented 6 months ago

Is your normal mqtt password 64 chars long? Or did it extend the password also?

Bohoo69 commented 6 months ago

Hello,I did not count but the Jeedom password was very long !!

ahoh77 commented 6 months ago

Hello,

Same here! I just started with HeishaMon, I installed it today and tried to get it working. But - I was wonderting why I can't get a MQTT connection to the home assistent broker- the log just showed "lost MQTT connection!" After several hours of fault searching I found this issue here and simply tried to clear the Mqqt topic base. And finally the connection was working, but only with a blank topic! I counted my password chars and yes, it has 64 chars. It is an automatically created random password...

(edit:) I just tried it out with another username/password - I entered a password with just 20 chars, and then it is working also with a Mqtt topic base

kind regards Andreas

IgorYbema commented 6 months ago

I think I found the bug. Length of 64 was the max and it didn't had room for the 65th NULL character ending a string so it just reads on the next string in memory which is the topic :-) Can you try this beta firmware? (removed, not sure if this is working or breaking stuff)

Bohoo69 commented 6 months ago

Hello,

I upload the firmware, it was fine. When i add the MQTT Topic 'PAC_Panasonic' i get a message thet the WiFi password was changed (i am sure i was on the MQQ Topic) and i lost the HeishaMon. I am not on site, il will try to get it back using the wifi connection on a PC in the same room. Let you know later

IgorYbema commented 6 months ago

Ok thanks for the feedback. I'll try to reproduce that

Bohoo69 commented 6 months ago

Just let me check first it's on my side... I working on Jeedom integration, i can now get all the data thought the MQQ Manager of Jeedom in listen mode.... I have seen trouble on few data, i will make a another ticket

IgorYbema commented 6 months ago

I removed the beta above. Testing it with a long password caused my test to stop working. If this is the case for you also, you can only restore it with doing the factory reset (twice reset button within 0.5 sec causing the blue led to blink fast). And then upload a production firmware in the hotspot mode (so on the 192.168.4.1 webpage) I'll take a look what is happening

IgorYbema commented 6 months ago

The beta introduced a new bug :( but fixed in this one. I tested the long password myself now also and seems to work properly now HeishaMon.ino.zip

Bohoo69 commented 6 months ago

Do not success to get control back at distance, will need to be on site next weekend !

IgorYbema commented 6 months ago

Yes I am sorry about that

Bohoo69 commented 6 months ago

Hello, i sucess to acess to the HeishaMon whom return in a near factory mode mode though the hotspot. After reset factory and install last firmware i can confirm that the last firmware is ok with a long password... Many thanks, great job !

IgorYbema commented 6 months ago

Thanks for exposing this bug

Bohoo69 commented 6 months ago

Thanks for having done this great integretation of Panasonic Heat Pumps !