Danfoss Ally TRV set external temperature with deconz integration

I cant get this to work :-/ (firmware on ally is 1.02)
I can see ‘externalsensortemp’ on my external sensor , but TRV dont seems to react on it ?
how often does it check the external temp?

This feature is not available for your old firmware.
You need to be on 1.08 for this to work.
Upgrade your trvs first.

ahh ok !

I ssh into my HA Blue

and the firmware file is in share dir
do you know why it wont copy ?


image

Hi
Hope you can help me.

Entity is displayed as an automation. Shouldn’t it be a .climate?
The only thing i can do is turn entety on and off.

This is from automationen config

trigger:
  - platform: state
    entity_id: sensor.baduptempsensor
condition:
  - condition: numeric_state
    entity_id: sensor.baduptempsensor
    above: '0'
action:
  - service: deconz.configure
    data:
      entity: climate.thermostat_32
      field: /config
      data: '{ "externalsensortemp": {{(trigger.to_state.state|float*100)|int}} }'
mode: single
id: '1637945045829'
alias: autBadUpTemp
description: ''

this is automation that pushes external sensor temperature to climate.danfoss trv. You want it working all the time with sensor that makes a reading every 30 minutes.

Not getting this to work it says the version of my trv is 01.12.0008 01.12, is that the correct one?

well, it would be best to upgrade to 1.18 and use this one
https://community.home-assistant.io/t/danfoss-ally-1-18-set-external-temperature-to-radiator-covered-trv/380219
The new one requires to have firmware 1.18 and attribute Radiator Covered set to true.
It works much better with this attribute and is actually using external sensor temperature directly (not as average with internal sensor as with previous firmwares).

How do I set it to true?

with deconz.
find this attribute in thermostat zigbee cluster
https://github.com/dresden-elektronik/deconz-rest-plugin/wiki/How-to-read-Clusters
and change it
https://www.dresden-elektronik.de/funk/software/deconz.html?file=files/dresden-elektronik/content/downloads/dokumente/funktechnik/deCONZ-BHB-en.pdf#page21
look for “Writing attributes”
Sorry, you need to dig deeper into zigbee to learn this.

I think I was able to to set the parameter and the update said done. But when looking in the phozcon interface it still says 01.12.0008 01.12 where do you look at the version number?

Phoscon for firmware 1.18 will show you this in Devices->Sensors

Attribute Radiator Covered is there in previous firmwares but it is doing nothing at all.

Ok so i removed it and added it again now it says its on 18.

Question about the external sensor. Should i not see that as a sensor i homeassiant i only see it in deconz attribute?
But not reflecting the thermostat temp is that how it going to be?


image

HA will show you temperature on TRV. But don’t worry. External temp is working fine.
One of mine is currently at 31 but room temperature is at 22.9 so the valve is still open.
You can expose valve opening with sensor template like this

value_template: "{{ state_attr('climate.living_room_trv', 'valve')|int }}"

Tried this but did not work:

Can you please share yours?

I have it in old template sensor syntax like this

  - platform: template
    sensors:
      living_room_trv_valve:
        friendly_name: "Living room TRV valve"
        value_template: "{{ state_attr('climate.living_room_trv', 'valve')|int }}"
        unit_of_measurement: "%"
        device_class: power_factor
        icon_template: >-
            {%set val= state_attr('climate.living_room_trv', 'valve')|int %}
            {%if val < 15 %}
              hass:numeric-0-circle-outline
            {%elif val < 25 %}
              hass:numeric-1-circle-outline
            {%elif val < 45 %}
              hass:numeric-2-circle-outline
            {%elif val < 65 %}
              hass:numeric-3-circle-outline
            {%elif val < 85 %}
              hass:numeric-4-circle-outline
            {%else%}
              hass:numeric-5-circle-outline
            {%endif%}

Thank you for youre blueprint, working perfect :slight_smile:

I’m trying to get window information from deconz, is there some place to see which attributes there are available in homeassistant and ideally how to call them. How did you find out that the valve attribute was possible to call in home assistant?

Just check entity attributes in Developer tools → States.
Window open feature is avaible in deconz API but is not exposed in climate entity. You could make a rest call sensor and pull it from there but why would you want that? If you need to know whether window is actually open you’d better use window/door sensor for this. Much much more reliable :wink:

This is brilliant! So easy to setup. Thanks!

Please use this one if you have firmware 1.18 or something newer
https://community.home-assistant.io/t/danfoss-ally-1-18-set-external-temperature-to-radiator-covered-trv/380219

1 Like

Looks great. I’ll update the firmware and try it out :+1:.