OpenWonderLabs / homebridge-switchbot

The Homebridge SwitchBot plugin allows you to access your SwitchBot Device(s) from HomeKit. Homebridge.
https://openwonderlabs.github.io/homebridge-switchbot/
ISC License
239 stars 51 forks source link

Support Request: Indoor/Outdoor sensors not showing in HomeKit #944

Closed hansw1204 closed 6 months ago

hansw1204 commented 7 months ago

Describe Your Problem

I added three Switchbot Indoor/Outdoor sensors to the homebridge plugin. They show correctly in HomeBridge but do not appear in the Home App. What am I doing wrong?

Relevant log output

[2/21/2024, 3:57:05 PM] [SwitchBot] Restarting child bridge...
[2/21/2024, 3:57:05 PM] Got SIGTERM, shutting down child bridge process...
[2/21/2024, 3:57:10 PM] [SwitchBot] Child bridge process ended
[2/21/2024, 3:57:10 PM] [SwitchBot] Process Ended. Code: 143, Signal: null
[2/21/2024, 3:57:17 PM] [SwitchBot] Restarting Process...
[2/21/2024, 3:57:18 PM] [SwitchBot] Launched child bridge with PID 23287
[2/21/2024, 3:57:21 PM] Registering platform '@switchbot/homebridge-switchbot.SwitchBot'
[2/21/2024, 3:57:21 PM] [SwitchBot] Loaded @switchbot/homebridge-switchbot v3.4.0 child bridge successfully
[2/21/2024, 3:57:21 PM] Loaded 5 cached accessories from cachedAccessories.0E603DE25AD4.
[2/21/2024, 3:57:21 PM] Homebridge v1.7.0 (HAP v0.11.1) (SwitchBot) is running on port 34884.
[2/21/2024, 3:57:21 PM] [SwitchBot] Total SwitchBot Devices Found: 5
[2/21/2024, 3:57:21 PM] [SwitchBot] Restoring existing accessory from cache: Balcony SB DeviceID: D1B95C6CA12E
[2/21/2024, 3:57:21 PM] [SwitchBot] Restoring existing accessory from cache: SwitchBot Bot DeviceID: D2353334687D
[2/21/2024, 3:57:21 PM] [SwitchBot] Restoring existing accessory from cache: Bedroom SB DeviceID: DEB95B5130DE
[2/21/2024, 3:57:21 PM] [SwitchBot] Restoring existing accessory from cache: Hub 2 51 DeviceID: E55460B62D51
[2/21/2024, 3:57:21 PM] [SwitchBot] Restoring existing accessory from cache: Bathroom SB DeviceID: FD81452A7817

Config for homebridge-switchbot

{
    "name": "SwitchBot",
    "credentials": {
        "token": "token",
        "secret": "secret",
        "notice": "Keep your Token & Secret a secret!"
    },
    "options": {
        "devices": [
            {
                "deviceId": "64E833E4BE64",
                "configDeviceName": "SwitchBot Hub 2",
                "configDeviceType": "Hub 2",
                "lock": {
                    "activate_latchbutton": false
                },
                "history": true,
                "firmware": "1.5-1.0",
                "refreshRate": 360
            },
            {
                "deviceId": "D2353334687D",
                "configDeviceName": "SwitchBot Bot",
                "configDeviceType": "Bot",
                "connectionType": "OpenAPI",
                "bot": {
                    "mode": "press",
                    "deviceType": "door",
                    "allowPush": true,
                    "doublePress": 1
                },
                "lock": {
                    "activate_latchbutton": false
                },
                "firmware": "6.6",
                "refreshRate": 360,
                "external": false
            },
            {
                "deviceId": "D1B95C6CA12E",
                "configDeviceName": "Balcony SB",
                "configDeviceType": "WoIOSensor",
                "connectionType": "OpenAPI",
                "history": true,
                "firmware": "0.4",
                "external": true
            },
            {
                "deviceId": "DEB95B5130DE",
                "configDeviceName": "Bedroom SB",
                "configDeviceType": "WoIOSensor",
                "connectionType": "OpenAPI",
                "history": true,
                "firmware": "0.4"
            },
            {
                "deviceId": "FD81452A7817",
                "configDeviceName": "Bathroom SB",
                "configDeviceType": "WoIOSensor",
                "connectionType": "OpenAPI",
                "history": true,
                "firmware": "0.4"
            }
        ],
        "refreshRate": 360
    },
    "_bridge": {
        "username": "0E:60:3D:E2:5A:D4",
        "port": 34884
    },
    "platform": "SwitchBot"

Screenshots

No response

Device & Model

SwitchBot Indoor/Outdoor Thermo-Hygrometer

Node.js Version

v18.19.0

NPM Version

v9.8.1

Homebridge Version

v1.7.0

Homebridge SwitchBot Plugin Version

v3.4.0

Homebridge Config UI X Plugin Version

v4.55.1

Operating System

Docker

github-actions[bot] commented 6 months ago

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

hansw1204 commented 6 months ago

This is solved. I updated the Switchbot firmware and everything works now natively in HomeKit.

github-actions[bot] commented 6 months ago

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

github-actions[bot] commented 6 months ago

This issue has been closed as no further activity has occurred.