Hive Integration

sorry @Steveuk I cant get it right like yours. Is it possible if you could please share the code?
thanks.

Yeah Iā€™m not sure if this has copied and pasted correctly as itā€™s so hard from my phone on the HA app.
If not Iā€™ll re do it later on my laptop when Iā€™m home.
Should come through ok if you stick it in a manual card.

type: vertical-stack
cards:
  - type: 'custom:simple-thermostat'
    entity: climate.home
    sensors:
      - entity: sensor.home_boost
        name: Boost is
      - entity: sensor.home_boost
        attribute: Boost ends in
        name: Boost ends in
    control: false
  - type: horizontal-stack
    cards:
      - type: 'custom:button-card'
        tap_action:
          action: toggle
        entity: script.boost
        icon: 'mdi:fire'
        name: Boost 30
        state:
          - operator: template
            value: |
              [[[return (states["sensor.home_boost"].state === 'ON')]]]
            styles:
              icon:
                - color: 'rgb(255,119,0)'
          - value: 'on'
            styles:
              card:
                - filter: opacity(100%)
              icon:
                - color: 'rgb(255,119,0)'
        style: |
          ha-card:hover {
            transform: scale(1.01);
            box-shadow: 0 0 10px;
            }
      - type: 'custom:button-card'
        tap_action:
          action: toggle
        entity: script.1611181589757
        icon: 'mdi:fire'
        name: Boost 45
        state:
          - operator: template
            value: |
              [[[return (states["sensor.home_boost"].state === 'ON')]]]
            styles:
              icon:
                - color: 'rgb(255,119,0)'
          - value: 'on'
            styles:
              card:
                - filter: opacity(100%)
              icon:
                - color: 'rgb(255,119,0)'
        style: |
          ha-card:hover {
            transform: scale(1.01);
            box-shadow: 0 0 10px;
            }
      - type: 'custom:button-card'
        tap_action:
          action: toggle
        entity: script.1611181628914
        icon: 'mdi:fire'
        name: Boost 60
        state:
          - operator: template
            value: |
              [[[return (states["sensor.home_boost"].state === 'ON')]]]
            styles:
              icon:
                - color: 'rgb(255,119,0)'
          - value: 'on'
            styles:
              card:
                - filter: opacity(100%)
              icon:
                - color: 'rgb(255,119,0)'
        style: |
          ha-card:hover {
            transform: scale(1.01);
            box-shadow: 0 0 10px;
            }
3 Likes

thank you it worked perfectly. Here it is: image

However, I dont have the card that states ā€œoperationā€ in your lovelace?

And also is it possible to change the font of this particular thermostat card? or is it all driven by themes?

Also I suppose there is an issue with your code, as when I pressed boost 45 all the rest of the boost turned orange. I would have expected only boost 45 to turn to orange?

Ah yeah sorry I forgot I made mine compact.
In the code change line control: false to true then your should get them.
As for all the buttons lighting up I tried doing that but I couldnā€™t figure out how to do it then forgot.
The problem is all 3 buttons report the state of 1 sensor so I think i need to create another 2 sensors then link the other buttons to that.

thanks for that.

I suppose an if statement would do the trick.

Iā€™m still learning all this so Iā€™ll take your word for it :grin:
If you get that working let me know.

1 Like

Still having no luck, no idea why Iā€™ve not got my climate showing. Iā€™ve installed the custom component and then set up integration via UI but no luck. No idea what Iā€™m missingā€¦

What version of home assistant are you running?

Apparently, Iā€™m an idiot and I just didnā€™t have it up to dateā€¦

Is anyone experiencing hive outage on HA using this custom component? I find hive on my HA randomly appearing as unavailable however after restart it re appears again.

@Khole ?

@bachoo786 No I have not experienced any issues with my hive integration did you have any errors in the logs?

no errors in the log. so not sure really

I raised an issue as I had a lot of errors in the log and random 'stats and TRVs going offline, but it was closed down.

I uninstalled it and installed the standard Hive integration, which was good for a few weeks, but tonight the same problem has reared its ugly head.

Iā€™ve uninstalled the standard integration now, to see if the problem comes back with just a standard Hive setup and as I really donā€™t know what else to do.

1 Like

I was having a similar problem, suddenly loosing all my Hive devices and entities in Home Assistant a week or two ago. Like you, one of my TRVs had been frequently going offline and so Iā€™d been uninstalling and re-installing it. When I checked my Hive app today, I noticed that I had a ā€˜ghostā€™ offline duplicate TRV showing amongst its devices. I contacted Hive support and after some false attempts they were able to remove this offline/duplicate device for me. All my other Hive devices immediately then re-loaded when I reinstalled the Home Assistant integration. So I think my problem lay at the Hive end of things.

2 Likes

Well, not even 24 hours later and Iā€™ve got a red light on one of my receivers and random TRVs showing that theyā€™re offline.

Iā€™ve spent nearly an hour trying to get them back online but itā€™s having none of it. So, Iā€™ll be wasting time tomorrow trying to get to the bottom of it with Hive. Joy.

Hi @DragonSorcerer did you manage to work this out? I am trying to use a script to turn the heating on and increase the temperature by 2 degrees.

This is what I have,

data:
        entity_id: climate.thermostat
        time_period: "01:00:00"
        temperature: '{{ (states("sensor.thermostat_current_temperature")) + 2 }}'

@bachoo786
No, I gave up on the boost and went for a simple switch on the heatingā€¦

service: climate.set_temperature
target:
  entity_id: climate.thermostat_1
data_template:
  temperature: '{{ states("input_number.heatingtargettemp") }}'

do we need to switch over to the official integration to have support for hive.boost_heating_on or will the current version of the custom component be fine ?

Now that 2021.5 is released we will look to release a new custom component version with the updated services.

Thank you for that. Do you think it makes sense to switch over from custom to official or is there not much benefit?

Thanks again