8000 Nest operation modes by jawilson · Pull Request #3609 · home-assistant/core · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

Nest operation modes #3609

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

Merged
merged 5 commits into from
Sep 30, 2016
Merged

Nest operation modes #3609

merged 5 commits into from
Sep 30, 2016

Conversation

jawilson
Copy link
Contributor
@jawilson jawilson commented Sep 30, 2016

Description:
The Nest operation modes in #3606 don't match with what you can actually set. I made changes to the operation mode corresponds to what mode the thermostat is in (heat, cool, auto, off) and the climate state refers to the current operation it is taking (heat, cool, idle). I also update the Nest sensor to use operation_mode instead of the legacy mode value.

image

I honestly think the card should be updated so instead of current_operation attribute it displays the climate state.

Checklist:

If code communicates with devices, web services, or a:

  • Local tests with tox run successfully. Your PR cannot be merged unless tests pass

@@ -62,13 +63,22 @@ def unit_of_measurement(self):
return TEMP_CELSIUS

@property
def state(self):
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Do not overwrite state. That's for the Climate ABC to decide (it currently returns self.operation_mode)

…on mode"

This reverts commit 573ba02.

Conflicts:
	homeassistant/components/climate/nest.py
@balloob
Copy link
Member
balloob commented Sep 30, 2016

Awesome! Coming to a hotfix near you soon 👍 🐬

@balloob balloob merged commit a89d036 into home-assistant:dev Sep 30, 2016
@tchellomello
Copy link
Contributor
tchellomello commented Sep 30, 2016

@jawilson good catch on this. It makes sense the way you displayed it now. I tested your patch and looks good to me. It is nice that it shows Auto when running in range. Very clear 👍

Thanks for the good work!

@balloob balloob added this to the 0.29.5 milestone Sep 30, 2016
balloob pushed a commit that referenced this pull request Sep 30, 2016
* Add ability to change Nest mode to all available options

* Make Nest state reflect current operation not current operation mode

* Update Nest sensor to use operation mode

* Fix linting

* Revert "Make Nest state reflect current operation not current operation mode"

This reverts commit 573ba02.

Conflicts:
	homeassistant/components/climate/nest.py
@jawilson jawilson deleted the nest-operation-modes branch September 30, 2016 14:07
@home-assistant home-assistant locked and limited conversation to collaborators Mar 17, 2017
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants
0