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

Collection of data stops after 1-2 hours #38

Open
mkauttu opened this issue Feb 2, 2022 · 6 comments
Open

Collection of data stops after 1-2 hours #38

mkauttu opened this issue Feb 2, 2022 · 6 comments

Comments

@mkauttu
Copy link

mkauttu commented Feb 2, 2022

I have succesfully configured ruuvi-hass.io with couple of ruuvi tags. Data seems to come in for hour or two. After that data flow stops. Ruuvi tags continue to send out data, but HA -server does not recognize it. Restarting of HA (configuration --> Settings --> Server Controls --> Restart) will fix the issue. Of course rebooting of the entire server helps too. I'm running HASS.io official image on VMWare vSphere. Home Assistant version is 2021.12.10

@japekka
Copy link

japekka commented May 1, 2022

Ihave also this issue. I will try to check if I could find some information in logs so that it could be useful to this case

@japekka
Copy link

japekka commented May 2, 2022

After setting adapter: "hci1" the data seems to flow.
In my installation there are two different bluetooth adapters visible, but you could try to set that value.
Remember to change hci1 value to correspond your setup

@lraty
Copy link

lraty commented May 13, 2022

Worked 10 days for me. Then needed reboot. Can I somehow add watchdog for this?

@mkauttu
Copy link
Author

mkauttu commented May 16, 2022

I created an automation to act as a watchdog. It runs every 5 minutes to check if latest update from a sensor is newer that 1800 seconds. If last update is more that 1800 seconds old host os reboots. Here is tha YAML. Jsut change the entity ID (sensor.outside_temperature) to match your's:

alias: Reboot if no data from ruuvi in 30 min
description: ''
trigger:
  - platform: time_pattern
    minutes: /5
condition:
  - condition: template
    value_template: >-
      {{
      (as_timestamp(now())-as_timestamp(states.sensor.outside_temperature.last_updated))
      | int > 1800}}
action:
  - service: hassio.host_reboot
    data: {}
mode: single

@ojalaj
Copy link

ojalaj commented Aug 10, 2022

For me, similar issues started, when I upgraded the FWs of my 6 RuuviTags from version 2.X to 3.31.1.

See https://f.ruuvi.com/t/home-assistant-ruuvitags-not-properly-working-after-fw-upgrade/5562.

Any possibility that someone with sufficient skills could have a look at this (I don't have :D)?

@ojalaj
Copy link

ojalaj commented Aug 29, 2022

Ping @mkauttu @lraty @japekka on this?

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