Skip to content

Commit

Permalink
Add availability to template
Browse files Browse the repository at this point in the history
  • Loading branch information
golles committed Sep 11, 2023
1 parent 35d9b69 commit 95fc448
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions packages/climate.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -151,6 +151,16 @@ template:
{% else %}
{{ temps[0] ~ " - " ~ temps[-1] ~ " °C" }}
{% endif %}
availability: >-
{{
states.climate
| selectattr('attributes.current_temperature', 'defined')
| map(attribute="attributes.current_temperature")
| list
| count
| default(0)
> 2
}}
automation:
- id: tado_auto_home_and_away_mode
Expand Down

0 comments on commit 95fc448

Please sign in to comment.