hugokernel / esphome-weather-station

ESPHome version of Elektor weather station v2
MIT License
280 stars 19 forks source link

Rain pr hour #8

Closed Tntdruid closed 1 year ago

Tntdruid commented 1 year ago

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.

hugokernel commented 1 year ago

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
Tntdruid commented 1 year ago

Thanks for the help.