homebridge-switchbot: Bug: indoor/outdoor thermometer not working

Describe the Bug

I have an indoor/outdoor thermometer/hygrometer that I try to connect via BLE. I don’t have a hub. The temperature is shown correctly in the Switchbot app on an iPad but in homebridge it stays at 30°/0%. HB runs on a raspberry pi. The raspberry pi sees the thermometer just fine, hcitool lescan shows it.

To Reproduce

Install this plugin and configure indoor/outdoor thermometer.

Expected Behavior

Correct readings in the accessories.

Relevant Log Output

[8/14/2024, 7:10:19 PM] [SwitchBot] Initializing SwitchBot platform...
[8/14/2024, 7:10:19 PM] Loading 1 accessories...
[8/14/2024, 7:10:19 PM] [SwitchBot] Platform Config: {"maxRetries":3,"delayBetweenRetries":3}
[8/14/2024, 7:10:19 PM] [SwitchBot] Plugin Version: 3.7.0
[8/14/2024, 7:10:19 PM] [SwitchBot] Finished initializing platform: SwitchBot
[8/14/2024, 7:10:19 PM] [SwitchBot] Verifying Config
[8/14/2024, 7:10:19 PM] [SwitchBot] Config OK
[8/14/2024, 7:10:19 PM] [SwitchBot] setupBLE
[8/14/2024, 7:10:19 PM] [SwitchBot] Executed didFinishLaunching callback
[8/14/2024, 7:10:19 PM] [SwitchBot] SwitchBot Device Manual Config Set: [{"deviceId":"c7:6A:00:46:4F:19","configDeviceName":"thermohygro","configDeviceType":"WoIOSensor","connectionType":"BLE"}]
…                    
[8/14/2024, 7:10:19 PM] [SwitchBot] [DEBUG] Using debugMode Logging
[8/14/2024, 7:10:19 PM] [SwitchBot] [DEBUG] Using Default Max Retries
[8/14/2024, 7:10:19 PM] [SwitchBot] [DEBUG] Using Default Delay Between Retries
[8/14/2024, 7:10:19 PM] [SwitchBot] [DEBUG] Using Default Refresh Rate (2 minutes).
[8/14/2024, 7:10:19 PM] [SwitchBot] [DEBUG] Using Default Push Rate.
[8/14/2024, 7:10:19 PM] [SwitchBot] [DEBUG] Using Default Max Retries.
[8/14/2024, 7:10:19 PM] [SwitchBot] [DEBUG] Using Default Delay Between Retries.
[8/14/2024, 7:10:19 PM] [SwitchBot] Discovered WoIOSensor: c7:6A:00:46:4F:19
[8/14/2024, 7:10:19 PM] [SwitchBot] [DEBUG] Device: thermohygro registerDevice: true
[8/14/2024, 7:10:19 PM] [SwitchBot] [DEBUG] Device: thermohygro connectionType: BLE, will display in HomeKit
[8/14/2024, 7:10:19 PM] [SwitchBot] Scanning for BLE SwitchBot devices...
[8/14/2024, 7:10:19 PM] [SwitchBot] Adding new accessory: thermohygro deviceId: c7:6A:00:46:4F:19
[8/14/2024, 7:10:19 PM] [SwitchBot] WoIOSensor: thermohygro Using Debug Mode Logging: debugMode
[8/14/2024, 7:10:19 PM] [SwitchBot] WoIOSensor: thermohygro Using Platform Config refreshRate: 120, Default updateRate: 5, Platform Config pushRate: 0.1
[8/14/2024, 7:10:19 PM] [SwitchBot] WoIOSensor: thermohygro Using Default Max Retries: 5, Default Delay Between Retries: 3000
[8/14/2024, 7:10:19 PM] [SwitchBot] WoIOSensor: thermohygro Model: W3400010, BLE Model: w, BLE Model Name: WoIOSensorTH, BLE Model Friendly Name: Outdoor Meter
[8/14/2024, 7:10:19 PM] [SwitchBot] WoIOSensor: thermohygro Using Default scanDuration: 5
[8/14/2024, 7:10:19 PM] [SwitchBot] WoIOSensor: thermohygro Using Default MQTT URL: , Default mqttOptions: {}, Default mqttPubOptions: {}
[8/14/2024, 7:10:19 PM] [SwitchBot] WoIOSensor: thermohygro Retrieve initial values and update Homekit
[8/14/2024, 7:10:19 PM] [SwitchBot] WoIOSensor: thermohygro BLERefreshStatus
[8/14/2024, 7:10:19 PM] [SwitchBot] WoIOSensor: thermohygro Registering Webhook Event Handler
[8/14/2024, 7:10:19 PM] [SwitchBot] WoIOSensor: thermohygro is not listening webhook.
[8/14/2024, 7:10:19 PM] [SwitchBot] WoIOSensor uuid: c7:6A:00:46:4F:19-WoIOSensor, (b4c19f6e-a12c-4283-9c40-3274052c91d2)
[8/14/2024, 7:10:19 PM] [SwitchBot] [DEBUG] WoIOSensor: thermohygro Config: {"connectionType":"BLE"}
[8/14/2024, 7:10:19 PM] [SwitchBot] WoIOSensor: thermohygro Firmware Version: 3.7.0
[8/14/2024, 7:10:19 PM] [SwitchBot] WoIOSensor: thermohygro is listening to Platform BLE.
[8/14/2024, 7:10:19 PM] [SwitchBot] thermohygro External Accessory Mode: undefined
[8/14/2024, 7:10:19 PM] [SwitchBot] [DEBUG] WoIOSensor: thermohygro version: 3.7.0
[8/14/2024, 7:10:19 PM] [SwitchBot] WoIOSensor: thermohygro bleMac: c7::6:a::00::4:6::4f::1:9
…

