From af11638717f5c46de9c3014adc19ab84c874f1f5 Mon Sep 17 00:00:00 2001 From: "@TribuneX" Date: Thu, 4 Jul 2024 22:19:22 +0200 Subject: [PATCH] feat: remove deprecated rainfall sensors --- automation/garden_watering.yaml | 3 --- includes/sensors.yaml | 9 --------- includes/template.yaml | 6 ------ includes/utility_meter.yaml | 4 ++++ 4 files changed, 4 insertions(+), 18 deletions(-) diff --git a/automation/garden_watering.yaml b/automation/garden_watering.yaml index 76bef38..c69d7ce 100644 --- a/automation/garden_watering.yaml +++ b/automation/garden_watering.yaml @@ -10,9 +10,6 @@ - mon - thu - sat - - condition: numeric_state - entity_id: sensor.rain_last_day - below: 5 - condition: numeric_state entity_id: sensor.openweathermap_forecast_precipitation below: 5 diff --git a/includes/sensors.yaml b/includes/sensors.yaml index 80e5ee8..5b57d28 100644 --- a/includes/sensors.yaml +++ b/includes/sensors.yaml @@ -108,15 +108,6 @@ display_options: - 'date_time' -- platform: statistics - name: "Rain last day" - entity_id: sensor.rain_last_hour - state_characteristic: total - max_age: - hours: 24 - sampling_size: 24 - precision: 0 - - platform: integration source: sensor.watering_rasen name: watering_rasen_amount diff --git a/includes/template.yaml b/includes/template.yaml index 44698dd..a935645 100644 --- a/includes/template.yaml +++ b/includes/template.yaml @@ -1,12 +1,6 @@ - trigger: - platform: time_pattern minutes: "0" # every hour - sensor: - - name: "Rain last hour" - state: "{{ states('sensor.openweathermap_rain') }}" - unit_of_measurement: "ml" - attributes: - updated_at: "{{ now() }}" - sensor: - name: "Rainfall today" diff --git a/includes/utility_meter.yaml b/includes/utility_meter.yaml index 42a9009..cd0c4f6 100644 --- a/includes/utility_meter.yaml +++ b/includes/utility_meter.yaml @@ -1,3 +1,7 @@ +rain_day: + source: sensor.rainfall_today + cycle: day + unique_id: rainfall_day rain_week: source: sensor.rainfall_today cycle: weekly