I have written a small python library and an early Hass platform. You’ll find those at https://github.com/tmz42/python-heatzy, feedback is welcome. It just switches the Pilote & Pilote2 modules between modes.
In order for it to work with Home Assistant, add the opt/homeassistant/heatzy.py component under a /custom_components/climate directory, and add your login/password to your configuration.yaml file.
Great job from @tmz42. However I’m still not convinced by Heatzy since this is not a pure on-prem solution. Do you think Heatzy could be managed with tokens or IDs without cloud authentication like most of Xiaomi WiFi devices for example?
From what I understand, Heatzy can’t be controlled locally, everything is linked to the Gizwits API… I think there is a Qubino module for pilot wires, but it is twice as expansive.
Thanks for your fast reply! As an alternative to Qubino I have found this local controller: http://www.wifipower.fr/fr/eth-panel/66-eth-panel-fp4.html. If you already have an installation with pilot wires centralized into your power distribution unit this DIN compatible module should be a great solution!
This module also exists with WiFi if you don’t have the possibility to connect it to your LAN via Ethernet from your power distribution unit.
Unfortunately I can’t give you feedback since I have not tried it, as far as I know you can send orders with HTTP requests so I assume that this thing could be easily integrated into HA.
Hi @tmz42 !
I tried to install your Heatzy component for HA, adding the Heatzy.py to the custom component folder, and change my configuration with my Heatzy credentials.
The script itself works fine when using from the CLI or using Python command line.
But I got the following error when loading the module in Hass.
2019-01-24 16:11:35 ERROR (MainThread) [homeassistant.components.climate] Error while setting up platform heatzy
Traceback (most recent call last):
File “/usr/local/lib/python3.6/site-packages/homeassistant/helpers/entity_platform.py”, line 128, in _async_setup_platform
SLOW_SETUP_MAX_WAIT, loop=hass.loop)
File “/usr/local/lib/python3.6/asyncio/tasks.py”, line 358, in wait_for
return fut.result()
File “/usr/local/lib/python3.6/concurrent/futures/thread.py”, line 56, in run
result = self.fn(*self.args, **self.kwargs)
File “/config/custom_components/climate/heatzy.py”, line 25, in setup_platform
import heatzy
ModuleNotFoundError: No module named ‘heatzy’
@tmz42
I’m finally ok after restarting my HASS / Raspberry
I still have an issue when changing the operation mode in a card.
I have to submit the change two times before it really goes to Heatzy and my heater. is that normal ?
It seems the first request goes nowhere, and is just useful to refresh the state, and the second one is ok
I noticed the same thing a few weeks ago, but it seems to be working fine at home right now. I think it is UI-related because it works consistently in automations.
I’m running 0.86.1
I was wondering if it could be due to a polling / refresh interval ?
I noticed that when it displays ‘Il y a 5 heures’ (or more) in the card, then it doesn’t work.
If the last refresh was 10min then it’s ok
Forget my last comment
Actually it does the same event of the last refresh was 1min ago.
But I think you’re right that’s an UI issue.
I checked on the Heatzy app, and when changing the operation mode from HASS, it sends the operation mode properly, but doesn’t reflect it in HASS.
I have the same issue that @Nicolas_B. I run the last version 0.86.4 on a docker (HASS is still on test, my main setup is still on Jeedom). If I can help for fix this, feel free to ask :).
@tmz42 Did you manage to use your heatzy module with the generic thermostat?
On the doc, it seems that the generic thermostat need a toogle switch to activate the heating.
HASS apears to use HEAT, COOL or OFF operation, but since heatzy use CONFORT, HGEL…
Do you know if it’s possible to modify this on heatzy compoment?
Sorry, I won’t be able to send you the details of the config for some time (on vacation for two weeks), but the generic thermostat works well. I use a template switch to control the Heatzy combined with a mija bt sensor for the temperature.