[8/14/2024, 7:12:19 PM] [SwitchBot] WoIOSensor: thermohygro BLERefreshStatus
[8/14/2024, 7:12:19 PM] [SwitchBot] WoIOSensor: thermohygro is listening to Platform BLE.
[8/14/2024, 7:12:19 PM] [SwitchBot] WoIOSensor: thermohygro bleMac: c7::6:a::00::4:6::4f::1:9
[8/14/2024, 7:14:19 PM] [SwitchBot] WoIOSensor: thermohygro BLERefreshStatus
[8/14/2024, 7:14:19 PM] [SwitchBot] WoIOSensor: thermohygro is listening to Platform BLE.
[8/14/2024, 7:14:19 PM] [SwitchBot] WoIOSensor: thermohygro bleMac: c7::6:a::00::4:6::4f::1:9
[8/14/2024, 7:16:19 PM] [SwitchBot] WoIOSensor: thermohygro BLERefreshStatus
[8/14/2024, 7:16:19 PM] [SwitchBot] WoIOSensor: thermohygro is listening to Platform BLE.
[8/14/2024, 7:16:19 PM] [SwitchBot] WoIOSensor: thermohygro bleMac: c7::6:a::00::4:6::4f::1:9

Config for homebridge-switchbot

{
    "name": "SwitchBot",
    "credentials": {
        "notice": "Keep your Token & Secret a secret!"
    },
    "options": {
        "devices": [
            {
                "deviceId": "c7:6A:00:46:4F:19",
                "configDeviceName": "thermohygro",
                "configDeviceType": "WoIOSensor",
                "connectionType": "BLE"
            }
        ],
        "BLE": true
    },
    "platform": "SwitchBot"
}

Screenshots

No response

Device and Model

Indoor/outdoor thermometer

Node.js Version

v20.16.0

NPM Version

10.2.3

Homebridge Version

v1.8.4

Homebridge Switchbot Plugin Version

v3.7.0

Homebridge Config UI X Plugin Version

v4.56.4

Operating System

Raspian/Debian

About this issue

  • Original URL
  • State: closed
  • Created 2 years ago
  • Comments: 16

Commits related to this issue

Most upvoted comments

This is resolved with v3.8.2