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

Retain volatile optional pcb settings #243

Merged

Conversation

bagbag
Copy link
Contributor

@bagbag bagbag commented Sep 6, 2024

The optional PCB commands SetDemandControl and SetSmartGridMode are neither written to any memory, nor are they published by heishamon to mqtt.

In order to retain the selected values in home assistant on page refresh and reboots and to reapply the values after an heishamon reset or reboot, I've set the mqtt flag retain to true of these commands and changed the subscribed mqtt topic to the actual command topics.

This way we have the mentioned benefits (keep values in HA, reapply values after heishamon reboot).
I couldn't think of any negative implications or reasons why we wouldn't want this behavior.

In contrast to regular (non-optional-pcb) commands like SetQuietMode, which are stored in the heat pump's memory, we shouldn't even have write cycles on the EEPROM as they are volatile.

@kamaradclimber
Copy link
Owner

Great contribution, thanks!

@kamaradclimber kamaradclimber merged commit bf428ee into kamaradclimber:main Sep 6, 2024
2 checks passed
kamaradclimber added a commit that referenced this pull request Sep 7, 2024
…assistant

* 'main' of ssh://github.com/kamaradclimber/heishamon-homeassistant:
  Use a dictionary instead of repeating values for smart grid mode (#242)
  Update heatpump models (#241)
  Retain volatile optional pcb settings (#243)
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

Successfully merging this pull request may close these issues.

2 participants