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

Inkbird sensors IBS-TH1, IBS-TH2 and IBS-TH2 Plus not updating in time #117300

Open
theliquid opened this issue May 12, 2024 · 6 comments
Open

Inkbird sensors IBS-TH1, IBS-TH2 and IBS-TH2 Plus not updating in time #117300

theliquid opened this issue May 12, 2024 · 6 comments
Assignees

Comments

@theliquid
Copy link

The problem

I have a Home Assistant Docker setup with 3 Bluetooth proxies (1x ESP Home, 2x Shelly Plug S). In my setup I have several Bluetooth temperature and humidity sensors (manufacturers: Xiaomi, Govee and Inkbird).
The 4 Inkbird sensors do not update regularly. They seem to update once a day or once every 12 hours. All the other sensors (Xiaomi and Govee) update at least once a minute.
The Inkbird sensors themselves (1x IBS-TH1 and 2x IBS-TH2 and 1x IBS-TH2 plus) seem to be fine. I can connect to the Inkbird app (Engbird) and always read the current sensor values. The problems seem to be related to how the Inkbird sensors are read by Home Assistant (or the Bluetooth proxies).
The ESP Home Bluetooth Proxy is set to active scanning by default. One of the Shelly Plug S Bluetooth proxies is set to active scanning, the other to passive scanning.

There is a strange behaviour with Inkbird devices:
The Signal Strength entity is updated much more frequently than the temperature, humidity and battery sensors. So it seems that the data is transferred to the Home Assistant in time, but not the actual temperature, humidity and battery sensor values.
th1_signal
th1_temp
th1_hum
th1_bat

What version of Home Assistant Core has the issue?

core-2024.5.3

What was the last working version of Home Assistant Core?

?

What type of installation are you running?

Home Assistant Container

Integration causing the issue

Inkbird

Link to integration documentation on our website

https://www.home-assistant.io/integrations/inkbird

Diagnostics information

There is nothing useful in the logs. The "Enable debug logging" switch does not produce any Inkbird related log entries.

Example YAML snippet

No response

Anything in the logs that might be useful for us?

There is nothing useful in the logs. The "Enable debug logging" switch does not produce any Inkbird related log entries.

Additional information

No response

@home-assistant
Copy link

Hey there @bdraco, mind taking a look at this issue as it has been labeled with an integration (inkbird) you are listed as a code owner for? Thanks!

Code owner commands

Code owners of inkbird can trigger bot actions by commenting:

  • @home-assistant close Closes the issue.
  • @home-assistant rename Awesome new title Renames the issue.
  • @home-assistant reopen Reopen the issue.
  • @home-assistant unassign inkbird Removes the current integration label and assignees on the issue, add the integration domain after the command.
  • @home-assistant add-label needs-more-information Add a label (needs-more-information, problem in dependency, problem in custom component) to the issue.
  • @home-assistant remove-label needs-more-information Remove a label (needs-more-information, problem in dependency, problem in custom component) on the issue.

(message by CodeOwnersMention)


inkbird documentation
inkbird source
(message by IssueLinks)

@theliquid
Copy link
Author

Update: The strange behaviour doesn't apply to all sensors. Some of the sensors do not update all entities for 12 to 24 hours. The problem is somehow connect to active/passive scan mode I think since all other sensors (vendors: Xiaomi and Govee) do support passive mode only.

@Anto79-ops
Copy link

Anto79-ops commented May 13, 2024

I wanted to add that I also experience this strange behavior but attributed to either a defective sensor or it's too cold because it's in my freezer with lithium batteries. The temperature just flat lines, but it seems like the signal strength changes sometimes. Inkbird IBS THB-2. Only 1 of 4 do this.

@michael-m52
Copy link

I have this problems as well. The solution was to use ble_gateway on the ESP32. The readings from this are much more reliable.

Here is a yaml snippet to get you started.

external_components:
  - source: github://myhomeiot/esphome-components

ble_gateway:
  id: blegateway
  devices:
    - mac_address: XX:XX:XX:XX:XX:XX
    - mac_address: YY:YY:YY:YY:YY:YY
  on_ble_advertise:
    then:
      homeassistant.event:
        event: esphome.on_ble_advertise
        data:
          packet: !lambda return packet; 

@theliquid
Copy link
Author

Thanks for the hints! I disabled both Shelly Plug S Bluetooth proxies. Now the Inkbird sensors are updating normally again. I have no idea why. The only active Bluetooth proxy is now the ESP32 device.
I don't know if this problem is related to the Inkbird integration. Since only the Inkbird sensors were affected by this strange behavior (and not the others), I really can't say if the Inkbird integration is causing this.

@bdraco
Copy link
Member

bdraco commented May 13, 2024

Unlikely most Bluetooth devices that use advertisements Inkbird needs active scans. If the nearest proxy is in passive mode this behavior is somewhat expected

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

No branches or pull requests

4 participants