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

Battery drainage (data recorded too often in Home Assistant) #81

Open
RexioGit opened this issue Nov 14, 2024 · 4 comments
Open

Battery drainage (data recorded too often in Home Assistant) #81

RexioGit opened this issue Nov 14, 2024 · 4 comments

Comments

@RexioGit
Copy link

Hi @pvvx,
thank you for your great work!

I am using 2x TH05F and THB1. I flashed BOOT to them and after that I installed OTA. I left all settings default exept one - I turned off displays as I dont need them. I paired all 3 sensors to Home Assistant (installed at RPi 3B+) but after 2 days Voltage dropped from 3,3V to 2,89V so im guessing that this will be a short life of this batteries.

I saw that sometimes Home Assisntant is pulling data every 2-5s and for me is way to often. I tried to change something in settings to make delays longer (i would like to set something betwen 5-30minutes) but to be honest I dont know what am I doing as sidenotes are in RU and names of variables are not so clear for me (I am not electrician nor programmer). Can someone add examples and more descriptions to documentation of all available settings?

Can you help me to set it up and running? My gol is to run this sensors for at least 6 months at one battery.

@pvvx
Copy link
Owner

pvvx commented Nov 14, 2024

Default settings:

image
image

@RexioGit
Copy link
Author

so basically if we can change the data measurement frequency we can run this sensor until the battery self-discharges.

can you tell me what to change to make measurements every 3-30 minutes?

It would be great if you can add some more detailed notes in documentation or at your html. It is always easier for me when I can see some examples. Im not to bright ;)

Thank you very much for you great work!

@marvinlehmann
Copy link

marvinlehmann commented Nov 14, 2024

On PHY62x2BTHome.html you could change the advertising interval to 10s and the measurement step to like 30 which would result in a measurement interval of 5min (10s * 30 = 300s).

A bigger advertising interval may lead to pairing/connection problems. You can press the button on your sensor to temporarily shorten the interval in case you can't get a connection through that web page later on.

I'm currently using a Filter to get a 5min average:

sensor:
  - platform: filter
    name: "THB2 Temperature"
    entity_id: sensor.thb2_f89c_temperature
    filters:
      - filter: time_simple_moving_average
        window_size: "00:05"
      - filter: time_throttle
        window_size: "00:05"

Statistics may also work but I had gaps in the graph. You could also give ha-average a try. I have no idea what the best method would be. I'd love to know if there's a easier way.

@egzumer
Copy link

egzumer commented Nov 19, 2024

I had the same initial concern with my TH05 1.6 when I saw how fast the battery goes down from 3.2V, but I measured the current consumption and it is less than 15 uA so it is ok. It is just the battery discharge curve, it drops very fast initially.

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

No branches or pull requests

4 participants