From 48c4441893b6fcd516760558d1d8e76af1e12769 Mon Sep 17 00:00:00 2001 From: Przemek Grondek Date: Tue, 7 May 2024 23:44:30 +0200 Subject: [PATCH] Add citrus automations --- configuration/automations/balcony-plants.yaml | 24 +++++++++++++++++++ configuration/configuration.yaml | 11 +++++++++ 2 files changed, 35 insertions(+) create mode 100644 configuration/automations/balcony-plants.yaml diff --git a/configuration/automations/balcony-plants.yaml b/configuration/automations/balcony-plants.yaml new file mode 100644 index 0000000..1979871 --- /dev/null +++ b/configuration/automations/balcony-plants.yaml @@ -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" diff --git a/configuration/configuration.yaml b/configuration/configuration.yaml index 3fef29d..39de8d4 100644 --- a/configuration/configuration.yaml +++ b/configuration/configuration.yaml @@ -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