Can Alexa control a thermostat?

Posted on
Wed Jan 11, 2017 7:25 pm
Japple55 offline
Posts: 224
Joined: Sep 26, 2015
Location: NE Tennessee

Re: Can Alexa control a thermostat?

racarter wrote:
...runs some code to copy the dimmer percentage to the thermostat setpoint, ideally with some limit checking.


Thanks for the info on the Honeywells, Jay and Neil. And racarter: good idea, but I'm afraid that "some code" part may prove challenging for my limited skills. I will give it some thought as I await the arrival of the thermostat.

I have all the confidence in the world that, before the year is out, the programming skills of Jay and C4W will have Alexa asking ME if I want her to lower the temperature to 72. :lol:

Posted on
Thu Jan 12, 2017 3:39 am
racarter offline
User avatar
Posts: 477
Joined: Jun 18, 2016
Location: North Yorkshire, UK

Re: Can Alexa control a thermostat?

Here's a script which would copy dimmer value to thermostat. It's quick and dirty, with no limit checking, but it's proof of concept. :)


dev = indigo.devices[<ID of meta dimmer>]
newSetPoint = dev.brightness
indigo.thermostat.setHeatSetpoint(<ID of thermostat>, value=newSetPoint)


Just set up a trigger to run this whenever the dimmer value changes.

Posted on
Thu Jan 12, 2017 5:56 am
Japple55 offline
Posts: 224
Joined: Sep 26, 2015
Location: NE Tennessee

Re: Can Alexa control a thermostat?

racarter wrote:

Just set up a trigger to run this whenever the dimmer value changes.


Thank you very much!!!

Posted on
Thu Jan 12, 2017 6:15 am
racarter offline
User avatar
Posts: 477
Joined: Jun 18, 2016
Location: North Yorkshire, UK

Re: Can Alexa control a thermostat?

You're welcome! You might want to put an if statement before the last line to check for limits.

Posted on
Sun Jan 22, 2017 9:43 am
Japple55 offline
Posts: 224
Joined: Sep 26, 2015
Location: NE Tennessee

Re: Can Alexa control a thermostat?

Have a problem with getting the correct value set. I've set up an X10 device as a virtual dimmer, using the script posted below to copy the dimmer setting to the thermostat setpoint. It works, but sometimes the virtual dimmer will only decrement by 2 degrees. If it's set to 79, and I tell Alexa to "set thermostat to 78," the dimmer changes to 77, not 78. If I go from 77 to 76, it properly sets it at 76. Changing from 76 to 75, it won't move at all (current temp is 76). I'm confused.

Any thoughts? Could it somehow be an integer/rounding issue?

Jim

Who is online

Users browsing this forum: No registered users and 6 guests