Hive TRV Target Temp Not Available in Automations

Hey All,

I’ve been using HAOS on a Raspberry pi for about 3 weeks, so just getting started but getting the hang of things. I need some help automating my Hive TRV’s.

The issue I’m facing: Hive TRV’s do not fully close radiator vale when target temp is reached

Proposed solution: Use HA to detect when current temperature exceeds target temperature and turn the TRV to off, ensuring the valve closes fully.

Sounds simple enough. My first thought was write an automation like so:
When TRV current temp changes, and is above TRV target temp, set TRV to off

However, I cannot find a way to ‘grab’ the target temp of the TRV to put it into the ‘above’ field of the automation’s trigger section. How can I expose this data so that it’s available for use in automations?

Thanks in advance!

It should be available as an attribute in the climate entity and you can use that here:

temperature is the set temp
current_temperature is the current temp

  trigger:
    - platform: numeric_state
      entity_id: climate.kitchen
      attribute: temperature
      above: 23

I use the hive custom component and that has separate sensors available for both

Thanks for the quick reply!

The Current Temperatures is available to select as an attribute, but I can only ‘set’ a new value here - I can’t actually ‘pull’ or access the data to use it as a condition - See pic

Ideally I’d have
Entity: Sun Room
Attribute: Current Temperature
Above: Target Temperature

The ‘above’ field only allows numerical input in the visual editor. I don’t want to hard code the value, I want it to pull form the current target temp set in the hive app. I’ve tried various lines of code in the automation yaml editor but none seem to provide me with the numerical value for the target temp of the unit. Any ideas what I need to point to in order to get this numerical value?

I dont use the GUI so might not work but try adding this in value template

{{ state_attr('climate.sun_room', 'current_temperature') > state_attr('climate.sun_room', 'temperature') }}

and remove the attribute from the drop down

You’ll need to check if climate.sun_room is the correct entity_id

climate.sun_room is the correct entity_id

when I use your code in the value template and remove the attribute I get the error: “Message malformed: must contain at least one of below, above.”

Presumably because the above and below fields are both empty

You need to use a template trigger, not the numeric_state trigger

Ahhh okay so like this:

My question then would be: How often is this going to look for changes? Every time the TRV changes its current temp? I don’t want it to be polling continuously in the background if possible

Yes, I think it is on a state change

Now working as expected - Thank you!

Just digging this up as it seems closest to my question.

I want the HIVE TRV so set to off when my son’s phone leaves the zone ‘home’ and then set it to 20 degrees when he re-enters the zone.

Do you have any suggestions please?