Skip to content

Commit

Permalink
use new weather.get_forecasts (with an s) for HA 2023.12
Browse files Browse the repository at this point in the history
  • Loading branch information
chunkysteveo authored Dec 6, 2023
1 parent fd0b4f8 commit aa6d855
Showing 1 changed file with 1 addition and 15 deletions.
16 changes: 1 addition & 15 deletions ha-configuration.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ template:
platform: time_pattern
minutes: "/15"
action:
- service: weather.get_forecast
- service: weather.get_forecasts
target:
entity_id: weather.home
data:
Expand All @@ -14,20 +14,6 @@ template:
- name: Weatherman Data Tag
state: "{{ now().isoformat() }}"
attributes:
battery_strength_0000028329e608ff: >
{% if has_value('sensor.0000028329e608ff_battery') %}
{% if states('sensor.0000028329e608ff_battery') | int >= 90 %}
battery-high
{% elif states('sensor.0000028329e608ff_battery') | int >= 60 %}
battery-medium
{% elif states('sensor.0000028329e608ff_battery') | int >= 30 %}
battery-low
{% else %}
battery-outline
{% endif %}
{% else %}
battery-off-outline
{% endif %}
moon_phase: >
{% set cond_moon = state_attr('sensor.moon_phase', 'icon') %}
{{ cond_moon.split('mdi:')[1] }}
Expand Down

0 comments on commit aa6d855

Please sign in to comment.