alfred-nest icon indicating copy to clipboard operation
alfred-nest copied to clipboard

Unable to set temp to current temperature

Open mmcdole opened this issue 8 years ago • 1 comments

Steps to reproduce:

  1. Authenticate Nest Plugin
  2. Set Default Nest Device
  3. Issue change temp command: nest temp 65 Changing the temperature from it's current actual value of 68 to 65. Nest will now say "Heating to 65 degrees"
  4. Attempt to Issue change temp command: nest temp 68, to change the temperature back to it's original current value of 68.

Expected Result:

Issued command is successful and the Nest is set to it's original temp of 68.

Actual Result:

I'm unable to issue the #4 command. It will only let me complete the Alfred command if the temperature is different from the "Current temperature". I should be able to send a command that sets the value back to it's current value. In the example above, I had set it to a different value very briefly but was unable to set it back.

mmcdole avatar Jan 04 '17 03:01 mmcdole

Looks like this line is responsible for this issue.

It should consider thermostat.TargetTemperature(config.Scale).String() instead of thermostat.AmbientTemperature(config.Scale), but there's a minor complicating factor of the range mode. In any case, I think it could safely be removed as a conditional.

Unfortunately I have no idea how to build this project. Even with go-alfred and go-log installed, go build just spits out errors. I have zero experience with Go, alas, so that's where I gave up.

coreyward avatar Oct 07 '17 22:10 coreyward