Danfoss Ally TRV set external temperature with deconz integration

This is blueprint automation to inject external sensor temperature to Danfoss Ally TRV. This blueprint uses deconz integration. Please use properly throttled temperature sensor since this should be updated not more often than 30minutes according to Danfoss specs.

Open your Home Assistant instance and show the blueprint import dialog with a specific blueprint pre-filled.

blueprint:
  name: Danfoss Ally TRV set external temperature
  description: Set external measured temperature to Danfoss Ally TRV
  domain: automation
  input:
    danfoss_trv:
      name: Danfoss TRV
      description: This is Danfoss Ally climate TRV entity
      selector:
        entity:
          domain: climate
    temperature_sensor:
      name: Temperature sensor
      description: This sensor act as external temperature sensor for your Ally
      selector:
        entity:
          domain: sensor
          device_class: temperature

trigger:
  - platform: state
    entity_id: !input temperature_sensor

condition:
  - condition: numeric_state
    entity_id: !input temperature_sensor
    above: '0'

action:
  - service: deconz.configure
    data:
      entity: !input danfoss_trv
      field: /config
      data: '{ "externalsensortemp": {{(trigger.to_state.state|float*100)|int}} }'
mode: single