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 settings are reset to defaults when module restarts #250

Open
silvanverschuur opened this issue May 12, 2024 · 7 comments
Open

MQTT settings are reset to defaults when module restarts #250

silvanverschuur opened this issue May 12, 2024 · 7 comments
Labels
bug Something isn't working

Comments

@silvanverschuur
Copy link

Describe the bug
The MQTT settings are restored to default values when the module restarts. This happens when restarting the device from the web page but also when the cable between the Itho WPU and the module is disconnected. The MQTT settings are saved using the 'Save' button on the MQTT page

Device information

  • Firmware version: 2.9.0-beta1
  • Hardware revision: non-cve
  • CC1101 RF module enabled: yes
@arjenhiemstra
Copy link
Owner

Thanks for reporting this! I also noticed a reset of the system settings yesterday, trying to find out what causes this.

@arjenhiemstra arjenhiemstra added the bug Something isn't working label May 12, 2024
Copy link

stale bot commented Jul 12, 2024

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

@stale stale bot added the stale closed No reaction on issue for a long time label Jul 12, 2024
@silvanverschuur
Copy link
Author

@arjenhiemstra I'm wondering if you have found the issue? If so, is it possible to release a beta to test it?

@stale stale bot removed the stale closed No reaction on issue for a long time label Jul 12, 2024
@printplaatreparatie
Copy link
Contributor

It took me a long time to find that this was the issue for me. Let me give some background information so others that use tls can find this issue (and fix) easier.

I noticed that the Itho box was no longer communicating with Home Assistant. The mosquitto logs were showing these two errors:

New connection from 192.168.xxx.xxx:xxxxx on port 8883.
OpenSSL Error[0]: error:1408F10B:SSL routines:ssl3_get_record:wrong version number
2024-08-15 23:29:04: Client <unknown> disconnected: Protocol error.

Not helpful and even misleading. The fix is easy: After every reboot, change the port number to 1883 in the ngr-itho webinterface. Save, change it back to 8883, save.

@arjenhiemstra
Copy link
Owner

@arjenhiemstra I'm wondering if you have found the issue? If so, is it possible to release a beta to test it?

Yes, found it!
The config is wrongly saved prior to loading during startup. I'll remove it in the next update.
This is the affected line:

saveSystemConfigflag = true;

@silvanverschuur
Copy link
Author

@arjenhiemstra Do you know when a new (beta) version is released with this fix?

@arjenhiemstra
Copy link
Owner

Hopefully this will not happen anymore with the latest 2.9.0-beta5 release. I suspect the config was somehow saved before being loaded properly. This should be prevented from happing since this beta.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants