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

Fix possibly invalid target_temp_high in trv.py #1451

Merged

Conversation

cygnusb
Copy link
Contributor

@cygnusb cygnusb commented Nov 7, 2024

Motivation:

Bosch Thermostat having attributes target_temp_high and target_temp_low (and no temperature) having issues when changing the temperature locally. Changes were not communicated back properly.

Reference: #1422 (comment)

Changing target_temp_high to target_temp_low in trv.py fixed this.

On deeper investigation it seems that Zigbee occupied_heating_temperature is converted to target_temp_low.

Inspecting 1797332 reveals that in cooler.py and trv.py the temperature is set using target_temp_high. This should be correct for cooler.py, but most propably not in trv.py

Changes:

Changes target_temp_high to target_temp_low in trv.py.

Related issue (check one):

  • fixes #
  • there is no related issue ticket

Checklist (check one):

  • I did not change any code (e.g. documentation changes)
  • The code change is tested and works locally.

Test-Hardware list (for code changes)

HA Version: 2024.11.0
Zigbee2MQTT Version: 1.41.0
TRV Hardware: Bosch Thermostat II

target_temp_high is the cooling temperature and mapped to zigbee occupied_cooling_temperature

target_temp_low is the heating temperature and mapped to zigbee occupied_heating_temperature
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