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 88517ad
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 50 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
41 changes: 0 additions & 41 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 Expand Up @@ -156,35 +147,3 @@
type: count
start: '{{ now().replace(hour=0, minute=0, second=0) }}'
end: '{{ now() }}'

- platform: history_stats
name: watering_rasen_today
entity_id: sensor.watering_rasen_amount
state: "on"
type: time
start: "{{ now().replace(hour=0, minute=0, second=0) }}"
end: "{{ now() }}"

- platform: history_stats
name: watering_hecke_today
entity_id: sensor.watering_hecke_amount
state: "on"
type: time
start: "{{ now().replace(hour=0, minute=0, second=0) }}"
end: "{{ now() }}"

- platform: history_stats
name: watering_blumenbeet_today
entity_id: sensor.watering_blumenbeet_amount
state: "on"
type: time
start: "{{ now().replace(hour=0, minute=0, second=0) }}"
end: "{{ now() }}"

- platform: history_stats
name: watering_rasen_klein_today
entity_id: sensor.watering_rasen_klein_amount
state: "on"
type: time
start: "{{ now().replace(hour=0, minute=0, second=0) }}"
end: "{{ now() }}"
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: daily
unique_id: rainfall_day
rain_week:
source: sensor.rainfall_today
cycle: weekly
Expand Down

0 comments on commit 88517ad

Please sign in to comment.