The 3rd Gen Nest controls hot water but it doesn’t look like it’s part of their API. Nest Forum Might be worth the Home Assistant community voting on the Nest Forum for this?
There’s already been some discussion and interest around this but I couldn’t find a feature request so thought I’d post here and see how many votes it gets
I’ve managed to get this working using IFTTT and webhooks if anyone is interested I’d be happy to share the method, you’d need a php enabled web server (I may be able to help with this), an IFTTT account and a UK Nest online account.
Got an updated guide that does away with IFTTT and simply sends the GET command straight from Home Assistant speeding things up a little. Will upload later today at some point.
I’m sure it would be but I’m not a ‘python head’ to be honest, php, html, css, sql all day long but python I’ve not really had the time to dive in and learn… One day maybe… If anyone on here could make a component from the php api file on github in the guides then that would make it even more straightforward and wouldn’t require the php host side of things and would make it more adopt-able for others however I’m just happy that I’ve got this functionality as my partner hates having to have loads of apps to do everything on her phone so keeping everything under one interface is what I’m looking for, I’ve used SmartThings for over a year now and shes’s used to opening the app and using it but it couldn’t boost the hot water either so… I’ve got most of my smartthings set up over MQTT but have transferred 90% of my devices over to HA with Zwave but now need to sort out the ZigBee side of things… You’ve got to love HA for it’s functionality though it’s very powerful with the right setup…
I am very interested in this functionality but I am struggling to set it up. I am running HA on a raspberry pi using a virtual environment. My problem is that I don’t know how to ‘install’ the php class and sample programs in the ‘webspace’. I have tried a few different folder locations but the webserver gives only a 404 so far. Any guidance you could give me would be very much appreciated.
For users that are running HA in a linux docker environment I have created this script that will download the php files, rename them, sets the relevant permissions places them all in the correct directory it will then pull and run the docker with all the correct variables so you just need to go to /phpfornest and edit the php files to reflect your nest web details and configure HA with the switches and it will all work .
Simply enter into your Linux terminal/ssh window as root or sudo bash:
The above command has been updated to reflect the updated script.
Changelog: Version 2.5
Script prompts for input for Email, Password and Access key and then updates the PHP files accordingly.
Previous Versions: Version 2.4
Changed Github URL’s in the script to our own account rather than the existing repo to allow better compatibility and preparing for input update. Version 2.3
IP at the end of the script is now your machine IP rather than your-ip-address to allow easy copy and paste.
As my previous post mentioned I’m running HA on RPi3 in a virtual environment. I’ve installed php modules for Apache and Curl for php. I’ve tried a lot of different things to get php scripts to execute from the HA UI / frontend. All it will ever do is download the php files. There’s a lot of stuff on google about this problem and I tried everything I could find but with no success.
Others may be finding the same problem, so eventually my solution was to tweak your php scripts a little bit to enable them to execute from the command line. Then set up shell command switch in HA to invoke them. It works. Again thanks for you help on this.
An update on this issue. The reason for php program downloading might be related to the configuration of MIME types (/etc/mime.conf). In my raspberry Pi system, the following lines are commented out - for whatever reason. Anybody know why or whether I should include all the lines?
Is this method still working? I’ve been using the PHPforNest docker - thanks very much @mtannerauo. After a few hours of Nest web outage yesterday, it’s not working any more.
Password unchanged, 2 factor authentication off, Nest web interface working fine
Any ideas?
curl http://192.168.1.11:4488/boost_hot_water.php?key=xxxx
<br />
<b>Fatal error</b>: Uncaught Exception: Login error <html>
<head><title>406 Not Acceptable</title></head>
<body bgcolor="white">
<center><h1>406 Not Acceptable</h1></center>
<hr><center>nginx</center>
</body>
</html>
in /var/www/html/nest-php-api.php:30
Stack trace:
#0 /var/www/html/boost_hot_water.php(17): Nest->__construct('xxxxxxx@gm...', 'password')
#1 {main}
thrown in <b>/var/www/html/nest-php-api.php</b> on line <b>30</b><br />
Hi, I am having the same issue since about a week ago. I use @mtannerauo solution as a command line which has worked great till now. The command now fails inside HA and I have tested it on a terminal session - also fails. It’s also failing on my backup system which I haven’t updated for a while. It looks to me like a Nest change which is causing a login problem, very frustrating. I also kept my original Nest login and 2 factor authentication off. I would appreciate any help.
This is the command line response:
<head><title>406 Not Acceptable</title></head>
<body bgcolor="white">
<center><h1>406 Not Acceptable</h1></center>
<hr><center>nginx</center>
</body>
</html>
in /home/homeassistant/.homeassistant/www/nest-php-api.php:30
Stack trace:
#0 /home/homeassistant/.homeassistant/www/priory-boost-hw.php(22): Nest->__construct('myusername', 'mypassword')
#1 {main}
thrown in /home/homeassistant/.homeassistant/www/nest-php-api.php on line 30