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

AttributeError: 'Thermostat' object has no attribute 'hvac_mode' #96

Closed
danbri opened this issue Jul 31, 2017 · 4 comments
Closed

AttributeError: 'Thermostat' object has no attribute 'hvac_mode' #96

danbri opened this issue Jul 31, 2017 · 4 comments

Comments

@danbri
Copy link

danbri commented Jul 31, 2017

Running this against a freshly setup Nest Thermostat, I get some useful info (address, temp, etc.) and then this:

Country : GB
num_thermostats : 1
Device: Hallway
Where: Hallway
Mode : heat
Traceback (most recent call last):
File "nesttest.py", line 39, in
print (' HVAC Mode: %s' % device.hvac_mode)
AttributeError: 'Thermostat' object has no attribute 'hvac_mode'

@troyfontaine
Copy link
Collaborator

troyfontaine commented Aug 1, 2017

Hi @danbri
There isn't an hvac_mode attribute. There is mode and hvac_state attributes-it looks like a mistake crept into the readme. I've fixed that. hvac_state will tell you if the nest is currently heating or cooling. Mode will tell you if it is set to heat, cool, etc.

@danbri
Copy link
Author

danbri commented Aug 1, 2017

Thanks! Also "AttributeError: 'Thermostat' object has no attribute 'fan_timer'". Don't know my way around the Nest APIs yet to fix quickly; I tried some terms from https://developers.nest.com/documentation/cloud/thermostat-guide unsuccessfully.

@troyfontaine
Copy link
Collaborator

@danbri that is actually a new attribute in the code currently sitting on master awaiting a new release-fan_timer is not in the currently available package.

@troyfontaine
Copy link
Collaborator

fan_timer has now been added to the released version 3.4.0 :). Please give it a try again!

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

No branches or pull requests

2 participants