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

25 lines
817 B
YAML

- 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"