alfred-nest
alfred-nest copied to clipboard
Unable to set temp to current temperature
Steps to reproduce:
- Authenticate Nest Plugin
- Set Default Nest Device
- Issue change temp command:
nest temp 65Changing the temperature from it's current actual value of 68 to 65. Nest will now say "Heating to 65 degrees" - 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.
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.