The goldair_heater platform integrates Goldair WiFi-enabled heaters into Home Assistant, enabling control of setting the following parameters via the UI and climate service:
5-35 representing °C)and additionally the following parameters via configuration.yaml:
1-5)Current temperature is displayed.
Please note, this platform has currently only been tested with the Goldair GPPH (inverter) range, however theoretically it should also work with GEPH and GPCV devices and any other Goldair heaters based on the Tuya platform.
To enable the platform, copy goldair_heater.py to the <config_dir>/custom_components/climate directory, then add the following lines to your configuration.yaml file:
# Example configuration.yaml entry
climate:
- platform: goldair_heater
name: My heater
host: 1.2.3.4
device_id: <your device id>
local_key: <your local key>
(string) (Required) Any unique for the device; required because the Tuya API doesn't provide the one you set in the app.
(string) (Required) IP or hostname of the device.
(string) (Required) Device ID retrieved from the Goldair app logs (see below).
(string) (Required) Local key retrieved from the Goldair app logs (see below).
(string) (Optional) Set the power level you want to use. auto is recommended, though the heaters also support stop (no heat at all) or 1 through 5. Bear in mind that this is a once-off setting because the HA climate interface doesn't yet have a control or service that suits this property.
(boolean) (Optional) Whether to enable the LED display or not.
(boolean) (Optional) Whether to enable the child lock or not.
If you have an Android device that supports Mass Storage mode, you can easily find these properties using the below instructions. If you don't, there are some alternate methods at codetheweb/tuyapi (you're looking for the uuid and localKey values).
/Android/data/com.goldair.smart/cache/1.abj and open it in a text editor that can handle large files.uuid and localKey properties.
uuid (eg: 1234567890) to device_id, and the value of localKey (eg: 1234567890) to local_key in your configuration.yaml file.Repeat for as many heaters as you have to set up.
This platform needs specs! Once they're written I'm considering submitting it to the HA team for inclusion in standard installations. Please report any issues and feel free to raise pull requests.
It would be great to support changing of the power level and setting of the timer via the HA interface and automation. Any ideas on how to do this would be much appreciated; I suspect it may end up being a combination of multiple platform types.
This was my first Python project, so feel free to correct any conventions or idioms I got wrong.
All I did was write some code. None of this would have been possible without: