Fix broken Danfoss Ally TRV automation
Somehow I used the wrong variables last time around...
This commit is contained in:
parent
ba83781b0d
commit
5624a6002b
1 changed files with 7 additions and 5 deletions
|
|
@ -2,11 +2,11 @@ blueprint:
|
||||||
author: runejuhl
|
author: runejuhl
|
||||||
homeassistant:
|
homeassistant:
|
||||||
min_version: 2025.2.4
|
min_version: 2025.2.4
|
||||||
name: Radiator external temperature sensor control (0.0.2-alpha)
|
name: Radiator external temperature sensor control (0.0.3-alpha)
|
||||||
description: |-
|
description: |-
|
||||||
## Radiator external temperature sensor control
|
## Radiator external temperature sensor control
|
||||||
|
|
||||||
Version `0.0.2-alpha`.
|
Version `0.0.3-alpha`.
|
||||||
|
|
||||||
Sets the `external_measured_room_sensor` value on Danfoss Ally TRV, enabling
|
Sets the `external_measured_room_sensor` value on Danfoss Ally TRV, enabling
|
||||||
the TRV to adjust the valve based on an external sensor.
|
the TRV to adjust the valve based on an external sensor.
|
||||||
|
|
@ -53,9 +53,11 @@ conditions:
|
||||||
# cases.
|
# cases.
|
||||||
- condition: template
|
- condition: template
|
||||||
value_template: |-
|
value_template: |-
|
||||||
{% if state_attr(temperature_entity, 'temperature') is none %}
|
{# if the temperature entity doesn't have a state, e.g. if it's powered off #}
|
||||||
|
{% if states(temperature_entity) is none %}
|
||||||
False
|
False
|
||||||
{% elif state_attr(climate_entity, 'external_measured_room_sensor') == None %}
|
{# if the radiator has been unavailable #}
|
||||||
|
{% elif state_attr(climate_entity, 'external_measured_room_sensor') is none %}
|
||||||
True
|
True
|
||||||
{% else %}
|
{% else %}
|
||||||
{{
|
{{
|
||||||
|
|
@ -72,7 +74,7 @@ actions:
|
||||||
# state.
|
# state.
|
||||||
external_temperature: |-
|
external_temperature: |-
|
||||||
{% if (trigger.id is not defined) or (trigger.to_state.state in ['unavailable', 'unknown']) %}
|
{% if (trigger.id is not defined) or (trigger.to_state.state in ['unavailable', 'unknown']) %}
|
||||||
{{ state_attr(temperature_entity, 'temperature') }}
|
{{ states(temperature_entity) }}
|
||||||
{% else %}
|
{% else %}
|
||||||
{{ trigger.to_state.state | float }}
|
{{ trigger.to_state.state | float }}
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue