Skip to content

Commit

Permalink
ADD: climate information
Browse files Browse the repository at this point in the history
  • Loading branch information
panhans committed Jan 13, 2025
1 parent 9742c19 commit d15eee9
Showing 1 changed file with 12 additions and 3 deletions.
15 changes: 12 additions & 3 deletions blueprints/automation/panhans/advanced_heating_control.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ blueprint:
**Version**: 5.2.10
**Version**: 5.2.11
**Help & FAQ**: [Advanced Heating Control](https://community.home-assistant.io/t/advanced-heating-control/469873)
Expand Down Expand Up @@ -3209,8 +3209,17 @@ variables:
{{ messages }}
thermostat_temperatures: >
{{ input_trvs | expand | map(attribute='attributes.current_temperature') | list }}
climates_information: >
{% set n = namespace(dict=[]) %}
{% for valve in input_trvs %}
{% set temperature = state_attr(valve,'temperature') %}
{% set current_temperature = state_attr(valve,'current_temperature') %}
{% set state = states(valve) %}
{% set n.dict = n.dict + [{'entity_id': valve, 'state': state, 'temperature': temperature, 'current_temperature': current_temperature}] %}
{% endfor %}
{{ n.dict }}
conditions:
- condition: or
Expand Down

0 comments on commit d15eee9

Please sign in to comment.