1
0
ansible-home-assistant/configuration/automations/balcony-plants.yaml

25 lines
817 B
YAML
Raw Normal View History

2024-05-07 21:44:30 +00:00
- id: balcony-warning-citrus
alias: "[Balcony](Citrus) Warning about cold weather"
mode: single
trigger:
- platform: time
at: "20:00:00"
action:
- service: weather.get_forecasts
metadata: { }
data:
type: daily
target:
entity_id: weather.home
response_variable: forecast
- choose:
- conditions:
- condition: template
value_template: "{{ forecast['weather.home'].forecast[1].templow < 5.1 }}"
sequence:
- service: notify.mobile_app_iphone
metadata: { }
data_template:
title: "Low temperature tomorrow"
message: "Tomorrow's temperature is too low for citrus (Low {{ forecast['weather.home'].forecast[1].templow }}). Take it back to home"