8000 Hub sensor regularly doesn't update · Issue #127 · AdyRock/com.switchbot · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content
Hub sensor regularly doesn't update #127
Open
@rudolfterp

Description

@rudolfterp

My Hub 2 sensor (temp, humidity, light) regularly has old values in Homey compared to Switchbot own app.

This was yesterday evening:

Homey:
Screenshot_20240711-230738c

Switchbot:
Screenshot_20240711-231233

As you can see, there were several changes in temp and humidity in the last 4 hours (after the vertical line), but these values weren't send to Homey.

The last update (4 hours ago) was via webhook:
(My timezone is UTC+2)

* 2024-07-11T17:02:33.501Z
* Got a webhook message! {
  "eventType": "changeReport",
  "eventVersion": "1",
  "context": {
    "deviceType": "WoHub2",
    "deviceMac": "FAAD9871D28C",
    "temperature": 23.3,
    "humidity": 60,
    "lightLevel": 2,
    "scale": "CELSIUS",
    "timeOfSample": 1720717352730
  }
}

Seems to me there were no updates via the regular API-way?

When I use 'Get status' I get the correct values (different from the ones shown on the Homey device):
Schermafbeelding 2024-07-11 231450

Only after I restarted the Switchbot Homey app, the correct values were finally updated to the Hub 2 Homey device.

I have 4 Switchbot devices:

  • Hub 2
  • Mini hub
  • Standard temp/hum sensor (via hub)
  • Outdoor temp/hum sensor (via hub)

Apart from the updating problem, everything works fine. I use the hubs to control two IR-devices, via homey flows. This works perfectly.

The update problem seems to be limited to Hub 2, but i'm not entirely sure: the other sensors are in places where temp and/or humidity change a lot more. These devices get a lot of webhook-updates, like several per hour.

It seems that webhook updates are only sent for medium and large changes, and the Hub 2 sensor is in a very temp/humidity stable area. But these small changes over time (hours) is exactly what's important. I have some flows that notify me when certain threshold values are reached. But these are not working properly now.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      0