Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Rain Last Hour #191

Open
thomas70 opened this issue Sep 23, 2022 · 3 comments
Open

Rain Last Hour #191

thomas70 opened this issue Sep 23, 2022 · 3 comments
Labels
enhancement New feature or request

Comments

@thomas70
Copy link

New Feature

Would really like a rain_last_hour sensor

Additional context

No response

@thomas70 thomas70 added the enhancement New feature or request label Sep 23, 2022
@briis
Copy link
Owner

briis commented Sep 24, 2022

Not that easy to do correctly, as the UDP API only delivers last minutes rain accumulation.
It can be done manually by creating a few helpers and an automation, if you need it now.

@pgneir
Copy link

pgneir commented Jan 1, 2023

I too wanted periodic totals. Like last 4 hours, last 24 hours, last week, last month. The daily totals weren't useful for me. What I want is each one minute rain accumulation from the hub. Can I assume that I can get that by dividing your rain_rate by 60??
I solved my problem by using the SQL integration. I can get everything I want. Here is an example:
"select round(sum(state)/60,2) as rain_24 from states where entity_id='sensor.tempest_st_nnnnnnnn_rain_rate' and last_updated > datetime('now','-24 hours');"

@briis
Copy link
Owner

briis commented Jan 2, 2023

Can I assume that I can get that by dividing your rain_rate by 60??

Yes you can. The device reports the last minutes accumulated rain as the raw data, and that is then multiplied to get rain_rate per hour.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

3 participants