Last active
January 25, 2025 14:51
-
-
Save drvenabili/bd40e4cfe058d7d97905c62d845e8afe to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
blueprint: | |
# based on luka6000's https://gist.github.com/luka6000/f5b80b9829bbc7c613eac6e909caea83 | |
name: Danfoss Ally TRV 1.18 set external temperature ALSO SET radiatorcovered = true | |
description: Set external measured temperature to Danfoss Ally TRV firmware 1.18 with Radiator Covered = true | |
domain: automation | |
input: | |
danfoss_trv: | |
name: Danfoss TRV | |
description: This is Danfoss Ally climate TRV entity with firmware 1.18 and Radiator Covered = true | |
selector: | |
entity: | |
domain: climate | |
temperature_sensor: | |
name: Temperature sensor in Celsius | |
description: This sensor acts as external temperature sensor for your Ally | |
selector: | |
entity: | |
domain: sensor | |
device_class: temperature | |
automation_entity: | |
name: Automation entity_id | |
description: This automation entity_id (only low case, underscores) | |
default: "automation.new_automation" | |
selector: | |
entity: | |
domain: automation | |
variables: | |
temperature_sensor: !input temperature_sensor | |
trigger: | |
- platform: state | |
entity_id: !input temperature_sensor | |
id: trig-temp | |
- platform: state | |
entity_id: !input automation_entity | |
attribute: last_triggered | |
for: | |
hours: 0 | |
minutes: 30 | |
seconds: 0 | |
condition: | |
- condition: numeric_state | |
entity_id: !input temperature_sensor | |
above: '0' | |
action: | |
- choose: | |
- conditions: | |
- condition: trigger | |
id: trig-temp | |
sequence: | |
- choose: | |
- conditions: | |
- condition: template | |
value_template: >- | |
{{ (utcnow()|as_timestamp - | |
this.attributes.last_triggered|as_timestamp)/60 <5 }} | |
sequence: | |
- delay: | |
minutes: >- | |
{{ 5 - (utcnow()|as_timestamp - | |
this.attributes.last_triggered|as_timestamp)/60 }} | |
default: [] | |
default: [] | |
- delay: | |
seconds: '{{ range(1, 21)|random }}' | |
- service: deconz.configure | |
data: | |
entity: !input danfoss_trv | |
field: /config | |
data: | |
externalsensortemp: "{{ (states(temperature_sensor)|float * 100)|int }}" | |
radiatorcovered: true | |
mode: restart |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment