Hive Integration

Hi @Khole - Since upgrading to HA 100 I’ve lost the battery sensors for my hive devices (thermostat, window/door/motio etc) and also the sensor_hive_hub_status… Is there something I need to change or update to bring them back?

Hi @sooty

I missed some changes in the custom component sensor file.

Please could you download the updated file from GitHub and that should work now.

HI @Khole,

Many thakns for your quick reply and update.

I have just downloaded the latest files from github but still seem to be having issues.
Log as follows:

Log Details (ERROR)
Fri Oct 11 2019 22:52:34 GMT+0100 (British Summer Time)
Error while setting up platform hive
Traceback (most recent call last):
  File "/usr/src/homeassistant/homeassistant/helpers/entity_platform.py", line 150, in _async_setup_platform
    await asyncio.wait_for(asyncio.shield(task), SLOW_SETUP_MAX_WAIT)
  File "/usr/local/lib/python3.7/asyncio/tasks.py", line 442, in wait_for
    return fut.result()
  File "/usr/local/lib/python3.7/concurrent/futures/thread.py", line 57, in run
    result = self.fn(*self.args, **self.kwargs)
  File "/config/custom_components/hive/sensor.py", line 50, in setup_platform
    devs.append(HiveSensorEntity(session, dev))
  File "/config/custom_components/hive/sensor.py", line 59, in __init__
    super().__init__(hive_session, hive_device)
TypeError: object.__init__() takes exactly one argument (the instance to initialize)

Hi @Khole, Thanks for the quick response. Sadly applying the latest commit from Github (340537b) did not fix this for me. I’m not sure if it helps, but on further investigation, all of the hive sensors now appear unavailable…

Hi @sooty & @GuruPG

I have updated the files and retested and it now seems to be bringing in all the sensors.

Please could you pull the latest from GitHub and retry?

1 Like

Hi @Khole

Just updated and all is now working perfectly.

Many thanks for the quick response and fix.

I’m also supper excited to give the boost a try.

Many thanks

Thanks @GuruPG for confirming it works.

Have fun with the boost function.

@Khole - all good now! Thanks for fixing.

After running hass.io on a pi for a while, I’ve now upgraded to a NUC style box and I’m running hass in docker which is grand apart from the config folder no longer exists.

My configuration.yaml etc are all located in /docker/volumes/hassio/homeassistant/, so the path “config/custom_conponents/hive” is now “/homeassistant/custom_conponents/hive” which is why I’m presuming the custom component doesn’t work???

Cheers.

@rendili which tutorial is correct???

Do I copy the infomation in Post 1 and create seperate folders for each element.

Or

Do I just create one /hive folder and dump all the files from the link below into it?

P.S. I am new to Hass.io

The latter used to work for me, but I now use HACS to install it

Thanks for the update, I’ll check for it on HACS…

How do I create the card to allow me to Boost the heating?
I had it on the version from Post 1 but after adding the newer files it just said entitiy not found.

You need to add is as a custom repo to HACS:

https://github.com/Rendili/hive-for-home-assistant/tree/master/custom_components/hive

I use this card for both my thermostats (it’s already in HACS):

Thank you @Holdestmade!
Would you mind sharing the code for one of your cards in the picuture?

I cant see a climate entity in my unused items, so not sure how to call the Hive controller using the card.

Sure, no problem see below. Not sure why you haven’t got a climate entity, it can’t be setup correctly, did you add this to your conguration.yaml:

hive:
  username: YOUR_USERNAME
  password: YOUR_PASSWORD

type: vertical-stack
cards:
  - type: custom:simple-thermostat
    entity: climate.downstairs_heating
    step_size: 1
    sensors:
      - entity: sensor.downstairs_heating_state
        name: State
      - entity: sensor.utility_temperature
        name: Utility
      - entity: sensor.utility_temperature
        name: Kitchen
      - entity: sensor.utility_temperature
        name: Toilet
      - entity: sensor.living_room_temperature
        name: Living Room
      - entity: sensor.downstairs_current_temperature
        name: Hall
      - entity: sensor.outside_temperature
        name: Outside

  - type: custom:simple-thermostat
    entity: climate.upstairs_heating
    step_size: 1
    sensors:
      - entity: sensor.upstairs_heating_state
        name: State
      - entity: sensor.upstairs_current_temperature
        name: Bedroom
      - entity: sensor.ensuite_sensor
        name: Ensuite
      - entity: sensor.bathroom_sensor
        name: Bathroom
      - entity: sensor.ensuite_sensor
        name: Landing
      - entity: sensor.ensuite_sensor
        name: Alices Room
      - entity: sensor.ensuite_sensor
        name: Bens Room
      - entity: sensor.ensuite_sensor
        name: Office

@Holdestmade
Awesome thank you!

Yes I have added my username / password to the configuration.yaml
Under the Entity Management I can see all my Hive devices (30+… I went Bulb Crazy)

Climate.Heating shows as unavailable… it was working using the old method of installing in Post 1.

@Holdestmade or anyone else

Got any good ideas for cards for controlling hot water?

I’m also looking for the same. A version of the simple thermostat card would be great

Hi all,

I have just seen that HA 101 has been released which includes support for hive radiator valves.

I’ve updated to 101.2 and the climate element of my Hive integration no longer works. I’ve attached my HA log for info.

Any suggestions for a workaround or fix?