1
0

Add citrus automations

This commit is contained in:
Przemek Grondek 2024-05-07 23:44:30 +02:00
parent c5e264fec9
commit 48c4441893
2 changed files with 35 additions and 0 deletions

View File

@ -0,0 +1,24 @@
- 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"

View File

@ -392,3 +392,14 @@ cover:
entities:
- cover.office_blind_left
- cover.office_blind_right
plant:
citrus:
sensors:
temperature: sensor.citrus_sensor_temperature
moisture: sensor.citrus_sensor_moisture
brightness: sensor.citrus_sensor_illuminance
conductivity: sensor.citrus_sensor_conductivity
battery: sensor.citrus_sensor_battery
min_moisture: 30
max_moisture: 50