We got a free “Climote” smart heating control from our electricity provider here in Ireland. Communication with the control is over GSM, and then there is an app which connects to Climote’s servers. I just ran my phone through Charles proxy and there is a lovely HTTP protocol going on in the background behind the app. A couple of curl statements later and i can get the status from the heating control (and its attached temperature sensors) and i managed to turn on and off the heating. Wonderful! Everything returns nicely formatted JSON data.
I am going to start by trying to get the data from the status response into home assistant. curl and JSON response looks like this:
Question: How would people go about making the request to the api, retrieving the JSON, and creating sensors in HA for temprature, thermostat, hold and boost?
My thinking:
Command line script would be easy enough but from reading the documentation i think i can only return one value to HA from the script, where I might want 1 call to update 4-5 sensor values?
HTTP sensor does’nt seem to support authentication?
I suppose I could write a cron job outside ha that polls the API, parses the response and writes it to different topics on my MQTT server?
Hi there, I came here seeing if there was an API approach for climote. I need to be able to switch temperatures around during the day/night. I put together a python script to do this and saved it in /usr/bin/climote so I simply have to run “climote 20” to set temp to 20. I hope you can use this as a basis for any climote integration.
Hey there! Sorry I didn’t see your reply. Thanks for that! Do you have the commands handy? I only use climote to turn on and off the water, if I manage to gather the python command to do so, I’ll be happy!
Thanks for posting this.
I’m trying to get it working on POSTman first but I keep getting Unauthorised Login Token which is to do with the basic auth?
What combination of username:password did you use?
username=email or username=35386xxxxxx password=???
Hi,
I will be looking in the next few months to add climote to home assistant. Just started my smart home journey and so nice to see that there are so many integrations built by various guys…
We probably need to start a git project for this and I have asked Climote for some integration support integration.
What would be useful is to have an integration with few buttons that we mostly use like boot water 30 min, boost living heating for 30 min and boost upstairs heating for 30 min etc.
I will try to play around with it and maybe get in touch with the Dev behind.
If anything, we potentially can reuse some of this and i can try to help with the build
OK, to give update. I think i am on right track. THe communication with Climote page works fine (at least login and getting Zones data). Now have trouble to overall build it for HASS. Will play around for another day or two and if cannot figure out will set fork on git and give you details
Hi there, am looking to test this and hopefully provide feedback to you. I am unsure how to get it added, I downloaded the code and placed into a subfolder of “custom_components”. When I add the config to the config yaml and then do a Check Config, I get
Platform error climate.climote - Integration ‘climote’ not found. HAve I copied the files into the wrong location?
Actually have it working now. I had to restart HA first, then add the lines to configuration.yaml. Presumbly the restart caused HA to “re-read” the custome_components folder and then it knew what I was trying to configure afterwards.
Have the entity now climate.living which coresponds to my single zone. can see the temp on it.
HAve it on a lovelace card now
have spotted that it only appears to update the values read from the device on HA startup.
Started HA, can see the set temp on the Climote
Change the temp on the Climote (using their mobile app)
Temp doesnt update on the lovelace card (multiple hard browser refreshes).
restart HA, it reads the “new” set-temp value (after about 3 minutes)
I waited 15 minutes between #3 and #4.
Once I restarted HA, I get a few of these entries in the HA log:
2021-02-15 20:56:19 WARNING (MainThread) [homeassistant.util.async_] Detected I/O inside the event loop. This is causing stability issues. Please report issue to the custom component author for climote doing I/O at custom_components/climote/climate.py, line 313: r = self.s.post(_LOGIN_URL, data=self.creds)