Skip to content

Don't use room setpoint override in climate.opentherm_gw#22656

Merged
robbiet480 merged 3 commits into
home-assistant:devfrom
mvn23:otgw_no_setp_ovrd
Apr 2, 2019
Merged

Don't use room setpoint override in climate.opentherm_gw#22656
robbiet480 merged 3 commits into
home-assistant:devfrom
mvn23:otgw_no_setp_ovrd

Conversation

@mvn23
Copy link
Copy Markdown
Contributor

@mvn23 mvn23 commented Apr 2, 2019

Description:

While troubleshooting some issues in the pyotgw library, it was noted that the room setpoint override (DATA_ROOM_SETP_OVRD) does not always provide reliable data with some thermostats. To fix this, we only use the actual current setpoint as reported by the thermostat. When setting an override (changing the target temperature through HA), the thermostat takes some time to update its setpoint. To bridge this gap, we assume the override value as target temperature until the thermostat changes the setpoint.

Related issue (if applicable): N/A

Pull request in home-assistant.io with documentation (if applicable): N/A

Example entry for configuration.yaml (if applicable):

N/A

Checklist:

  • The code change is tested and works locally.
  • Local tests pass with tox. Your PR cannot be merged unless tests pass
  • There is no commented out code in this PR.

If user exposed functionality or configuration variables are added/changed:

  • N/A

If the code communicates with devices, web services, or third-party tools:

  • New dependencies have been added to the REQUIREMENTS variable (example).
  • New dependencies are only imported inside functions that use them (example).
  • New or updated dependencies have been added to requirements_all.txt by running script/gen_requirements_all.py.
  • New files were added to .coveragerc.

If the code does not interact with devices:

  • N/A

@codecov
Copy link
Copy Markdown

codecov Bot commented Apr 2, 2019

Codecov Report

Merging #22656 into dev will not change coverage.
The diff coverage is n/a.

Impacted file tree graph

@@           Coverage Diff           @@
##              dev   #22656   +/-   ##
=======================================
  Coverage   92.57%   92.57%           
=======================================
  Files         457      457           
  Lines       36977    36977           
=======================================
  Hits        34232    34232           
  Misses       2745     2745

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 16e0953...579b0b0. Read the comment docs.

1 similar comment
@codecov
Copy link
Copy Markdown

codecov Bot commented Apr 2, 2019

Codecov Report

Merging #22656 into dev will not change coverage.
The diff coverage is n/a.

Impacted file tree graph

@@           Coverage Diff           @@
##              dev   #22656   +/-   ##
=======================================
  Coverage   92.57%   92.57%           
=======================================
  Files         457      457           
  Lines       36977    36977           
=======================================
  Hits        34232    34232           
  Misses       2745     2745

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 16e0953...579b0b0. Read the comment docs.

@andriej
Copy link
Copy Markdown
Contributor

andriej commented Apr 2, 2019

Can confirm as a main debugger ;-) that the code works and fixes situation with iSense thermostat (while gateway in iSense mode too).

Tested and stable.

@robbiet480 robbiet480 added this to the 0.91.0 milestone Apr 2, 2019
@robbiet480 robbiet480 merged commit 22d93a7 into home-assistant:dev Apr 2, 2019
@ghost ghost removed the in progress label Apr 2, 2019
Comment thread homeassistant/components/opentherm_gw/climate.py
balloob pushed a commit that referenced this pull request Apr 3, 2019
* Dont use DATA_ROOM_SETPOINT_OVRD in climate.opentherm_gw as it is unreliable with some thermostats.

* Show new target temperature immediately until the backend notices a change

* Only update target temp on the gateway if the value differs from the current target_temperature.
@balloob balloob mentioned this pull request Apr 3, 2019
@mvn23 mvn23 deleted the otgw_no_setp_ovrd branch November 17, 2020 17:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants