hugokernel/esphome-weather-station

Rain pr hour

Tntdruid opened this issue · 2 comments

Any way to add that?

  - platform: integration
    name: "rainfall per hour"
    id: rain_per_h
    time_unit: h
    unit_of_measurement: 'mm'
    icon: 'mdi:weather-rainy'
    sensor: rain_gauge

Does not work.

Hi,

The simplest way to do that is to use the copy integration and use the result from the rain_per_min sensor like that:

binary_sensor:
  - platform: copy
    source_id: rain_per_min
    name: "${friendly_name} rainfall per hour"
    filters:
      - multiply: 60

Thanks for the help.