Skip to content

Commit

Permalink
feat: remove deprecated rainfall sensors
Browse files Browse the repository at this point in the history
  • Loading branch information
TribuneX committed Jul 4, 2024
1 parent 39767fd commit af11638
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 18 deletions.
3 changes: 0 additions & 3 deletions automation/garden_watering.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
9 changes: 0 additions & 9 deletions includes/sensors.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
6 changes: 0 additions & 6 deletions includes/template.yaml
Original file line number Diff line number Diff line change
@@ -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"
Expand Down
4 changes: 4 additions & 0 deletions includes/utility_meter.yaml
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
rain_day:
source: sensor.rainfall_today
cycle: day
unique_id: rainfall_day
rain_week:
source: sensor.rainfall_today
cycle: weekly
Expand Down

0 comments on commit af11638

Please sign in to comment.