hiveheating.yaml (48.0 KB)
Hi guys,
Ah, interesting, thanks for link, I thought I had done a full search for Hive here, but it looks like I missed that post, and I guess wasted my time on this.
Nevertheless, I have attached my custom component as it is so far and it would be great if you could try it out.
It contains sensors and a climate device for the thermostat and I have not worked out yet if you can have those in one file so they all integrate in to component, so at the moment if you would like the sensors then copy the file to “/custom_components/sensor” if you would like the thermostat copy to “/custom_components/climate” (you can do both)
the file will also need to be rename to “hiveheating.py”
you will then need to add to your configuration file for the thermostat :
climate:
- platform: hiveheating
username: YourHiveUserName
password: YourHivePassword
if you would like the sensors then add :
sensor:
- platform: hiveheating
username: YourHiveUserName
password: YourHivePassword
there are also options for how often it should get new data from the Hive API and which devices to add. if you don’t add the devices option you get all devices, if you add the devices option you then need to include each device you would like added.
I am running with the following configuration, which does mean that it calls the API for more data twice, one for the sensor and one for the climate, until I find a way of integrating them all in to one component :
sensor:
- platform: hiveheating
username: YourHiveUserName
password: YourHivePassword
minutes_between_updates: 5
devices:
- hive_thermostat_batterylevel
- hive_heating_currenttemperature
- hive_heating_targettemperature
- hive_heating_state
- hive_heating_mode
- hive_heating_boost
- hive_hotwater_mode
- hive_hotwater_state
- hive_hotwater_boost
climate:
- platform: hiveheating
username: YourHiveUserName
password: YourHivePassword
minutes_between_updates: 5
devices:
- hive_heating
After adding to a group configuration as below :
HiveHeating:
name: Hive Heating
entities:
- sensor.hive_heating_mode
- sensor.hive_heating_boost
- sensor.hive_heating_state
- sensor.hive_hot_water_mode
- sensor.hive_hot_water_boost
- sensor.hive_hot_water_state
- sensor.hive_target_temperature
- sensor.hive_current_temperature
- sensor.hive_thermostat_battery_level
- climate.hive_heating
I get the following in Home Assistant: