Git Product home page Git Product logo

homebridge-switchbot's People

Contributors

dnicolson avatar donavanbecker avatar minipli avatar tom-todd avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

homebridge-switchbot's Issues

Bug: bot doesn’t show up in BLE mode

Describe The Bug

I think I’m doing everything right but bot doesn’t show up

To Reproduce

Trying to config it

Expected behavior

Bot should show up

Relevant log output

I’ve made screenshot since I’m on my phone and can’t copy. I’ve added screenshots from other plugin also

Config for homebridge-switchbot

{
            "name": "SwitchBot",
            "credentials": {
                "openToken": "Secret",
                "notice": "Keep your token a secret!"
            },
            "options": {
                "devices": [
                    {
                        "deviceId": "Secret",
                        "deviceType": "Bot",
                        "ble": true,
                        "bot": {
                            "mode": "press",
                            "switch": true
                        }
                    }
                ],
                "debug": "device"
            },
            "platform": "SwitchBot"
        }

Screenshots



Device & Model

Switchbot bot

Node.js Version

V16.13.0

NPM Version

V8.1.0

Homebridge Version

V1.3.6

Homebridge Switchbot Plugin Version

1.0

Homebridge Config UI X Plugin Version

4.41.2

Operating System

Rasbian

Bug: curtains not updating

Describe The Bug

updated from 0.1.1 to 1.2.5 on raspberry pi: curtain state seems to be constantly updating on the apple home app. Curtain states seem to be VERY unreliable on homebridge. 9 out of 10 the commands to open or close won't be received. Going back to v0.1.1 solved the problem.

To Reproduce

Update from 0.1.1 to 1.2.5 and back

Expected behavior

Showing the current state of the curtains and execute commands to open or close curtains

Relevant log output

[27.11.2021, 12:09:40] [HB Supervisor] Starting Homebridge with extra flags: -I
[27.11.2021, 12:09:40] [HB Supervisor] Started Homebridge v1.3.8 with PID: 17263
[27.11.2021, 12:09:41] Loaded config.json with 0 accessories and 4 platforms.
[27.11.2021, 12:09:42] Loaded 2 cached accessories from cachedAccessories.
[27.11.2021, 12:09:42] ---
[27.11.2021, 12:09:43] Loaded plugin: [email protected]
[27.11.2021, 12:09:43] Registering platform 'homebridge-config-ui-x.config'
[27.11.2021, 12:09:43] ---
[27.11.2021, 12:09:43] Loaded plugin: [email protected]
[27.11.2021, 12:09:43] Registering platform 'homebridge-homematic.HomeMatic'
[27.11.2021, 12:09:43] ---
[27.11.2021, 12:09:44] Loaded plugin: [email protected]
[27.11.2021, 12:09:44] Registering platform 'homebridge-samsung-tizen.SamsungTizen'
[27.11.2021, 12:09:44] ---
[27.11.2021, 12:09:44] Loaded plugin: @switchbot/[email protected]
[27.11.2021, 12:09:44] Registering platform '@switchbot/homebridge-switchbot.SwitchBot'
[27.11.2021, 12:09:44] ---
[27.11.2021, 12:09:44] Loading 4 platforms...
[27.11.2021, 12:09:44] [Config] Initializing config platform...
[27.11.2021, 12:09:44] [Config] Running in Service Mode
[27.11.2021, 12:09:44] [HomeMatic CCU] Initializing HomeMatic platform...
[27.11.2021, 12:09:44] [HomeMatic CCU] [Core] merging configurations
[27.11.2021, 12:09:44] [HomeMatic CCU] Homematic Plugin Version 0.2.226
[27.11.2021, 12:09:44] [HomeMatic CCU] Plugin by thkl  https://github.com/thkl
[27.11.2021, 12:09:44] [HomeMatic CCU] Homematic is a registered trademark of the EQ-3 AG
[27.11.2021, 12:09:44] [HomeMatic CCU] Please report any issues to https://github.com/thkl/homebridge-homematic/issues
[27.11.2021, 12:09:44] [HomeMatic CCU] running in production mode
[27.11.2021, 12:09:44] [HomeMatic CCU] will connect to your ccu at 192.168.178.20
[27.11.2021, 12:09:44] [HomeMatic CCU] IMPORTANT !! Starting this version, your homematic custom configuration is located in /var/lib/homebridge/homematic_config.json
[27.11.2021, 12:09:44] [HomeMatic CCU] using subsection Homekit
[27.11.2021, 12:09:44] [HomeMatic CCU] [RPC] using xmprpc for communication with BidCos-RF
[27.11.2021, 12:09:44] [HomeMatic CCU] init RPC for BidCos-RF.
[27.11.2021, 12:09:44] [HomeMatic CCU] [RPC] local ip used : 192.168.178.66. you may change that with local_ip parameter in config
[27.11.2021, 12:09:44] [HomeMatic CCU] init RPC for VirtualDevices.
[27.11.2021, 12:09:44] [HomeMatic CCU] [RPC] local ip used : 192.168.178.66. you may change that with local_ip parameter in config
[27.11.2021, 12:09:44] [HomeMatic CCU] [RPC] using xmprpc for communication with BidCos-Wired
[27.11.2021, 12:09:44] [HomeMatic CCU] init RPC for BidCos-Wired.
[27.11.2021, 12:09:44] [HomeMatic CCU] [RPC] local ip used : 192.168.178.66. you may change that with local_ip parameter in config
[27.11.2021, 12:09:44] [HomeMatic CCU] init RPC for HmIP-RF.
[27.11.2021, 12:09:44] [HomeMatic CCU] [RPC] local ip used : 192.168.178.66. you may change that with local_ip parameter in config
[27.11.2021, 12:09:44] [SamsungTizen] Initializing SamsungTizen platform...
[27.11.2021, 12:09:44] [[email protected]] Initializing SwitchBot platform...
[27.11.2021, 12:09:45] [[email protected]] Using Default Push Rate.
[27.11.2021, 12:09:45] [[email protected]] Loading accessory from cache: Vorhang links Curtain
[27.11.2021, 12:09:45] [[email protected]] Loading accessory from cache: Vorhang rechts Curtain
[27.11.2021, 12:09:45] [HomeMatic CCU] [RPC] server for interface BidCos-RF. is listening on port 9090.
[27.11.2021, 12:09:45] [HomeMatic CCU] [RPC] Creating Local HTTP Client for CCU RPC Events
[27.11.2021, 12:09:45] [HomeMatic CCU] [RPC] server for interface VirtualDevices. is listening on port 9093.
[27.11.2021, 12:09:45] [HomeMatic CCU] [RPC] Creating Local HTTP Client for CCU RPC Events
[27.11.2021, 12:09:45] [HomeMatic CCU] [RPC] server for interface BidCos-Wired. is listening on port 9091.
[27.11.2021, 12:09:45] [HomeMatic CCU] [RPC] Creating Local HTTP Client for CCU RPC Events
[27.11.2021, 12:09:45] [HomeMatic CCU] [RPC] server for interface HmIP-RF. is listening on port 9092.
[27.11.2021, 12:09:45] [HomeMatic CCU] [RPC] Creating Local HTTP Client for CCU RPC Events
[27.11.2021, 12:09:45] Fernseher 71E9 is running on port 34865.
[27.11.2021, 12:09:45] Please add [Fernseher 71E9] manually in Home app. Setup Code: ((CENSORED))
[27.11.2021, 12:09:45] [HomeMatic CCU] if PONG is PONG CCU is alive
[27.11.2021, 12:09:45] [[email protected]] Total SwitchBot Devices Found: 3
[27.11.2021, 12:09:45] [[email protected]] Total IR Devices Found: 0
[27.11.2021, 12:09:45] [[email protected]] Restoring existing accessory from cache: Vorhang links Curtain DeviceID: C2E5AE13CDBA
[27.11.2021, 12:09:45] [[email protected]] Restoring existing accessory from cache: Vorhang rechts Curtain DeviceID: F0489DFAB664
[27.11.2021, 12:10:00] [HomeMatic CCU] [ServiceClassLoader] There is no service for VIR-LG-ONOFF:VIR-LG-ONOFF-CH
[27.11.2021, 12:10:00] [HomeMatic CCU] [ServiceClassLoader] There is no service for HM-TC-IT-WM-W-EU:SWITCH_TRANSMIT
[27.11.2021, 12:10:00] Initializing platform accessory 'Haustür'...
[27.11.2021, 12:10:00] Initializing platform accessory 'Heizung Arbeitszimmer'...
[27.11.2021, 12:10:00] Initializing platform accessory 'Heizung Bad'...
[27.11.2021, 12:10:00] Initializing platform accessory 'Heizung Esszimmer'...
[27.11.2021, 12:10:00] Initializing platform accessory 'Heizung Gästebad'...
[27.11.2021, 12:10:00] Initializing platform accessory 'Heizung Kinderzimmer'...
[27.11.2021, 12:10:00] Initializing platform accessory 'Heizung Küche'...
[27.11.2021, 12:10:00] Initializing platform accessory 'Heizung Wohnzimmer'...
[27.11.2021, 12:10:00] Initializing platform accessory 'Heizung Wohnzimmer links'...
[27.11.2021, 12:10:00] Initializing platform accessory 'Heizung Wohnzimmer rechts'...
[27.11.2021, 12:10:00] Initializing platform accessory 'Heizung Flur'...
[27.11.2021, 12:10:00] Initializing platform accessory 'Kühlschrank'...
[27.11.2021, 12:10:00] Initializing platform accessory 'Thermostat Wohnzimmer Klima'...
[27.11.2021, 12:10:00] Initializing platform accessory 'Thermostat Wohnzimmer Heizung'...
Setup Payload:
X-HM://((CENSORED))
Enter this code with your HomeKit app on your iOS device to pair with Homebridge:
                       
    ┌────────────┐     
    │ ((CENSORED)) │     
    └────────────┘     
                       
[27.11.2021, 12:10:00] Homebridge v1.3.8 (HAP v0.9.7) (Homebridge D145) is running on port 51805.
[27.11.2021, 12:10:00] [HomeMatic CCU] [Core] will cache ccu response to /var/lib/homebridge/ccu.json
[27.11.2021, 12:10:01] [homebridge-homematic] This plugin generated a warning from the characteristic 'Target Temperature': characteristic was supplied illegal value: number 4.5 exceeded minimum of 10. See https://git.io/JtMGR for more info.
[27.11.2021, 12:10:04] [HomeMatic CCU] [Core] NPM 0.2.226 vs Local 0.2.226
[27.11.2021, 12:12:02] [homebridge-homematic] This plugin generated a warning from the characteristic 'Target Temperature': characteristic was supplied illegal value: number 4.5 exceeded minimum of 10. See https://git.io/JtMGR for more info.
[27.11.2021, 12:12:54] [homebridge-homematic] This plugin generated a warning from the characteristic 'Target Temperature': characteristic was supplied illegal value: number 4.5 exceeded minimum of 10. See https://git.io/JtMGR for more info.

Config for homebridge-switchbot

{
    "name": "((CENSORED))",
    "credentials": {
        "openToken": "((CENSORED))",
        "notice": "Keep your token a secret!"
    },
    "options": {
        "refreshRate": 300
    },
    "devicediscovery": false,
    "platform": "SwitchBot"
}

Screenshots

No response

Device & Model

SwitchBot HubMini + CurtainBots

Node.js Version

v16.13.0

NPM Version

v6.14.15

Homebridge Version

v1.3.8

Homebridge Switchbot Plugin Version

v0.1.1

Homebridge Config UI X Plugin Version

v4.41.3

Operating System

Raspbian

Bug: Switchbot plugin started crashing Homebridge today

Describe The Bug

Restarting Homebridge crashes when Switchbot plugin is configured

To Reproduce

Just restart. No changes to any of my SwitchBot devices or configuration have been made

Expected behavior

Shouldn't crash!

Relevant log output

[13/11/2021, 16:12:05] [SwitchBot] [DEBUG] {"statusCode":100,"body":{"deviceList":[{"deviceId":"98F4AB2F20EE","deviceName":"
Humidifier EE","deviceType":"Humidifier","enableCloudService":true,"hubDeviceId":"000000000000"},{"deviceId":"D8E9AA74909F","deviceName":"Li
ving Room Curtain Right","deviceType":"Curtain","hubDeviceId":"000000000000","curtainDevicesIds":["DFC80D28CE14","D8E9AA74909F"],"calibrate"
:true,"group":true,"master":false,"openDirection":"right"},{"deviceId":"DF7B6DA19FE7","deviceName":"Hub Mini E7","deviceType":"Hub Mini","hu
bDeviceId":"000000000000"},{"deviceId":"DFC80D28CE14","deviceName":"Living Room Curtain","deviceType":"Curtain","enableCloudService":true,"h
ubDeviceId":"DF7B6DA19FE7","curtainDevicesIds":["DFC80D28CE14","D8E9AA74909F"],"calibrate":true,"group":true,"master":true,"openDirection":"
left"},{"deviceId":"F037B7A5EED7","deviceName":"Bot D7","deviceType":"Bot","enableCloudService":true,"hubDeviceId":"DF7B6DA19FE7"},{"deviceI
d":"F1BAF4B4E58E","deviceName":"Living Room","deviceType":"Meter","enableCloudService":true,"hubDeviceId":"DF7B6DA19FE7"},{"deviceId":"F3745
EADBBFE","deviceName":"Bedroom","deviceType":"Meter","enableCloudService":true,"hubDeviceId":"DF7B6DA19FE7"}],"infraredRemoteList":[]},"mess
age":"success"}
[13/11/2021, 16:12:05] [SwitchBot] Total SwitchBot Devices Found: 7
[13/11/2021, 16:12:05] [SwitchBot] [DEBUG] SwitchBot Device Config Not Set: undefined
[13/11/2021, 16:12:05] [SwitchBot] [DEBUG] Discovered Humidifier: 98F4AB2F20EE
[13/11/2021, 16:12:05] [SwitchBot] Restoring existing accessory from cache: Humidifier EE DeviceID: 98F4AB2F20EE
[13/11/2021, 16:12:05] [SwitchBot] [DEBUG] Discovered Curtain: D8E9AA74909F
[13/11/2021, 16:12:05] [SwitchBot] [DEBUG] deviceId: D8E9AA74909F, curtainDevicesIds: DFC80D28CE14,D8E9AA74909F, master: fal
se, group: true, disable_group: undefined
[13/11/2021, 16:12:05] [SwitchBot] [DEBUG] [Curtain Config] disable_group: undefined
[13/11/2021, 16:12:05] [SwitchBot] [DEBUG] Discovered Hub Mini: DF7B6DA19FE7
[13/11/2021, 16:12:05] [SwitchBot] [DEBUG] Discovered Curtain: DFC80D28CE14
[13/11/2021, 16:12:05] [SwitchBot] [DEBUG] deviceId: DFC80D28CE14, curtainDevicesIds: DFC80D28CE14,D8E9AA74909F, master: tru
e, group: true, disable_group: undefined
[13/11/2021, 16:12:05] [SwitchBot] [DEBUG] [Curtain Config] disable_group: undefined
[13/11/2021, 16:12:05] [SwitchBot] Restoring existing accessory from cache: Living Room Curtain DeviceID: DFC80D28CE14
[13/11/2021, 16:12:05] [SwitchBot] [DEBUG] Discovered Bot: F037B7A5EED7
[13/11/2021, 16:12:05] [SwitchBot] Restoring existing accessory from cache: Bot D7 DeviceID: F037B7A5EED7
[13/11/2021, 16:12:05] [SwitchBot] [DEBUG] undefined
[13/11/2021, 16:12:05] [SwitchBot] You must set your Bot to Press or Switch Mode
[13/11/2021, 16:12:05] [SwitchBot] [DEBUG] Discovered Meter: F1BAF4B4E58E
[13/11/2021, 16:12:05] [SwitchBot] Restoring existing accessory from cache: Living Room DeviceID: F1BAF4B4E58E
[13/11/2021, 16:12:05] [SwitchBot] [DEBUG] Discovered Meter: F3745EADBBFE
[13/11/2021, 16:12:05] [SwitchBot] Restoring existing accessory from cache: Bedroom DeviceID: F3745EADBBFE
[13/11/2021, 16:12:05] [SwitchBot] Total IR Devices Found: 0
[13/11/2021, 16:12:05] [SwitchBot] [DEBUG] IR Device Config Not Set: undefined
[13/11/2021, 16:12:05] [SwitchBot] [DEBUG] Humidifier Humidifier EE CurrentTemperature: 0
[13/11/2021, 16:12:05] [SwitchBot] [DEBUG] Humidifier uuid: 98F4AB2F20EE-Humidifier, (179d92bf-d829-46ee-b45f-954e1a4e6bf1)
[13/11/2021, 16:12:05] [SwitchBot] [DEBUG] Curtain Living Room Curtain updateHomeKitCharacteristics - {"CurrentPosition":0,"
PositionState":2,"TargetPosition":0}
[13/11/2021, 16:12:05] [SwitchBot] [DEBUG] Curtain Living Room Curtain CurrentAmbientLightLevel: undefined
[13/11/2021, 16:12:05] [SwitchBot] [DEBUG] Curtain uuid: DFC80D28CE14-Curtain, (290ba6f5-8474-4a54-8d14-ce396a2e4251)
[13/11/2021, 16:12:05] [SwitchBot] [DEBUG] Bot Bot D7 On: false
[13/11/2021, 16:12:05] [SwitchBot] Bot Bot D7 failed to refresh status, Error Message: "Cannot read properties of undefi
ned (reading 'updateCharacteristic')"
[13/11/2021, 16:12:05] [SwitchBot] [DEBUG] Bot Bot D7, Error: {}
[13/11/2021, 16:12:05] [SwitchBot] [DEBUG] Bot Bot D7 BatteryLevel: undefined
[13/11/2021, 16:12:05] [SwitchBot] [DEBUG] Bot Bot D7 StatusLowBattery: undefined
[13/11/2021, 16:12:05] [SwitchBot] [DEBUG] Bot uuid: F037B7A5EED7-Bot, (cffc0071-664c-4055-b95d-fc427c34c3a8)
[13/11/2021, 16:12:05] [SwitchBot] [DEBUG] Meter uuid: F1BAF4B4E58E-Meter, (c79c02a1-a3a0-4f6f-ac00-41124aa94a2a)
[13/11/2021, 16:12:05] [SwitchBot] [DEBUG] Meter uuid: F3745EADBBFE-Meter, (97065854-0ef6-426d-9a6f-5604eb4076d8)
[13/11/2021, 16:12:05] TypeError: Cannot read properties of undefined (reading 'updateCharacteristic')
    at Bot.apiError (/usr/local/lib/node_modules/@switchbot/homebridge-switchbot/src/devices/bots.ts:356:18)
    at Bot.openAPIRefreshStatus (/usr/local/lib/node_modules/@switchbot/homebridge-switchbot/src/devices/bots.ts:233:12)
    at Bot.refreshStatus (/usr/local/lib/node_modules/@switchbot/homebridge-switchbot/src/devices/bots.ts:168:18)
    at new Bot (/usr/local/lib/node_modules/@switchbot/homebridge-switchbot/src/devices/bots.ts:52:10)
    at SwitchBotPlatform.createBot (/usr/local/lib/node_modules/@switchbot/homebridge-switchbot/src/platform.ts:440:9)
    at processTicksAndRejections (node:internal/process/task_queues:96:5)
[13/11/2021, 16:12:05] Got SIGTERM, shutting down Homebridge...

Config for homebridge-switchbot

"name": "SwitchBot",
            "credentials": {
                "openToken": "secret",
                "notice": "Keep your token a secret!"
            },
            "options": {
                "refreshRate": 600,
                "debug": "debug"
            },
            "platform": "SwitchBot"
        },

Screenshots

None

Device & Model

N/A

Node.js Version

v16.13.0

NPM Version

v8.1.0

Homebridge Version

v1.3.6

Homebridge Switchbot Plugin Version

v1.0.0

Homebridge Config UI X Plugin Version

v4.41.2

Operating System

Raspbian

Feature Request: Hide Humidity Sensor from Humidifier

Problem

I would like to hide the humidity sensor from my humidifier as I have a more accuarate sensor I'd like to use instead

Solution

Like the ability to hide the temperature sensor, I'd like to be able to add an entry to the homebridge config hide_humidity=true

Alternatives

No response

Additional context

No response

Bug: Color Bulb can't change color and is not dimmable

Describe The Bug

Basically i cant siwtch on and off the bulb in Apple Home. But i cant change the color. The color wheel is not available. If i turn the displayed white wheel nothing happens. In addition the bulb does not dim up or down if i try to adjust it.

To Reproduce

Add Bulb and try it

Expected behavior

To be able to change the color with standard color wheel and to dim the light up and down

Relevant log output

[11/17/2021, 8:47:27 PM] [SwitchBot] Sending request for Color Bulb DD5A to SwitchBot API. command: turnOn parameter: default commandType: command
[11/17/2021, 8:47:28 PM] [SwitchBot] Sending request for Color Bulb DD5A to SwitchBot API. command: turnOn parameter: default commandType: command
[11/17/2021, 8:47:28 PM] [SwitchBot] Sending request for Color Bulb DD5A to SwitchBot API. command: turnOn parameter: default commandType: command

[11/17/2021, 8:47:59 PM] [SwitchBot] Sending request for Color Bulb DD5A to SwitchBot API. command: turnOn parameter: default commandType: command
[11/17/2021, 8:47:59 PM] [SwitchBot] Sending request for Color Bulb DD5A to SwitchBot API. command: turnOn parameter: default commandType: command
[11/17/2021, 8:48:00 PM] [SwitchBot] Sending request for Color Bulb DD5A to SwitchBot API. command: turnOn parameter: default commandType: command

Config for homebridge-switchbot

{
            "name": "SwitchBot",
            "credentials": {
                "openToken": "myToken",
                "notice": "Keep your token a secret!"
            },
            "options": {
                "refreshRate": 120
            },
            "devicediscovery": true,
            "platform": "SwitchBot"
        },

Screenshots

Switchbot_Color_Wheel - 1

Switchbot_Color_Bulb_Slider - 1

Device & Model

SwitchBot Color Bulb

Node.js Version

v14.18.0

NPM Version

v7.24.1

Homebridge Version

v1.3.6

Homebridge Switchbot Plugin Version

v.1.1.0

Homebridge Config UI X Plugin Version

v4.41.2

Operating System

Raspbian

Bug: Bot not working anymore under 1.0.0

Describe The Bug

updateCharacteristic failed

To Reproduce

I added the Bot's device ID to in order to configure it as Press or Switch. The bug crashes the whole homebridge instance. I can only get it working when I hide the Bot device

Expected behavior

it should work

Relevant log output

Bot Bot 5F failed to refresh status, Error Message: "Cannot read properties of undefined (reading 'updateCharacteristic')"

Config for homebridge-switchbot

{
            "name": "SwitchBot",
            "credentials": {
                "openToken": "SECRET",
                "notice": "Keep your token a secret!"
            },
            "options": {
                "devices": [
                    {
                        "deviceId": "FF0A3A38F35F",
                        "hide_device": true,
                        "deviceType": "Bot",
                        "bot": {
                            "mode": "switch",
                            "switch": false
                        }
                    }
                ],
                "refreshRate": 30,
                "pushRate": 1
            },
            "platform": "SwitchBot"
        }

Screenshots

No response

Device & Model

SwitchBot Bot

Node.js Version

v16.13.0

NPM Version

v8.1.1

Homebridge Version

v1.3.6

Homebridge Switchbot Plugin Version

1.0.0

Homebridge Config UI X Plugin Version

v4.41.2

Operating System

Debian

Bug: Contact Sensor, Motion Sensor and Meter does not update state

Describe The Bug

Thanks a lot for integrated BLE only function! It works so far with the Bot. In terms of Contact Sensor, Motion Sensor and Meter i am able to add them to Homebridge but the state of the device does not change. For instance if a open the contact sensor the open state is not submitted to homebridge. Same for Motion sensor and Meter.

To Reproduce

Add contact sensor per BLE to Homebridge and open the sensor

Expected behavior

State should change once the sensor changes his values like open for contact sensor or motion for the motion sensor

Relevant log output

SwitchBot_Log.txt

Config for homebridge-switchbot

"options": {
                "devices": [
                    {
                        "deviceId": "D273C8Axxxx",
                        "configDeviceName": "Bot Test",
                        "configDeviceType": "Bot",
                        "ble": true,
                        "bot": {
                            "mode": "press",
                            "deviceType": "switch"
                        }
                    },
                    {
                        "deviceId": "F5F453Exxxx",
                        "configDeviceName": "Contact Sensor",
                        "configDeviceType": "Contact Sensor",
                        "ble": true
                    },
                    {
                        "deviceId": "84F70353xxxx",
                        "configDeviceName": "Color Bulb Test",
                        "configDeviceType": "Color Bulb",
                        "ble": true
                    },
                    {
                        "deviceId": "E1D35C4Dxxxx",
                        "configDeviceName": "Meter Test",
                        "configDeviceType": "Meter",
                        "ble": true
                    },
                    {
                        "deviceId": "F97B404Fxxxx",
                        "configDeviceName": "Motion Test",
                        "configDeviceType": "Motion Sensor",
                        "ble": true
                    }
                ],
                "refreshRate": 30,
                "debug": "device"
            },
            "platform": "SwitchBot"

Screenshots

SwitchBot BLE Homebridge

I observed some smaller form issues. I guess the hide option related to the contact sensor has the wrong naming?

Contact Sensor Hide Option

In the device section the Type of the device is not recognized although the device is configured as BLE device in config.json

Contact_Sensor_Undefined

Device & Model

Switchbot Contact & Motion Sensor, Meter, Bulb

Node.js Version

v14.18.1

NPM Version

v6.14.15

Homebridge Version

v1.3.6

Homebridge Switchbot Plugin Version

v1.2.0

Homebridge Config UI X Plugin Version

v4.41.2

Operating System

Raspbian

Bug: old curtain still visible

Describe The Bug

Disconnected curtain still visible (I've returned it to Amazon) and unresponsive

To Reproduce

Connect a curtain to the hub, than move it in another location

Expected behavior

Curtain not visible

Relevant log output

[9/28/2021, 9:14:09 AM] [****@gmail.com] {"statusCode":100,"body":{"deviceList":[{"deviceId":"C433A1D5ECCB","deviceName":"Curtain  left","deviceType":"Curtain","hubDeviceId":"000000000000","curtainDevicesIds":["F922278BD47A","C433A1D5ECCB"],"calibrate":true,"group":true,"master":false,"openDirection":"left"},{"deviceId":"E3981895F2DA","deviceName":"Bot DA","deviceType":"Bot","enableCloudService":true,"hubDeviceId":"FCEA7CE187C3"},{"deviceId":"EC834E2BDBE8","deviceName":"Bedroom Remote Curtains 2","deviceType":"Remote","enableCloudService":false,"hubDeviceId":"000000000000"},{"deviceId":"F5757BB5A40E","deviceName":"Bedroom Remote Curtains","deviceType":"Remote","enableCloudService":false,"hubDeviceId":"000000000000"},{"deviceId":"F922278BD47A","deviceName":"Bedroom Curtain","deviceType":"Curtain","enableCloudService":true,"hubDeviceId":"FCEA7CE187C3","curtainDevicesIds":["F922278BD47A","C433A1D5ECCB"],"calibrate":true,"group":true,"master":true,"openDirection":"right"},{"deviceId":"FCEA7CE187C3","deviceName":"Hub Mini C3","deviceType":"Hub Mini","hubDeviceId":"000000000000"}],"infraredRemoteList":[]},"message":"success"}
    [9/28/2021, 9:14:09 AM] [****@gmail.com] Total SwitchBot Devices Found: 6
    [9/28/2021, 9:14:09 AM] [****@gmail.com] Total IR Devices Found: 0
    [9/28/2021, 9:14:09 AM] [****@gmail.com] {"deviceId":"C433A1D5ECCB","deviceName":"Curtain  left","deviceType":"Curtain","hubDeviceId":"000000000000","curtainDevicesIds":["F922278BD47A","C433A1D5ECCB"],"calibrate":true,"group":true,"master":false,"openDirection":"left"}
    [9/28/2021, 9:14:09 AM] [****@gmail.com] Discovered Curtain  left Curtain
    [9/28/2021, 9:14:09 AM] [****@gmail.com] Unable to Register new device: Curtain  left Curtain - C433A1D5ECCB
    [9/28/2021, 9:14:09 AM] [****@gmail.com] {"deviceId":"E3981895F2DA","deviceName":"Bot DA","deviceType":"Bot","enableCloudService":true,"hubDeviceId":"FCEA7CE187C3"}
    [9/28/2021, 9:14:09 AM] [****@gmail.com] Discovered Bot DA Bot
    [9/28/2021, 9:14:09 AM] [****@gmail.com] Restoring existing accessory from cache: Bot DA Bot DeviceID: E3981895F2DA
    [9/28/2021, 9:14:09 AM] [****@gmail.com] {"deviceId":"EC834E2BDBE8","deviceName":"Bedroom Remote Curtains 2","deviceType":"Remote","enableCloudService":false,"hubDeviceId":"000000000000"}
    [9/28/2021, 9:14:09 AM] [****@gmail.com] {"deviceId":"F5757BB5A40E","deviceName":"Bedroom Remote Curtains","deviceType":"Remote","enableCloudService":false,"hubDeviceId":"000000000000"}
    [9/28/2021, 9:14:09 AM] [****@gmail.com] {"deviceId":"F922278BD47A","deviceName":"Bedroom Curtain","deviceType":"Curtain","enableCloudService":true,"hubDeviceId":"FCEA7CE187C3","curtainDevicesIds":["F922278BD47A","C433A1D5ECCB"],"calibrate":true,"group":true,"master":true,"openDirection":"right"}
    [9/28/2021, 9:14:09 AM] [****@gmail.com] Discovered Bedroom Curtain Curtain
    [9/28/2021, 9:14:09 AM] [****@gmail.com] Restoring existing accessory from cache: Bedroom Curtain Curtain DeviceID: F922278BD47A
    [9/28/2021, 9:14:09 AM] [****@gmail.com] {"deviceId":"FCEA7CE187C3","deviceName":"Hub Mini C3","deviceType":"Hub Mini","hubDeviceId":"000000000000"}
    [9/28/2021, 9:14:09 AM] [****@gmail.com] Discovered a Hub Mini
[9/28/2021, 9:14:10 AM] [****@gmail.com] deviceStatus - Bedroom Remote Curtains {"statusCode":100,"body":{},"message":"success"}
[9/28/2021, 9:14:10 AM] [****@gmail.com] deviceStatus - Bedroom Remote Curtains 2 {"statusCode":100,"body":{},"message":"success"}
[9/28/2021, 9:14:10 AM] [****@gmail.com] deviceStatus - Hub Mini C3 {"statusCode":100,"body":{},"message":"success"}
[9/28/2021, 9:14:10 AM] [****@gmail.com] deviceStatus - Bot DA {"statusCode":100,"body":{"deviceId":"E3981895F2DA","deviceType":"Bot","hubDeviceId":"FCEA7CE187C3","power":"off"},"message":"success"}
[9/28/2021, 9:14:10 AM] [****@gmail.com] deviceStatus - Curtain  left {"statusCode":100,"body":{"deviceId":"C433A1D5ECCB","deviceType":"Curtain","hubDeviceId":"FCEA7CE187C3","calibrate":true,"group":true,"moving":false,"slidePosition":0},"message":"success"}
[9/28/2021, 9:14:10 AM] [****@gmail.com] deviceStatus - Bedroom Curtain {"statusCode":100,"body":{"deviceId":"F922278BD47A","deviceType":"Curtain","hubDeviceId":"FCEA7CE187C3","calibrate":true,"group":false,"moving":false,"slidePosition":0},"message":"success"}

Config for homebridge-switchbot

{
        "name": "***@gmail.com",
        "credentials": {
            "openToken": "****",
            "notice": "Keep your token a secret!"
        },
        "options": {
            "curtain": {
                "disable_group": false
            }
        },
        "devicediscovery": true,
        "platform": "SwitchBot"
    }

Screenshots

image
image
image

Device & Model

SWITCHBOT-CURTAIN-W0701600

Node.js Version

v14.17.6

NPM Version

v6.14.15

Homebridge Version

v1.3.4

Homebridge Switchbot Plugin Version

v0.1.1

Homebridge Config UI X Plugin Version

v4.41.2

Operating System

Raspbian

Support Request: After the new version the devices are not found

Describe Your Problem

After the new version the devices are not found

Relevant log output

After update to version 1.1.0 the devices are not found anymore.

I already check if the token is correct and yes, everything looks nice.

Could you help please understand what is wrong?

There is no error message on console.

Thanks.
Nelson

Config for homebridge-switchbot

{
            "name": "SwitchBot",
            "credentials": {
                "openToken": "XXXXX",
                "notice": "Keep your token a secret!"
            },
            "options": {
                "devices": [
                    {
                        "bot": {
                            "deviceType": "outlet"
                        },
                        "meter": {
                            "hide_temperature": true,
                            "hide_humidity": true,
                            "unit": 1
                        },
                        "humidifier": {
                            "hide_temperature": true,
                            "set_minStep": 20
                        }
                    }
                ],
                "debug": "device"
            },
            "platform": "SwitchBot"
        }

Screenshots

Captura de ecrã 2021-11-17, às 12 34 37

Device & Model

RPI3

Node.js Version

v16.13.0

NPM Version

8.1.3

Homebridge Version

v1.3.6

Homebridge SwitchBot Plugin Version

1.1.0

Homebridge Config UI X Plugin Version

No response

Operating System

Raspbian

Support Request:

Describe Your Problem

Curtains are not visible among homebridge accessories

Relevant log output

Have been using the plugin for a while for Curtains, now they disappeared. Within the plugin the curtains show up, outside of it, however, they are not visible, hence cannot see in homekit either.

One error visible in the logs:

[2021. 12. 07. 22:30:04] [SwitchBot] Failed to Discover Devices. "Request failed with status code 504"

Reinstalled the plugin and did the integration again, did not help. Changed the token, paired again, result is the same.

Config for homebridge-switchbot

"name": "SwitchBot",
            "credentials": {
                "openToken": "openToken",
                "notice": "Keep your token a secret!"
            },
            "platform": "SwitchBot"
        }

Screenshots

Képernyőfotó 2021-12-07 - 22 37 25

Device & Model

SwitchBot Curtain & Hub Mini

Node.js Version

v17.2.0

NPM Version

1

Homebridge Version

1.3.8

Homebridge SwitchBot Plugin Version

1.3.0

Homebridge Config UI X Plugin Version

4.41.3

Operating System

Raspbian

Bug: Only Temperature is not being retrieved from Switchbot Meter.

Describe The Bug

Only Temperature is not being retrieved from Switchbot Meter.

To Reproduce

At the Homebridge UI accessory view, You can see that the temperature is displayed as 0.1 C. If you wait a few seconds, the correct number will be displayed, but if you refresh the browser, it will display 0.1 C again.

Expected behavior

At the Homebridge UI accessory view, the temperature is displayed as 0.1 C. If you wait a few seconds, the correct number will be displayed, but if you refresh the browser, it will display 0.1 C again.

Relevant log output

[11/14/2021, 4:04:16 AM] [@switchbot/homebridge-switchbot] This plugin generated a warning from the characteristic 'Current Temperature': characteristic value expected valid finite number and received "undefined" (undefined). See https://git.io/JtMGR for more info.
[11/14/2021, 4:04:16 AM] [@switchbot/homebridge-switchbot] Error: 
    at CurrentTemperature.Characteristic.characteristicWarning (/usr/local/lib/node_modules/homebridge/node_modules/hap-nodejs/src/lib/Characteristic.ts:2074:105)
    at CurrentTemperature.Characteristic.validateUserInput (/usr/local/lib/node_modules/homebridge/node_modules/hap-nodejs/src/lib/Characteristic.ts:1967:16)
    at CurrentTemperature.<anonymous> (/usr/local/lib/node_modules/homebridge/node_modules/hap-nodejs/src/lib/Characteristic.ts:1492:24)
    at step (/usr/local/lib/node_modules/homebridge/node_modules/tslib/tslib.js:143:27)
    at Object.next (/usr/local/lib/node_modules/homebridge/node_modules/tslib/tslib.js:124:57)
    at fulfilled (/usr/local/lib/node_modules/homebridge/node_modules/tslib/tslib.js:114:62)
    at processTicksAndRejections (node:internal/process/task_queues:96:5)
[11/14/2021, 4:04:16 AM] [@switchbot/homebridge-switchbot] This plugin generated a warning from the characteristic 'Current Temperature': characteristic value expected valid finite number and received "undefined" (undefined). See https://git.io/JtMGR for more info.

Config for homebridge-switchbot

{
    "bridge": {
        "name": "Homebridge 7312",
        "username": "SECRET",
        "port": SECRET,
        "pin": "SECRET"
    },
    "accessories": [],
    "platforms": [
        {
            "name": "Config",
            "port": 8581,
            "platform": "config"
        },
        {
            "name": "SwitchBot",
            "credentials": {
                "openToken": "SECRET",
                "notice": "Keep your token a secret!"
            },
            "platform": "SwitchBot",
            "_bridge": {
                "username": "SECRET",
                "port": 46530
            }
        }
    ]
}

Screenshots

image

Device & Model

SWITCHBOT-METERTH-S1

Node.js Version

v16.13.0

NPM Version

v8.1.0

Homebridge Version

v1.3.6

Homebridge Switchbot Plugin Version

v1.0.0

Homebridge Config UI X Plugin Version

No response

Operating System

Docker

Add Water Level to Humidifier

Is your feature request related to a problem? Please describe.

I want to be able to trigger Siri Shortcuts based on the water level

Describe the solution you'd like

Expose the water level as a sensor, so that a change to a certain percentage (or empty) can be used as a trigger in Siri Shortcuts. This way I can add a reminder notification for when the tank is low

Describe alternatives you've considered

Additional context

Feature Request: Smaller minimum refresh rate.

Problem

The current refresh rate is set to a minimum of 30 seconds. This results in a loss of agility when using motion sensors as triggers for Apple Home.

Solution

Setting the minimum refresh rate to 9 seconds will make it a little better. According to the SwitchBot Open API specification, the maximum number of requests that can be made in a day is 10000, so this should not be a problem.

Alternatives

No response

Additional context

No response

Feature Request: add support for motion detection of the contact sensor

Problem

even though considered to be beta, it would be cool to use the motion detection feature of the contact sensor in homebdrige. The API already exposes it

Solution

add support for the motion detector as an additional accessory in homebdrige, maybe optional via advances settings

Alternatives

No response

Additional context

No response

Support Request: Platform recording opposite states of bot

Describe Your Problem

Platform recording opposite state of bot. Shows On:true when the bot is off, and On:false when the bot is on. Note that bots are switch mode and NOT using inverse direction.

Relevant log output

[04/12/2021, 09:42:08] [SwitchBot] [DEBUG] Bot: Towel Rack BLE refreshStatus
[04/12/2021, 09:42:08] [SwitchBot] [DEBUG] Bot: Towel Rack BLE Address: cc:8b:b9:39:c2:9d
[04/12/2021, 09:42:08] [SwitchBot] [DEBUG] Bot: Cabinet Lights BLE refreshStatus
[04/12/2021, 09:42:08] [SwitchBot] [DEBUG] Bot: Cabinet Lights BLE Address: c4:94:4f:84:dc:17
[04/12/2021, 09:42:08] [SwitchBot] [DEBUG] Bot: Cabinet Lights serviceData: {"model":"H","modelName":"WoHand","mode":true,"state":false,"battery":97}
[04/12/2021, 09:42:08] [SwitchBot] [DEBUG] Bot: Cabinet Lights, model: H, modelName: WoHand, mode: true, state: false, battery: 97
[04/12/2021, 09:42:08] [SwitchBot] [DEBUG] Bot: Cabinet Lights connected: true
[04/12/2021, 09:42:08] [SwitchBot] [DEBUG] Bot: Towel Rack serviceData: {"model":"H","modelName":"WoHand","mode":true,"state":false,"battery":97}
[04/12/2021, 09:42:08] [SwitchBot] [DEBUG] Bot: Towel Rack, model: H, modelName: WoHand, mode: true, state: false, battery: 97
[04/12/2021, 09:42:08] [SwitchBot] [DEBUG] Bot: Towel Rack connected: true
[04/12/2021, 09:42:09] [SwitchBot] [DEBUG] Bot: Ventilation serviceData: {"model":"H","modelName":"WoHand","mode":true,"state":false,"battery":97}
[04/12/2021, 09:42:09] [SwitchBot] [DEBUG] Bot: Ventilation, model: H, modelName: WoHand, mode: true, state: false, battery: 97
[04/12/2021, 09:42:09] [SwitchBot] [DEBUG] Bot: Ventilation connected: true
[04/12/2021, 09:42:09] [SwitchBot] [DEBUG] Bot: Cabinet Lights serviceData: {"model":"H","modelName":"WoHand","mode":true,"state":false,"battery":97}
[04/12/2021, 09:42:09] [SwitchBot] [DEBUG] Bot: Cabinet Lights, model: H, modelName: WoHand, mode: true, state: false, battery: 97
[04/12/2021, 09:42:09] [SwitchBot] [DEBUG] Bot: Cabinet Lights connected: true
[04/12/2021, 09:42:09] [SwitchBot] [DEBUG] Bot: Towel Rack serviceData: {"model":"H","modelName":"WoHand","mode":true,"state":false,"battery":97}
[04/12/2021, 09:42:09] [SwitchBot] [DEBUG] Bot: Towel Rack, model: H, modelName: WoHand, mode: true, state: false, battery: 97
[04/12/2021, 09:42:09] [SwitchBot] [DEBUG] Bot: Towel Rack connected: true
[04/12/2021, 09:42:09] [SwitchBot] [DEBUG] Bot: Cabinet Lights serviceData: {"model":"H","modelName":"WoHand","mode":true,"state":false,"battery":97}
[04/12/2021, 09:42:09] [SwitchBot] [DEBUG] Bot: Cabinet Lights, model: H, modelName: WoHand, mode: true, state: false, battery: 97
[04/12/2021, 09:42:09] [SwitchBot] [DEBUG] Bot: Cabinet Lights connected: true
[04/12/2021, 09:42:09] [SwitchBot] [DEBUG] Bot: Cabinet Lights serviceData: {"model":"H","modelName":"WoHand","mode":true,"state":false,"battery":97}
[04/12/2021, 09:42:09] [SwitchBot] [DEBUG] Bot: Cabinet Lights, model: H, modelName: WoHand, mode: true, state: false, battery: 97
[04/12/2021, 09:42:09] [SwitchBot] [DEBUG] Bot: Cabinet Lights connected: true
[04/12/2021, 09:42:10] [SwitchBot] [DEBUG] Bot: Cabinet Lights serviceData: {"model":"H","modelName":"WoHand","mode":true,"state":false,"battery":97}
[04/12/2021, 09:42:10] [SwitchBot] [DEBUG] Bot: Cabinet Lights, model: H, modelName: WoHand, mode: true, state: false, battery: 97
[04/12/2021, 09:42:10] [SwitchBot] [DEBUG] Bot: Cabinet Lights connected: true
[04/12/2021, 09:42:10] [SwitchBot] [DEBUG] Bot: Ventilation serviceData: {"model":"H","modelName":"WoHand","mode":true,"state":false,"battery":97}
[04/12/2021, 09:42:10] [SwitchBot] [DEBUG] Bot: Ventilation, model: H, modelName: WoHand, mode: true, state: false, battery: 97
[04/12/2021, 09:42:10] [SwitchBot] [DEBUG] Bot: Ventilation connected: true
[04/12/2021, 09:42:10] [SwitchBot] [DEBUG] Bot: Ventilation serviceData: {"model":"H","modelName":"WoHand","mode":true,"state":false,"battery":97}
[04/12/2021, 09:42:10] [SwitchBot] [DEBUG] Bot: Ventilation, model: H, modelName: WoHand, mode: true, state: false, battery: 97
[04/12/2021, 09:42:10] [SwitchBot] [DEBUG] Bot: Ventilation connected: true
[04/12/2021, 09:42:10] [SwitchBot] [DEBUG] Bot: Cabinet Lights serviceData: {"model":"H","modelName":"WoHand","mode":true,"state":false,"battery":97}
[04/12/2021, 09:42:10] [SwitchBot] [DEBUG] Bot: Cabinet Lights, model: H, modelName: WoHand, mode: true, state: false, battery: 97
[04/12/2021, 09:42:10] [SwitchBot] [DEBUG] Bot: Cabinet Lights connected: true
[04/12/2021, 09:42:10] [SwitchBot] [DEBUG] Bot: Towel Rack serviceData: {"model":"H","modelName":"WoHand","mode":true,"state":false,"battery":97}
[04/12/2021, 09:42:10] [SwitchBot] [DEBUG] Bot: Towel Rack, model: H, modelName: WoHand, mode: true, state: false, battery: 97
[04/12/2021, 09:42:10] [SwitchBot] [DEBUG] Bot: Towel Rack connected: true
[04/12/2021, 09:42:11] [SwitchBot] [DEBUG] Bot: Ventilation serviceData: {"model":"H","modelName":"WoHand","mode":true,"state":false,"battery":97}
[04/12/2021, 09:42:11] [SwitchBot] [DEBUG] Bot: Ventilation, model: H, modelName: WoHand, mode: true, state: false, battery: 97
[04/12/2021, 09:42:11] [SwitchBot] [DEBUG] Bot: Ventilation connected: true
[04/12/2021, 09:42:11] [SwitchBot] [DEBUG] Bot: Cabinet Lights serviceData: {"model":"H","modelName":"WoHand","mode":true,"state":false,"battery":97}
[04/12/2021, 09:42:11] [SwitchBot] [DEBUG] Bot: Cabinet Lights, model: H, modelName: WoHand, mode: true, state: false, battery: 97
[04/12/2021, 09:42:11] [SwitchBot] [DEBUG] Bot: Cabinet Lights connected: true
[04/12/2021, 09:42:11] [SwitchBot] [DEBUG] Bot: Ventilation serviceData: {"model":"H","modelName":"WoHand","mode":true,"state":false,"battery":97}
[04/12/2021, 09:42:11] [SwitchBot] [DEBUG] Bot: Ventilation, model: H, modelName: WoHand, mode: true, state: false, battery: 97
[04/12/2021, 09:42:11] [SwitchBot] [DEBUG] Bot: Ventilation connected: true
[04/12/2021, 09:42:11] [SwitchBot] [DEBUG] Bot: Cabinet Lights serviceData: {"model":"H","modelName":"WoHand","mode":true,"state":false,"battery":97}
[04/12/2021, 09:42:11] [SwitchBot] [DEBUG] Bot: Cabinet Lights, model: H, modelName: WoHand, mode: true, state: false, battery: 97
[04/12/2021, 09:42:11] [SwitchBot] [DEBUG] Bot: Cabinet Lights connected: true
[04/12/2021, 09:42:11] [SwitchBot] [DEBUG] Bot: Towel Rack serviceData: {"model":"H","modelName":"WoHand","mode":true,"state":false,"battery":97}
[04/12/2021, 09:42:11] [SwitchBot] [DEBUG] Bot: Towel Rack, model: H, modelName: WoHand, mode: true, state: false, battery: 97
[04/12/2021, 09:42:11] [SwitchBot] [DEBUG] Bot: Towel Rack connected: true
[04/12/2021, 09:42:11] [SwitchBot] [DEBUG] Bot: Cabinet Lights serviceData: {"model":"H","modelName":"WoHand","mode":true,"state":false,"battery":97}
[04/12/2021, 09:42:11] [SwitchBot] [DEBUG] Bot: Cabinet Lights, model: H, modelName: WoHand, mode: true, state: false, battery: 97
[04/12/2021, 09:42:11] [SwitchBot] [DEBUG] Bot: Cabinet Lights connected: true
[04/12/2021, 09:42:12] [SwitchBot] [DEBUG] Bot: Cabinet Lights serviceData: {"model":"H","modelName":"WoHand","mode":true,"state":false,"battery":97}
[04/12/2021, 09:42:12] [SwitchBot] [DEBUG] Bot: Cabinet Lights, model: H, modelName: WoHand, mode: true, state: false, battery: 97
[04/12/2021, 09:42:12] [SwitchBot] [DEBUG] Bot: Cabinet Lights connected: true
[04/12/2021, 09:42:12] [SwitchBot] [DEBUG] Bot: Cabinet Lights serviceData: {"model":"H","modelName":"WoHand","mode":true,"state":false,"battery":97}
[04/12/2021, 09:42:12] [SwitchBot] [DEBUG] Bot: Cabinet Lights, model: H, modelName: WoHand, mode: true, state: false, battery: 97
[04/12/2021, 09:42:12] [SwitchBot] [DEBUG] Bot: Cabinet Lights connected: true
[04/12/2021, 09:42:12] [SwitchBot] [DEBUG] Bot: Towel Rack serviceData: {"model":"H","modelName":"WoHand","mode":true,"state":false,"battery":97}
[04/12/2021, 09:42:12] [SwitchBot] [DEBUG] Bot: Towel Rack, model: H, modelName: WoHand, mode: true, state: false, battery: 97
[04/12/2021, 09:42:12] [SwitchBot] [DEBUG] Bot: Towel Rack connected: true
[04/12/2021, 09:42:12] [SwitchBot] [DEBUG] Bot: Towel Rack serviceData: {"model":"H","modelName":"WoHand","mode":true,"state":false,"battery":97}
[04/12/2021, 09:42:12] [SwitchBot] [DEBUG] Bot: Towel Rack, model: H, modelName: WoHand, mode: true, state: false, battery: 97
[04/12/2021, 09:42:12] [SwitchBot] [DEBUG] Bot: Towel Rack connected: true
[04/12/2021, 09:42:13] [SwitchBot] [DEBUG] Bot: Towel Rack serviceData: {"model":"H","modelName":"WoHand","mode":true,"state":false,"battery":97}
[04/12/2021, 09:42:13] [SwitchBot] [DEBUG] Bot: Towel Rack, model: H, modelName: WoHand, mode: true, state: false, battery: 97
[04/12/2021, 09:42:13] [SwitchBot] [DEBUG] Bot: Towel Rack connected: true
[04/12/2021, 09:42:13] [SwitchBot] [DEBUG] Bot: Ventilation serviceData: {"model":"H","modelName":"WoHand","mode":true,"state":false,"battery":97}
[04/12/2021, 09:42:13] [SwitchBot] [DEBUG] Bot: Ventilation, model: H, modelName: WoHand, mode: true, state: false, battery: 97
[04/12/2021, 09:42:13] [SwitchBot] [DEBUG] Bot: Ventilation connected: true
[04/12/2021, 09:42:13] [SwitchBot] [DEBUG] Bot: Ventilation serviceData: {"model":"H","modelName":"WoHand","mode":true,"state":false,"battery":97}
[04/12/2021, 09:42:13] [SwitchBot] [DEBUG] Bot: Ventilation, model: H, modelName: WoHand, mode: true, state: false, battery: 97
[04/12/2021, 09:42:13] [SwitchBot] [DEBUG] Bot: Ventilation connected: true
[04/12/2021, 09:42:13] [SwitchBot] [DEBUG] Bot: Cabinet Lights serviceData: {"model":"H","modelName":"WoHand","mode":true,"state":false,"battery":97}
[04/12/2021, 09:42:13] [SwitchBot] [DEBUG] Bot: Cabinet Lights, model: H, modelName: WoHand, mode: true, state: false, battery: 97
[04/12/2021, 09:42:13] [SwitchBot] [DEBUG] Bot: Cabinet Lights connected: true
[04/12/2021, 09:42:13] [SwitchBot] [DEBUG] Bot: Towel Rack serviceData: {"model":"H","modelName":"WoHand","mode":true,"state":false,"battery":97}
[04/12/2021, 09:42:13] [SwitchBot] [DEBUG] Bot: Towel Rack, model: H, modelName: WoHand, mode: true, state: false, battery: 97
[04/12/2021, 09:42:13] [SwitchBot] [DEBUG] Bot: Towel Rack connected: true
[04/12/2021, 09:42:14] [SwitchBot] [DEBUG] Bot: Ventilation serviceData: {"model":"H","modelName":"WoHand","mode":true,"state":false,"battery":97}
[04/12/2021, 09:42:14] [SwitchBot] [DEBUG] Bot: Ventilation, model: H, modelName: WoHand, mode: true, state: false, battery: 97
[04/12/2021, 09:42:14] [SwitchBot] [DEBUG] Bot: Ventilation connected: true
[04/12/2021, 09:42:14] [SwitchBot] [DEBUG] Bot: Ventilation serviceData: {"model":"H","modelName":"WoHand","mode":true,"state":false,"battery":97}
[04/12/2021, 09:42:14] [SwitchBot] [DEBUG] Bot: Ventilation, model: H, modelName: WoHand, mode: true, state: false, battery: 97
[04/12/2021, 09:42:14] [SwitchBot] [DEBUG] Bot: Ventilation connected: true
[04/12/2021, 09:42:14] [SwitchBot] [DEBUG] Bot: Towel Rack serviceData: {"model":"H","modelName":"WoHand","mode":true,"state":false,"battery":97}
[04/12/2021, 09:42:14] [SwitchBot] [DEBUG] Bot: Towel Rack, model: H, modelName: WoHand, mode: true, state: false, battery: 97
[04/12/2021, 09:42:14] [SwitchBot] [DEBUG] Bot: Towel Rack connected: true
[04/12/2021, 09:42:14] [SwitchBot] [DEBUG] Bot: Towel Rack serviceData: {"model":"H","modelName":"WoHand","mode":true,"state":false,"battery":97}
[04/12/2021, 09:42:14] [SwitchBot] [DEBUG] Bot: Towel Rack, model: H, modelName: WoHand, mode: true, state: false, battery: 97
[04/12/2021, 09:42:14] [SwitchBot] [DEBUG] Bot: Towel Rack connected: true
[04/12/2021, 09:42:15] [SwitchBot] [DEBUG] Bot: Cabinet Lights serviceData: {"model":"H","modelName":"WoHand","mode":true,"state":false,"battery":97}
[04/12/2021, 09:42:15] [SwitchBot] [DEBUG] Bot: Cabinet Lights, model: H, modelName: WoHand, mode: true, state: false, battery: 97
[04/12/2021, 09:42:15] [SwitchBot] [DEBUG] Bot: Cabinet Lights connected: true
[04/12/2021, 09:42:15] [SwitchBot] [DEBUG] Bot: Ventilation serviceData: {"model":"H","modelName":"WoHand","mode":true,"state":false,"battery":97}
[04/12/2021, 09:42:15] [SwitchBot] [DEBUG] Bot: Ventilation, model: H, modelName: WoHand, mode: true, state: false, battery: 97
[04/12/2021, 09:42:15] [SwitchBot] [DEBUG] Bot: Ventilation connected: true
[04/12/2021, 09:42:15] [SwitchBot] [DEBUG] Bot: Cabinet Lights serviceData: {"model":"H","modelName":"WoHand","mode":true,"state":false,"battery":97}
[04/12/2021, 09:42:15] [SwitchBot] [DEBUG] Bot: Cabinet Lights, model: H, modelName: WoHand, mode: true, state: false, battery: 97
[04/12/2021, 09:42:15] [SwitchBot] [DEBUG] Bot: Cabinet Lights connected: true
[04/12/2021, 09:42:15] [SwitchBot] [DEBUG] Bot: Towel Rack serviceData: {"model":"H","modelName":"WoHand","mode":true,"state":false,"battery":97}
[04/12/2021, 09:42:15] [SwitchBot] [DEBUG] Bot: Towel Rack, model: H, modelName: WoHand, mode: true, state: false, battery: 97
[04/12/2021, 09:42:15] [SwitchBot] [DEBUG] Bot: Towel Rack connected: true
[04/12/2021, 09:42:15] [SwitchBot] [DEBUG] Bot: Ventilation serviceData: {"model":"H","modelName":"WoHand","mode":true,"state":false,"battery":97}
[04/12/2021, 09:42:15] [SwitchBot] [DEBUG] Bot: Ventilation, model: H, modelName: WoHand, mode: true, state: false, battery: 97
[04/12/2021, 09:42:15] [SwitchBot] [DEBUG] Bot: Ventilation connected: true
[04/12/2021, 09:42:15] [SwitchBot] [DEBUG] Bot: Cabinet Lights serviceData: {"model":"H","modelName":"WoHand","mode":true,"state":false,"battery":97}
[04/12/2021, 09:42:15] [SwitchBot] [DEBUG] Bot: Cabinet Lights, model: H, modelName: WoHand, mode: true, state: false, battery: 97
[04/12/2021, 09:42:15] [SwitchBot] [DEBUG] Bot: Cabinet Lights connected: true
[04/12/2021, 09:42:15] [SwitchBot] [DEBUG] Bot: Towel Rack serviceData: {"model":"H","modelName":"WoHand","mode":true,"state":false,"battery":97}
[04/12/2021, 09:42:15] [SwitchBot] [DEBUG] Bot: Towel Rack, model: H, modelName: WoHand, mode: true, state: false, battery: 97
[04/12/2021, 09:42:15] [SwitchBot] [DEBUG] Bot: Towel Rack connected: true
[04/12/2021, 09:42:16] [SwitchBot] [DEBUG] Bot: Ventilation serviceData: {"model":"H","modelName":"WoHand","mode":true,"state":false,"battery":97}
[04/12/2021, 09:42:16] [SwitchBot] [DEBUG] Bot: Ventilation, model: H, modelName: WoHand, mode: true, state: false, battery: 97
[04/12/2021, 09:42:16] [SwitchBot] [DEBUG] Bot: Ventilation connected: true
[04/12/2021, 09:42:16] [SwitchBot] [DEBUG] Bot: Cabinet Lights serviceData: {"model":"H","modelName":"WoHand","mode":true,"state":false,"battery":97}
[04/12/2021, 09:42:16] [SwitchBot] [DEBUG] Bot: Cabinet Lights, model: H, modelName: WoHand, mode: true, state: false, battery: 97
[04/12/2021, 09:42:16] [SwitchBot] [DEBUG] Bot: Cabinet Lights connected: true
[04/12/2021, 09:42:16] [SwitchBot] [DEBUG] Bot: Towel Rack serviceData: {"model":"H","modelName":"WoHand","mode":true,"state":false,"battery":97}
[04/12/2021, 09:42:16] [SwitchBot] [DEBUG] Bot: Towel Rack, model: H, modelName: WoHand, mode: true, state: false, battery: 97
[04/12/2021, 09:42:16] [SwitchBot] [DEBUG] Bot: Towel Rack connected: true
[04/12/2021, 09:42:16] [SwitchBot] [DEBUG] Bot: Ventilation serviceData: {"model":"H","modelName":"WoHand","mode":true,"state":false,"battery":97}
[04/12/2021, 09:42:16] [SwitchBot] [DEBUG] Bot: Ventilation, model: H, modelName: WoHand, mode: true, state: false, battery: 97
[04/12/2021, 09:42:16] [SwitchBot] [DEBUG] Bot: Ventilation connected: true
[04/12/2021, 09:42:16] [Calendar] Updating calendar Aidan Work
[04/12/2021, 09:42:16] [SwitchBot] [DEBUG] Bot: Towel Rack serviceData: {"model":"H","modelName":"WoHand","mode":true,"state":false,"battery":97}
[04/12/2021, 09:42:16] [SwitchBot] [DEBUG] Bot: Towel Rack, model: H, modelName: WoHand, mode: true, state: false, battery: 97
[04/12/2021, 09:42:16] [SwitchBot] [DEBUG] Bot: Towel Rack connected: true
[04/12/2021, 09:42:16] [SwitchBot] [DEBUG] Bot: Ventilation serviceData: {"model":"H","modelName":"WoHand","mode":true,"state":false,"battery":97}
[04/12/2021, 09:42:16] [SwitchBot] [DEBUG] Bot: Ventilation, model: H, modelName: WoHand, mode: true, state: false, battery: 97
[04/12/2021, 09:42:16] [SwitchBot] [DEBUG] Bot: Ventilation connected: true
[04/12/2021, 09:42:17] [SwitchBot] [DEBUG] Bot: Cabinet Lights serviceData: {"model":"H","modelName":"WoHand","mode":true,"state":false,"battery":97}
[04/12/2021, 09:42:17] [SwitchBot] [DEBUG] Bot: Cabinet Lights, model: H, modelName: WoHand, mode: true, state: false, battery: 97
[04/12/2021, 09:42:17] [SwitchBot] [DEBUG] Bot: Cabinet Lights connected: true
[04/12/2021, 09:42:17] [SwitchBot] [DEBUG] Bot: Towel Rack serviceData: {"model":"H","modelName":"WoHand","mode":true,"state":false,"battery":97}
[04/12/2021, 09:42:17] [SwitchBot] [DEBUG] Bot: Towel Rack, model: H, modelName: WoHand, mode: true, state: false, battery: 97
[04/12/2021, 09:42:17] [SwitchBot] [DEBUG] Bot: Towel Rack connected: true
[04/12/2021, 09:42:17] [SwitchBot] [DEBUG] Bot: Ventilation serviceData: {"model":"H","modelName":"WoHand","mode":true,"state":false,"battery":97}
[04/12/2021, 09:42:17] [SwitchBot] [DEBUG] Bot: Ventilation, model: H, modelName: WoHand, mode: true, state: false, battery: 97
[04/12/2021, 09:42:17] [SwitchBot] [DEBUG] Bot: Ventilation connected: true
[04/12/2021, 09:42:17] [SwitchBot] [DEBUG] Bot: Towel Rack serviceData: {"model":"H","modelName":"WoHand","mode":true,"state":false,"battery":97}
[04/12/2021, 09:42:17] [SwitchBot] [DEBUG] Bot: Towel Rack, model: H, modelName: WoHand, mode: true, state: false, battery: 97
[04/12/2021, 09:42:17] [SwitchBot] [DEBUG] Bot: Towel Rack connected: true
[04/12/2021, 09:42:17] [SwitchBot] [DEBUG] Bot: Ventilation serviceData: {"model":"H","modelName":"WoHand","mode":true,"state":false,"battery":97}
[04/12/2021, 09:42:17] [SwitchBot] [DEBUG] Bot: Ventilation, model: H, modelName: WoHand, mode: true, state: false, battery: 97
[04/12/2021, 09:42:17] [SwitchBot] [DEBUG] Bot: Ventilation connected: true
[04/12/2021, 09:42:19] [Calendar] Pushing calendar sensor 'Aidan Work' state 0 - value 0
[04/12/2021, 09:42:19] [Calendar] Pushing calendar sensor '~' state 0 - value 0
[04/12/2021, 09:42:19] [Button Platform] warning: heartbeat 503, drift 1164
[04/12/2021, 09:42:19] [ZB] heartbeat 490, drift 573
[04/12/2021, 09:42:17] [SwitchBot] [DEBUG] Bot: Ventilation serviceData: {"model":"H","modelName":"WoHand","mode":true,"state":false,"battery":97}
[04/12/2021, 09:42:17] [SwitchBot] [DEBUG] Bot: Ventilation, model: H, modelName: WoHand, mode: true, state: false, battery: 97
[04/12/2021, 09:42:17] [SwitchBot] [DEBUG] Bot: Ventilation connected: true
[04/12/2021, 09:42:18] [SwitchBot] [DEBUG] Bot: Ventilation serviceData: {"model":"H","modelName":"WoHand","mode":true,"state":false,"battery":97}
[04/12/2021, 09:42:18] [SwitchBot] [DEBUG] Bot: Ventilation, model: H, modelName: WoHand, mode: true, state: false, battery: 97
[04/12/2021, 09:42:18] [SwitchBot] [DEBUG] Bot: Ventilation connected: true
[04/12/2021, 09:42:18] [SwitchBot] [DEBUG] Bot: Cabinet Lights serviceData: {"model":"H","modelName":"WoHand","mode":true,"state":false,"battery":97}
[04/12/2021, 09:42:18] [SwitchBot] [DEBUG] Bot: Cabinet Lights, model: H, modelName: WoHand, mode: true, state: false, battery: 97
[04/12/2021, 09:42:18] [SwitchBot] [DEBUG] Bot: Cabinet Lights connected: true
[04/12/2021, 09:42:18] [SwitchBot] [DEBUG] Bot: Ventilation serviceData: {"model":"H","modelName":"WoHand","mode":true,"state":false,"battery":97}
[04/12/2021, 09:42:18] [SwitchBot] [DEBUG] Bot: Ventilation, model: H, modelName: WoHand, mode: true, state: false, battery: 97
[04/12/2021, 09:42:18] [SwitchBot] [DEBUG] Bot: Ventilation connected: true
[04/12/2021, 09:42:18] [SwitchBot] [DEBUG] Bot: Ventilation BLE parseStatus
[04/12/2021, 09:42:18] [SwitchBot] [DEBUG] Bot: Ventilation Switch Mode, mode: true, On: false
[04/12/2021, 09:42:18] [SwitchBot] [DEBUG] Bot: Ventilation BatteryLevel: 97
[04/12/2021, 09:42:18] [SwitchBot] [DEBUG] Bot: Ventilation updateCharacteristic On: false
[04/12/2021, 09:42:18] [SwitchBot] [DEBUG] Bot: Ventilation updateCharacteristic BatteryLevel: 97
[04/12/2021, 09:42:18] [SwitchBot] [DEBUG] Bot: Ventilation updateCharacteristic StatusLowBattery: 0
[04/12/2021, 09:42:18] [SwitchBot] [DEBUG] Bot: Towel Rack BLE parseStatus
[04/12/2021, 09:42:18] [SwitchBot] [DEBUG] Bot: Towel Rack Switch Mode, mode: true, On: false
[04/12/2021, 09:42:18] [SwitchBot] [DEBUG] Bot: Towel Rack BatteryLevel: 97
[04/12/2021, 09:42:18] [SwitchBot] [DEBUG] Bot: Towel Rack updateCharacteristic On: false
[04/12/2021, 09:42:18] [SwitchBot] [DEBUG] Bot: Towel Rack updateCharacteristic BatteryLevel: 97
[04/12/2021, 09:42:18] [SwitchBot] [DEBUG] Bot: Towel Rack updateCharacteristic StatusLowBattery: 0
[04/12/2021, 09:42:18] [SwitchBot] [DEBUG] Bot: Cabinet Lights BLE parseStatus
[04/12/2021, 09:42:18] [SwitchBot] [DEBUG] Bot: Cabinet Lights Switch Mode, mode: true, On: false
[04/12/2021, 09:42:18] [SwitchBot] [DEBUG] Bot: Cabinet Lights BatteryLevel: 97
[04/12/2021, 09:42:18] [SwitchBot] [DEBUG] Bot: Cabinet Lights updateCharacteristic On: false
[04/12/2021, 09:42:18] [SwitchBot] [DEBUG] Bot: Cabinet Lights updateCharacteristic BatteryLevel: 97
[04/12/2021, 09:42:18] [SwitchBot] [DEBUG] Bot: Cabinet Lights updateCharacteristic StatusLowBattery: 0
[04/12/2021, 09:42:27] [SwitchBot] [DEBUG] Bot: Towel Rack On: true
[04/12/2021, 09:42:28] [SwitchBot] [DEBUG] Bot: Towel Rack BLE pushChanges
[04/12/2021, 09:42:28] [SwitchBot] [DEBUG] Bot: Towel Rack BLE Address: cc:8b:b9:39:c2:9d
[04/12/2021, 09:42:28] [SwitchBot] [DEBUG] Bot: Towel Rack Press Mode: switch
[04/12/2021, 09:42:28] [SwitchBot] [DEBUG] Bot: Towel Rack BLE refreshStatus
[04/12/2021, 09:42:28] [SwitchBot] [DEBUG] Bot: Towel Rack BLE Address: cc:8b:b9:39:c2:9d
[04/12/2021, 09:42:28] [SwitchBot] [DEBUG] Bot: Towel Rack serviceData: {"model":"H","modelName":"WoHand","mode":true,"state":false,"battery":97}
[04/12/2021, 09:42:28] [SwitchBot] [DEBUG] Bot: Towel Rack, model: H, modelName: WoHand, mode: true, state: false, battery: 97
[04/12/2021, 09:42:28] [SwitchBot] [DEBUG] Bot: Towel Rack connected: true
[04/12/2021, 09:42:28] [SwitchBot] Bot: Towel Rack On: true
[04/12/2021, 09:42:30] [SwitchBot] Bot: Towel Rack failed pushChanges with BLE Connection
[04/12/2021, 09:42:30] [SwitchBot] Bot: Towel Rack failed pushChanges with BLE Connection, Error: {}
[04/12/2021, 09:42:38] [SwitchBot] [DEBUG] Bot: Towel Rack BLE parseStatus
[04/12/2021, 09:42:38] [SwitchBot] [DEBUG] Bot: Towel Rack Switch Mode, mode: true, On: false
[04/12/2021, 09:42:38] [SwitchBot] [DEBUG] Bot: Towel Rack BatteryLevel: 97
[04/12/2021, 09:42:38] [SwitchBot] [DEBUG] Bot: Towel Rack updateCharacteristic On: false
[04/12/2021, 09:42:38] [SwitchBot] [DEBUG] Bot: Towel Rack updateCharacteristic BatteryLevel: 97
[04/12/2021, 09:42:38] [SwitchBot] [DEBUG] Bot: Towel Rack updateCharacteristic StatusLowBattery: 0
[04/12/2021, 09:42:52] [ZB] Motion 1: set homekit light level from 174.0203 lux to 214.4865 lux
[04/12/2021, 09:43:35] [ZB] White Spot 3: set homekit transition control to {"colorTemperature":{"iid":13,"transitionParameters":{"2.1.2.1":"C4F33DA963C94C0F8B896C36A33EEF9E","startTime":"2021-12-04T09:39:22.149Z","2.1.2.3":"73D8252359D93D1D"},"runtime":253212}}
[04/12/2021, 09:43:35] [ZB] White Spot 6: set homekit transition control to {"colorTemperature":{"iid":13,"transitionParameters":{"2.1.2.1":"C4F33DA963C94C0F8B896C36A33EEF9E","startTime":"2021-12-04T09:39:22.149Z","2.1.2.3":"73D8252359D93D1D"},"runtime":253214}}
[04/12/2021, 09:43:35] [ZB] White Spot 4: set homekit transition control to {"colorTemperature":{"iid":13,"transitionParameters":{"2.1.2.1":"C4F33DA963C94C0F8B896C36A33EEF9E","startTime":"2021-12-04T09:39:22.149Z","2.1.2.3":"73D8252359D93D1D"},"runtime":253234}}
[04/12/2021, 09:43:35] [ZB] White Spot 8: set homekit transition control to {"colorTemperature":{"iid":13,"transitionParameters":{"2.1.2.1":"C4F33DA963C94C0F8B896C36A33EEF9E","startTime":"2021-12-04T09:39:22.149Z","2.1.2.3":"73D8252359D93D1D"},"runtime":253237}}
[04/12/2021, 09:43:35] [ZB] White Spot 14: set homekit transition control to {"colorTemperature":{"iid":13,"transitionParameters":{"2.1.2.1":"C4F33DA963C94C0F8B896C36A33EEF9E","startTime":"2021-12-04T09:39:22.149Z","2.1.2.3":"73D8252359D93D1D"},"runtime":253241}}
[04/12/2021, 09:43:35] [ZB] White Spot 2: set homekit transition control to {"colorTemperature":{"iid":13,"transitionParameters":{"2.1.2.1":"C4F33DA963C94C0F8B896C36A33EEF9E","startTime":"2021-12-04T09:39:22.149Z","2.1.2.3":"73D8252359D93D1D"},"runtime":253248}}
[04/12/2021, 09:43:35] [ZB] White Spot 1: set homekit transition control to {"colorTemperature":{"iid":13,"transitionParameters":{"2.1.2.1":"C4F33DA963C94C0F8B896C36A33EEF9E","startTime":"2021-12-04T09:39:22.149Z","2.1.2.3":"73D8252359D93D1D"},"runtime":253252}}
[04/12/2021, 09:43:35] [ZB] White Spot 7: set homekit transition control to {"colorTemperature":{"iid":13,"transitionParameters":{"2.1.2.1":"C4F33DA963C94C0F8B896C36A33EEF9E","startTime":"2021-12-04T09:39:22.149Z","2.1.2.3":"73D8252359D93D1D"},"runtime":253255}}
[04/12/2021, 09:43:35] [ZB] White Spot 5: set homekit transition control to {"colorTemperature":{"iid":13,"transitionParameters":{"2.1.2.1":"C4F33DA963C94C0F8B896C36A33EEF9E","startTime":"2021-12-04T09:39:22.149Z","2.1.2.3":"73D8252359D93D1D"},"runtime":253271}}
[04/12/2021, 09:43:35] [ZB] Colour Spot 1: set homekit transition control to {"colorTemperature":{"iid":13,"transitionParameters":{"2.1.2.1":"C4F33DA963C94C0F8B896C36A33EEF9E","startTime":"2021-12-04T09:39:22.149Z","2.1.2.3":"73D8252359D93D1D"},"runtime":253273}}
[04/12/2021, 09:43:35] [SwitchBotPlatform] Current state of Bot was returned: OFF
[04/12/2021, 09:43:35] [SwitchBotPlatform] Current state of Bot was returned: OFF
[04/12/2021, 09:43:35] [SwitchBotPlatform] Current state of Bot was returned: OFF
[04/12/2021, 09:43:35] [5 Min Refresh] Schedule: [OFF]
[04/12/2021, 09:43:53] [Guests Present] No guests are present
[04/12/2021, 09:44:08] [SwitchBot] [DEBUG] Bot: Ventilation BLE refreshStatus
[04/12/2021, 09:44:08] [SwitchBot] [DEBUG] Bot: Ventilation BLE Address: eb:0c:79:24:e9:b6
[04/12/2021, 09:44:08] [SwitchBot] [DEBUG] Bot: Towel Rack BLE refreshStatus
[04/12/2021, 09:44:08] [SwitchBot] [DEBUG] Bot: Towel Rack BLE Address: cc:8b:b9:39:c2:9d
[04/12/2021, 09:44:08] [SwitchBot] [DEBUG] Bot: Cabinet Lights BLE refreshStatus
[04/12/2021, 09:44:08] [SwitchBot] [DEBUG] Bot: Cabinet Lights BLE Address: c4:94:4f:84:dc:17
[04/12/2021, 09:44:08] [SwitchBot] [DEBUG] Bot: Cabinet Lights serviceData: {"model":"H","modelName":"WoHand","mode":true,"state":false,"battery":97}
[04/12/2021, 09:44:08] [SwitchBot] [DEBUG] Bot: Cabinet Lights, model: H, modelName: WoHand, mode: true, state: false, battery: 97
[04/12/2021, 09:44:08] [SwitchBot] [DEBUG] Bot: Cabinet Lights connected: true
[04/12/2021, 09:44:09] [SwitchBot] [DEBUG] Bot: Ventilation serviceData: {"model":"H","modelName":"WoHand","mode":true,"state":false,"battery":97}
[04/12/2021, 09:44:09] [SwitchBot] [DEBUG] Bot: Ventilation, model: H, modelName: WoHand, mode: true, state: false, battery: 97
[04/12/2021, 09:44:09] [SwitchBot] [DEBUG] Bot: Ventilation connected: true
[04/12/2021, 09:44:09] [SwitchBot] [DEBUG] Bot: Towel Rack serviceData: {"model":"H","modelName":"WoHand","mode":true,"state":false,"battery":97}
[04/12/2021, 09:44:09] [SwitchBot] [DEBUG] Bot: Towel Rack, model: H, modelName: WoHand, mode: true, state: false, battery: 97
[04/12/2021, 09:44:09] [SwitchBot] [DEBUG] Bot: Towel Rack connected: true
[04/12/2021, 09:44:09] [SwitchBot] [DEBUG] Bot: Ventilation serviceData: {"model":"H","modelName":"WoHand","mode":true,"state":false,"battery":97}
[04/12/2021, 09:44:09] [SwitchBot] [DEBUG] Bot: Ventilation, model: H, modelName: WoHand, mode: true, state: false, battery: 97
[04/12/2021, 09:44:09] [SwitchBot] [DEBUG] Bot: Ventilation connected: true
[04/12/2021, 09:44:09] [SwitchBot] [DEBUG] Bot: Cabinet Lights serviceData: {"model":"H","modelName":"WoHand","mode":true,"state":false,"battery":97}
[04/12/2021, 09:44:09] [SwitchBot] [DEBUG] Bot: Cabinet Lights, model: H, modelName: WoHand, mode: true, state: false, battery: 97
[04/12/2021, 09:44:09] [SwitchBot] [DEBUG] Bot: Cabinet Lights connected: true
[04/12/2021, 09:44:09] [SwitchBot] [DEBUG] Bot: Towel Rack serviceData: {"model":"H","modelName":"WoHand","mode":true,"state":false,"battery":97}
[04/12/2021, 09:44:09] [SwitchBot] [DEBUG] Bot: Towel Rack, model: H, modelName: WoHand, mode: true, state: false, battery: 97
[04/12/2021, 09:44:09] [SwitchBot] [DEBUG] Bot: Towel Rack connected: true
[04/12/2021, 09:44:10] [SwitchBot] [DEBUG] Bot: Towel Rack serviceData: {"model":"H","modelName":"WoHand","mode":true,"state":false,"battery":97}
[04/12/2021, 09:44:10] [SwitchBot] [DEBUG] Bot: Towel Rack, model: H, modelName: WoHand, mode: true, state: false, battery: 97
[04/12/2021, 09:44:10] [SwitchBot] [DEBUG] Bot: Towel Rack connected: true
[04/12/2021, 09:44:10] [SwitchBot] [DEBUG] Bot: Ventilation serviceData: {"model":"H","modelName":"WoHand","mode":true,"state":false,"battery":97}
[04/12/2021, 09:44:10] [SwitchBot] [DEBUG] Bot: Ventilation, model: H, modelName: WoHand, mode: true, state: false, battery: 97
[04/12/2021, 09:44:10] [SwitchBot] [DEBUG] Bot: Ventilation connected: true
[04/12/2021, 09:44:10] [SwitchBot] [DEBUG] Bot: Cabinet Lights serviceData: {"model":"H","modelName":"WoHand","mode":true,"state":false,"battery":97}
[04/12/2021, 09:44:10] [SwitchBot] [DEBUG] Bot: Cabinet Lights, model: H, modelName: WoHand, mode: true, state: false, battery: 97
[04/12/2021, 09:44:10] [SwitchBot] [DEBUG] Bot: Cabinet Lights connected: true
[04/12/2021, 09:44:10] [SwitchBot] [DEBUG] Bot: Towel Rack serviceData: {"model":"H","modelName":"WoHand","mode":true,"state":false,"battery":97}
[04/12/2021, 09:44:10] [SwitchBot] [DEBUG] Bot: Towel Rack, model: H, modelName: WoHand, mode: true, state: false, battery: 97
[04/12/2021, 09:44:10] [SwitchBot] [DEBUG] Bot: Towel Rack connected: true
[04/12/2021, 09:44:11] [SwitchBot] [DEBUG] Bot: Towel Rack serviceData: {"model":"H","modelName":"WoHand","mode":true,"state":false,"battery":97}
[04/12/2021, 09:44:11] [SwitchBot] [DEBUG] Bot: Towel Rack, model: H, modelName: WoHand, mode: true, state: false, battery: 97
[04/12/2021, 09:44:11] [SwitchBot] [DEBUG] Bot: Towel Rack connected: true
[04/12/2021, 09:44:11] [SwitchBot] [DEBUG] Bot: Ventilation serviceData: {"model":"H","modelName":"WoHand","mode":true,"state":false,"battery":97}
[04/12/2021, 09:44:11] [SwitchBot] [DEBUG] Bot: Ventilation, model: H, modelName: WoHand, mode: true, state: false, battery: 97
[04/12/2021, 09:44:11] [SwitchBot] [DEBUG] Bot: Ventilation connected: true
[04/12/2021, 09:44:11] [SwitchBot] [DEBUG] Bot: Ventilation serviceData: {"model":"H","modelName":"WoHand","mode":true,"state":false,"battery":97}
[04/12/2021, 09:44:11] [SwitchBot] [DEBUG] Bot: Ventilation, model: H, modelName: WoHand, mode: true, state: false, battery: 97
[04/12/2021, 09:44:11] [SwitchBot] [DEBUG] Bot: Ventilation connected: true
[04/12/2021, 09:44:11] [SwitchBot] [DEBUG] Bot: Towel Rack serviceData: {"model":"H","modelName":"WoHand","mode":true,"state":false,"battery":97}
[04/12/2021, 09:44:11] [SwitchBot] [DEBUG] Bot: Towel Rack, model: H, modelName: WoHand, mode: true, state: false, battery: 97
[04/12/2021, 09:44:11] [SwitchBot] [DEBUG] Bot: Towel Rack connected: true
[04/12/2021, 09:44:11] [SwitchBot] [DEBUG] Bot: Cabinet Lights serviceData: {"model":"H","modelName":"WoHand","mode":true,"state":false,"battery":97}
[04/12/2021, 09:44:11] [SwitchBot] [DEBUG] Bot: Cabinet Lights, model: H, modelName: WoHand, mode: true, state: false, battery: 97
[04/12/2021, 09:44:11] [SwitchBot] [DEBUG] Bot: Cabinet Lights connected: true
[04/12/2021, 09:44:12] [SwitchBot] [DEBUG] Bot: Ventilation serviceData: {"model":"H","modelName":"WoHand","mode":true,"state":false,"battery":97}
[04/12/2021, 09:44:12] [SwitchBot] [DEBUG] Bot: Ventilation, model: H, modelName: WoHand, mode: true, state: false, battery: 97
[04/12/2021, 09:44:12] [SwitchBot] [DEBUG] Bot: Ventilation connected: true
[04/12/2021, 09:44:12] [SwitchBot] [DEBUG] Bot: Towel Rack serviceData: {"model":"H","modelName":"WoHand","mode":true,"state":false,"battery":97}
[04/12/2021, 09:44:12] [SwitchBot] [DEBUG] Bot: Towel Rack, model: H, modelName: WoHand, mode: true, state: false, battery: 97
[04/12/2021, 09:44:12] [SwitchBot] [DEBUG] Bot: Towel Rack connected: true
[04/12/2021, 09:44:12] [SwitchBot] [DEBUG] Bot: Cabinet Lights serviceData: {"model":"H","modelName":"WoHand","mode":true,"state":false,"battery":97}
[04/12/2021, 09:44:12] [SwitchBot] [DEBUG] Bot: Cabinet Lights, model: H, modelName: WoHand, mode: true, state: false, battery: 97
[04/12/2021, 09:44:12] [SwitchBot] [DEBUG] Bot: Cabinet Lights connected: true
[04/12/2021, 09:44:12] [SwitchBot] [DEBUG] Bot: Towel Rack serviceData: {"model":"H","modelName":"WoHand","mode":true,"state":false,"battery":97}
[04/12/2021, 09:44:12] [SwitchBot] [DEBUG] Bot: Towel Rack, model: H, modelName: WoHand, mode: true, state: false, battery: 97
[04/12/2021, 09:44:12] [SwitchBot] [DEBUG] Bot: Towel Rack connected: true
[04/12/2021, 09:44:12] [SwitchBot] [DEBUG] Bot: Cabinet Lights serviceData: {"model":"H","modelName":"WoHand","mode":true,"state":false,"battery":97}
[04/12/2021, 09:44:12] [SwitchBot] [DEBUG] Bot: Cabinet Lights, model: H, modelName: WoHand, mode: true, state: false, battery: 97
[04/12/2021, 09:44:12] [SwitchBot] [DEBUG] Bot: Cabinet Lights connected: true
[04/12/2021, 09:44:13] [SwitchBot] [DEBUG] Bot: Ventilation serviceData: {"model":"H","modelName":"WoHand","mode":true,"state":false,"battery":97}
[04/12/2021, 09:44:13] [SwitchBot] [DEBUG] Bot: Ventilation, model: H, modelName: WoHand, mode: true, state: false, battery: 97
[04/12/2021, 09:44:13] [SwitchBot] [DEBUG] Bot: Ventilation connected: true
[04/12/2021, 09:44:13] [SwitchBot] [DEBUG] Bot: Towel Rack serviceData: {"model":"H","modelName":"WoHand","mode":true,"state":false,"battery":97}
[04/12/2021, 09:44:13] [SwitchBot] [DEBUG] Bot: Towel Rack, model: H, modelName: WoHand, mode: true, state: false, battery: 97
[04/12/2021, 09:44:13] [SwitchBot] [DEBUG] Bot: Towel Rack connected: true
[04/12/2021, 09:44:13] [SwitchBot] [DEBUG] Bot: Ventilation serviceData: {"model":"H","modelName":"WoHand","mode":true,"state":false,"battery":97}
[04/12/2021, 09:44:13] [SwitchBot] [DEBUG] Bot: Ventilation, model: H, modelName: WoHand, mode: true, state: false, battery: 97
[04/12/2021, 09:44:13] [SwitchBot] [DEBUG] Bot: Ventilation connected: true
[04/12/2021, 09:44:13] [SwitchBot] [DEBUG] Bot: Ventilation serviceData: {"model":"H","modelName":"WoHand","mode":true,"state":false,"battery":97}
[04/12/2021, 09:44:13] [SwitchBot] [DEBUG] Bot: Ventilation, model: H, modelName: WoHand, mode: true, state: false, battery: 97
[04/12/2021, 09:44:13] [SwitchBot] [DEBUG] Bot: Ventilation connected: true
[04/12/2021, 09:44:13] [SwitchBot] [DEBUG] Bot: Cabinet Lights serviceData: {"model":"H","modelName":"WoHand","mode":true,"state":false,"battery":97}
[04/12/2021, 09:44:13] [SwitchBot] [DEBUG] Bot: Cabinet Lights, model: H, modelName: WoHand, mode: true, state: false, battery: 97
[04/12/2021, 09:44:13] [SwitchBot] [DEBUG] Bot: Cabinet Lights connected: true
[04/12/2021, 09:44:14] [SwitchBot] [DEBUG] Bot: Cabinet Lights serviceData: {"model":"H","modelName":"WoHand","mode":true,"state":false,"battery":97}
[04/12/2021, 09:44:14] [SwitchBot] [DEBUG] Bot: Cabinet Lights, model: H, modelName: WoHand, mode: true, state: false, battery: 97
[04/12/2021, 09:44:14] [SwitchBot] [DEBUG] Bot: Cabinet Lights connected: true
[04/12/2021, 09:44:14] [SwitchBot] [DEBUG] Bot: Towel Rack serviceData: {"model":"H","modelName":"WoHand","mode":true,"state":false,"battery":97}
[04/12/2021, 09:44:14] [SwitchBot] [DEBUG] Bot: Towel Rack, model: H, modelName: WoHand, mode: true, state: false, battery: 97
[04/12/2021, 09:44:14] [SwitchBot] [DEBUG] Bot: Towel Rack connected: true
[04/12/2021, 09:44:14] [SwitchBot] [DEBUG] Bot: Ventilation serviceData: {"model":"H","modelName":"WoHand","mode":true,"state":false,"battery":97}
[04/12/2021, 09:44:14] [SwitchBot] [DEBUG] Bot: Ventilation, model: H, modelName: WoHand, mode: true, state: false, battery: 97
[04/12/2021, 09:44:14] [SwitchBot] [DEBUG] Bot: Ventilation connected: true
[04/12/2021, 09:44:14] [SwitchBot] [DEBUG] Bot: Cabinet Lights serviceData: {"model":"H","modelName":"WoHand","mode":true,"state":false,"battery":97}
[04/12/2021, 09:44:14] [SwitchBot] [DEBUG] Bot: Cabinet Lights, model: H, modelName: WoHand, mode: true, state: false, battery: 97
[04/12/2021, 09:44:14] [SwitchBot] [DEBUG] Bot: Cabinet Lights connected: true
[04/12/2021, 09:44:15] [SwitchBot] [DEBUG] Bot: Ventilation serviceData: {"model":"H","modelName":"WoHand","mode":true,"state":false,"battery":97}
[04/12/2021, 09:44:15] [SwitchBot] [DEBUG] Bot: Ventilation, model: H, modelName: WoHand, mode: true, state: false, battery: 97
[04/12/2021, 09:44:15] [SwitchBot] [DEBUG] Bot: Ventilation connected: true
[04/12/2021, 09:44:15] [SwitchBot] [DEBUG] Bot: Cabinet Lights serviceData: {"model":"H","modelName":"WoHand","mode":true,"state":false,"battery":97}
[04/12/2021, 09:44:15] [SwitchBot] [DEBUG] Bot: Cabinet Lights, model: H, modelName: WoHand, mode: true, state: false, battery: 97
[04/12/2021, 09:44:15] [SwitchBot] [DEBUG] Bot: Cabinet Lights connected: true
[04/12/2021, 09:44:15] [SwitchBot] [DEBUG] Bot: Ventilation serviceData: {"model":"H","modelName":"WoHand","mode":true,"state":false,"battery":97}
[04/12/2021, 09:44:15] [SwitchBot] [DEBUG] Bot: Ventilation, model: H, modelName: WoHand, mode: true, state: false, battery: 97
[04/12/2021, 09:44:15] [SwitchBot] [DEBUG] Bot: Ventilation connected: true
[04/12/2021, 09:44:15] [SwitchBot] [DEBUG] Bot: Cabinet Lights serviceData: {"model":"H","modelName":"WoHand","mode":true,"state":false,"battery":97}
[04/12/2021, 09:44:15] [SwitchBot] [DEBUG] Bot: Cabinet Lights, model: H, modelName: WoHand, mode: true, state: false, battery: 97
[04/12/2021, 09:44:15] [SwitchBot] [DEBUG] Bot: Cabinet Lights connected: true
[04/12/2021, 09:44:15] [SwitchBot] [DEBUG] Bot: Towel Rack serviceData: {"model":"H","modelName":"WoHand","mode":true,"state":false,"battery":97}
[04/12/2021, 09:44:15] [SwitchBot] [DEBUG] Bot: Towel Rack, model: H, modelName: WoHand, mode: true, state: false, battery: 97
[04/12/2021, 09:44:15] [SwitchBot] [DEBUG] Bot: Towel Rack connected: true
[04/12/2021, 09:44:16] [SwitchBot] [DEBUG] Bot: Cabinet Lights serviceData: {"model":"H","modelName":"WoHand","mode":true,"state":false,"battery":97}
[04/12/2021, 09:44:16] [SwitchBot] [DEBUG] Bot: Cabinet Lights, model: H, modelName: WoHand, mode: true, state: false, battery: 97
[04/12/2021, 09:44:16] [SwitchBot] [DEBUG] Bot: Cabinet Lights connected: true
[04/12/2021, 09:44:16] [SwitchBot] [DEBUG] Bot: Towel Rack serviceData: {"model":"H","modelName":"WoHand","mode":true,"state":false,"battery":97}
[04/12/2021, 09:44:16] [SwitchBot] [DEBUG] Bot: Towel Rack, model: H, modelName: WoHand, mode: true, state: false, battery: 97
[04/12/2021, 09:44:16] [SwitchBot] [DEBUG] Bot: Towel Rack connected: true
[04/12/2021, 09:44:16] [SwitchBot] [DEBUG] Bot: Towel Rack serviceData: {"model":"H","modelName":"WoHand","mode":true,"state":false,"battery":97}
[04/12/2021, 09:44:16] [SwitchBot] [DEBUG] Bot: Towel Rack, model: H, modelName: WoHand, mode: true, state: false, battery: 97
[04/12/2021, 09:44:16] [SwitchBot] [DEBUG] Bot: Towel Rack connected: true
[04/12/2021, 09:44:16] [SwitchBot] [DEBUG] Bot: Ventilation serviceData: {"model":"H","modelName":"WoHand","mode":true,"state":false,"battery":97}
[04/12/2021, 09:44:16] [SwitchBot] [DEBUG] Bot: Ventilation, model: H, modelName: WoHand, mode: true, state: false, battery: 97
[04/12/2021, 09:44:16] [SwitchBot] [DEBUG] Bot: Ventilation connected: true
[04/12/2021, 09:44:16] [SwitchBot] [DEBUG] Bot: Cabinet Lights serviceData: {"model":"H","modelName":"WoHand","mode":true,"state":false,"battery":97}
[04/12/2021, 09:44:16] [SwitchBot] [DEBUG] Bot: Cabinet Lights, model: H, modelName: WoHand, mode: true, state: false, battery: 97
[04/12/2021, 09:44:16] [SwitchBot] [DEBUG] Bot: Cabinet Lights connected: true
[04/12/2021, 09:44:17] [SwitchBot] [DEBUG] Bot: Ventilation serviceData: {"model":"H","modelName":"WoHand","mode":true,"state":false,"battery":97}
[04/12/2021, 09:44:17] [SwitchBot] [DEBUG] Bot: Ventilation, model: H, modelName: WoHand, mode: true, state: false, battery: 97
[04/12/2021, 09:44:17] [SwitchBot] [DEBUG] Bot: Ventilation connected: true
[04/12/2021, 09:44:17] [SwitchBot] [DEBUG] Bot: Cabinet Lights serviceData: {"model":"H","modelName":"WoHand","mode":true,"state":false,"battery":97}
[04/12/2021, 09:44:17] [SwitchBot] [DEBUG] Bot: Cabinet Lights, model: H, modelName: WoHand, mode: true, state: false, battery: 97
[04/12/2021, 09:44:17] [SwitchBot] [DEBUG] Bot: Cabinet Lights connected: true
[04/12/2021, 09:44:17] [SwitchBot] [DEBUG] Bot: Cabinet Lights serviceData: {"model":"H","modelName":"WoHand","mode":true,"state":false,"battery":97}
[04/12/2021, 09:44:17] [SwitchBot] [DEBUG] Bot: Cabinet Lights, model: H, modelName: WoHand, mode: true, state: false, battery: 97
[04/12/2021, 09:44:17] [SwitchBot] [DEBUG] Bot: Cabinet Lights connected: true
[04/12/2021, 09:44:17] [SwitchBot] [DEBUG] Bot: Towel Rack serviceData: {"model":"H","modelName":"WoHand","mode":true,"state":false,"battery":97}
[04/12/2021, 09:44:17] [SwitchBot] [DEBUG] Bot: Towel Rack, model: H, modelName: WoHand, mode: true, state: false, battery: 97
[04/12/2021, 09:44:17] [SwitchBot] [DEBUG] Bot: Towel Rack connected: true
[04/12/2021, 09:44:18] [SwitchBot] [DEBUG] Bot: Ventilation serviceData: {"model":"H","modelName":"WoHand","mode":true,"state":false,"battery":97}
[04/12/2021, 09:44:18] [SwitchBot] [DEBUG] Bot: Ventilation, model: H, modelName: WoHand, mode: true, state: false, battery: 97
[04/12/2021, 09:44:18] [SwitchBot] [DEBUG] Bot: Ventilation connected: true
[04/12/2021, 09:44:18] [SwitchBot] [DEBUG] Bot: Towel Rack serviceData: {"model":"H","modelName":"WoHand","mode":true,"state":false,"battery":97}
[04/12/2021, 09:44:18] [SwitchBot] [DEBUG] Bot: Towel Rack, model: H, modelName: WoHand, mode: true, state: false, battery: 97
[04/12/2021, 09:44:18] [SwitchBot] [DEBUG] Bot: Towel Rack connected: true
[04/12/2021, 09:44:18] [SwitchBot] [DEBUG] Bot: Cabinet Lights serviceData: {"model":"H","modelName":"WoHand","mode":true,"state":false,"battery":97}
[04/12/2021, 09:44:18] [SwitchBot] [DEBUG] Bot: Cabinet Lights, model: H, modelName: WoHand, mode: true, state: false, battery: 97
[04/12/2021, 09:44:18] [SwitchBot] [DEBUG] Bot: Cabinet Lights connected: true
[04/12/2021, 09:44:18] [SwitchBot] [DEBUG] Bot: Towel Rack serviceData: {"model":"H","modelName":"WoHand","mode":true,"state":false,"battery":97}
[04/12/2021, 09:44:18] [SwitchBot] [DEBUG] Bot: Towel Rack, model: H, modelName: WoHand, mode: true, state: false, battery: 97
[04/12/2021, 09:44:18] [SwitchBot] [DEBUG] Bot: Towel Rack connected: true
[04/12/2021, 09:44:18] [SwitchBot] [DEBUG] Bot: Ventilation BLE parseStatus
[04/12/2021, 09:44:18] [SwitchBot] [DEBUG] Bot: Ventilation Switch Mode, mode: true, On: false
[04/12/2021, 09:44:18] [SwitchBot] [DEBUG] Bot: Ventilation BatteryLevel: 97
[04/12/2021, 09:44:18] [SwitchBot] [DEBUG] Bot: Ventilation updateCharacteristic On: false
[04/12/2021, 09:44:18] [SwitchBot] [DEBUG] Bot: Ventilation updateCharacteristic BatteryLevel: 97
[04/12/2021, 09:44:18] [SwitchBot] [DEBUG] Bot: Ventilation updateCharacteristic StatusLowBattery: 0
[04/12/2021, 09:44:18] [SwitchBot] [DEBUG] Bot: Towel Rack BLE parseStatus
[04/12/2021, 09:44:18] [SwitchBot] [DEBUG] Bot: Towel Rack Switch Mode, mode: true, On: false
[04/12/2021, 09:44:18] [SwitchBot] [DEBUG] Bot: Towel Rack BatteryLevel: 97
[04/12/2021, 09:44:18] [SwitchBot] [DEBUG] Bot: Towel Rack updateCharacteristic On: false
[04/12/2021, 09:44:18] [SwitchBot] [DEBUG] Bot: Towel Rack updateCharacteristic BatteryLevel: 97
[04/12/2021, 09:44:18] [SwitchBot] [DEBUG] Bot: Towel Rack updateCharacteristic StatusLowBattery: 0
[04/12/2021, 09:44:18] [SwitchBot] [DEBUG] Bot: Cabinet Lights BLE parseStatus
[04/12/2021, 09:44:18] [SwitchBot] [DEBUG] Bot: Cabinet Lights Switch Mode, mode: true, On: false
[04/12/2021, 09:44:18] [SwitchBot] [DEBUG] Bot: Cabinet Lights BatteryLevel: 97
[04/12/2021, 09:44:18] [SwitchBot] [DEBUG] Bot: Cabinet Lights updateCharacteristic On: false
[04/12/2021, 09:44:18] [SwitchBot] [DEBUG] Bot: Cabinet Lights updateCharacteristic BatteryLevel: 97
[04/12/2021, 09:44:18] [SwitchBot] [DEBUG] Bot: Cabinet Lights updateCharacteristic StatusLowBattery: 0
[04/12/2021, 09:44:19] [Calendar] Updating calendar Aidan Work
[04/12/2021, 09:44:22] [Calendar] Pushing calendar sensor 'Aidan Work' state 0 - value 0
[04/12/2021, 09:44:22] [Calendar] Pushing calendar sensor '~' state 0 - value 0
[04/12/2021, 09:44:22] [ZB] heartbeat 612, drift 1251
[04/12/2021, 09:44:22] [Button Platform] warning: heartbeat 626, drift 844
[04/12/2021, 09:44:22] [ZB] heartbeat 613, drift 263
noble: unknown peripheral dbb7d9a4e120 connected!
noble: unknown peripheral dbb7d9a4e120 disconnected!
[04/12/2021, 09:44:58] [SOMA] Bedroom: warning: request 85: disconnected unexpectedly
[04/12/2021, 09:44:58] [SOMA] Bedroom: warning: polling: failed at stage 0
[04/12/2021, 09:45:00] [5 Min Refresh] Schedule was set to: [ON]
[04/12/2021, 09:45:01] [5 Min Refresh] Schedule was set to: [OFF]
[04/12/2021, 09:45:01] [ZB] Colour Spot 2: homekit brightness changed from 100% to 100%
[04/12/2021, 09:45:01] [ZB] Colour Spot 2: homekit saturation changed from 99% to 100%
[04/12/2021, 09:45:01] [ZB] Colour Spot 2: homekit hue changed from 354˚ to 4˚
[04/12/2021, 09:45:01] [Security Red Mode] Setting switch to true
noble: unknown peripheral dbb7d9a4e120 connected!
noble: unknown peripheral dbb7d9a4e120 handle notify!
[04/12/2021, 09:45:08] [ZB] Colour Spot 2: set homekit hue from 4˚ to 354˚
[04/12/2021, 09:45:08] [ZB] Colour Spot 2: set homekit saturation from 10

Config for homebridge-switchbot

{
    "name": "SwitchBot",
    "credentials": {
        "notice": "Keep your token a secret!"
    },
    "options": {
        "devices": [
            {
                "deviceId": "XXXXX",
                "configDeviceName": "Ventilation",
                "configDeviceType": "Bot",
                "ble": true,
                "bot": {
                    "mode": "switch",
                    "deviceType": "switch"
                }
            },
            {
                "deviceId": "XXXXX",
                "configDeviceName": "Towel Rack",
                "configDeviceType": "Bot",
                "ble": true,
                "bot": {
                    "mode": "switch",
                    "deviceType": "switch"
                }
            },
            {
                "deviceId": "XXXXX",
                "configDeviceName": "Cabinet Lights",
                "configDeviceType": "Bot",
                "ble": true,
                "bot": {
                    "mode": "switch",
                    "deviceType": "switch"
                }
            }
        ],
        "debug": "debug"
    },
    "_bridge": {
        "username": "XXXX",
        "port": XXXX
    },
    "platform": "SwitchBot"
}

Screenshots

No response

Device & Model

Switchbot Bot Model H

Node.js Version

v16.13.1

NPM Version

v8.1.2

Homebridge Version

v1.3.8

Homebridge SwitchBot Plugin Version

v1.3.0

Homebridge Config UI X Plugin Version

v4.41.3

Operating System

Raspbian

Support Request:

Describe Your Problem

Install of the plugin complains about not finding Python - please advise

Relevant log output

npm ERR! code 1
npm ERR! path C:\Users\myndm\AppData\Roaming\npm\node_modules\@switchbot\homebridge-switch
bot\node_modules\@abandonware\noble
npm ERR! command failed
npm ERR! command C:\WINDOWS\system32\cmd.exe /d /s /c node-gyp rebuild
npm ERR! gyp info it worked if it ends with ok
npm ERR! gyp info using [email protected]
npm ERR! gyp info using [email protected] | win32 | x64
npm ERR! gyp ERR! find Python 
npm ERR! gyp ERR! find Python Python is not set from command line or npm configuration    
npm ERR! gyp ERR! find Python Python is not set from environment variable PYTHON
npm ERR! gyp ERR! find Python checking if "python3" can be used
npm ERR! gyp ERR! find Python - "python3" is not in PATH or produced an error
npm ERR! gyp ERR! find Python checking if "python" can be used
npm ERR! gyp ERR! find Python - "python" is not in PATH or produced an error
npm ERR! gyp ERR! find Python checking if Python is C:\WINDOWS\system32\config\systemprofi
le\AppData\Local\Programs\Python\Python39\python.exe
npm ERR! gyp ERR! find Python - "C:\WINDOWS\system32\config\systemprofile\AppData\Local\Pr
ograms\Python\Python39\python.exe" could not be run
npm ERR! gyp ERR! find Python checking if Python is C:\Program Files\Python39\python.exe  
npm ERR! gyp ERR! find Python - "C:\Program Files\Python39\python.exe" could not be run   
npm ERR! gyp ERR! find Python checking if Python is C:\WINDOWS\system32\config\systemprofi
le\AppData\Local\Programs\Python\Python39-32\python.exe
npm ERR! gyp ERR! find Python - "C:\WINDOWS\system32\config\systemprofile\AppData\Local\Pr
ograms\Python\Python39-32\python.exe" could not be run
npm ERR! gyp ERR! find Python checking if Python is C:\Program Files\Python39-32\python.ex
e
npm ERR! gyp ERR! find Python - "C:\Program Files\Python39-32\python.exe" could not be run
npm ERR! gyp ERR! find Python checking if Python is C:\Program Files (x86)\Python39-32\pyt
hon.exe
npm ERR! gyp ERR! find Python - "C:\Program Files (x86)\Python39-32\python.exe" could not 
be run
npm ERR! gyp ERR! find Python checking if Python is C:\WINDOWS\system32\config\systemprofi
le\AppData\Local\Programs\Python\Python38\python.exe
npm ERR! gyp ERR! find Python - "C:\WINDOWS\system32\config\systemprofile\AppData\Local\Pr
ograms\Python\Python38\python.exe" could not be run
npm ERR! gyp ERR! find Python checking if Python is C:\Program Files\Python38\python.exe  
npm ERR! gyp ERR! find Python - "C:\Program Files\Python38\python.exe" could not be run   
npm ERR! gyp ERR! find Python checking if Python is C:\WINDOWS\system32\config\systemprofi
le\AppData\Local\Programs\Python\Python38-32\python.exe
npm ERR! gyp ERR! find Python - "C:\WINDOWS\system32\config\systemprofile\AppData\Local\Pr
ograms\Python\Python38-32\python.exe" could not be run
npm ERR! gyp ERR! find Python checking if Python is C:\Program Files\Python38-32\python.ex
e
npm ERR! gyp ERR! find Python - "C:\Program Files\Python38-32\python.exe" could not be run
npm ERR! gyp ERR! find Python checking if Python is C:\Program Files (x86)\Python38-32\pyt
hon.exe
npm ERR! gyp ERR! find Python - "C:\Program Files (x86)\Python38-32\python.exe" could not 
be run
npm ERR! gyp ERR! find Python checking if Python is C:\WINDOWS\system32\config\systemprofi
le\AppData\Local\Programs\Python\Python37\python.exe
npm ERR! gyp ERR! find Python - "C:\WINDOWS\system32\config\systemprofile\AppData\Local\Pr
ograms\Python\Python37\python.exe" could not be run
npm ERR! gyp ERR! find Python checking if Python is C:\Program Files\Python37\python.exe  
npm ERR! gyp ERR! find Python - "C:\Program Files\Python37\python.exe" could not be run   
npm ERR! gyp ERR! find Python checking if Python is C:\WINDOWS\system32\config\systemprofi
le\AppData\Local\Programs\Python\Python37-32\python.exe
npm ERR! gyp ERR! find Python - "C:\WINDOWS\system32\config\systemprofile\AppData\Local\Pr
ograms\Python\Python37-32\python.exe" could not be run
npm ERR! gyp ERR! find Python checking if Python is C:\Program Files\Python37-32\python.ex
e
npm ERR! gyp ERR! find Python - "C:\Program Files\Python37-32\python.exe" could not be run
npm ERR! gyp ERR! find Python checking if Python is C:\Program Files (x86)\Python37-32\pyt
hon.exe
npm ERR! gyp ERR! find Python - "C:\Program Files (x86)\Python37-32\python.exe" could not 
be run
npm ERR! gyp ERR! find Python checking if Python is C:\WINDOWS\system32\config\systemprofi
le\AppData\Local\Programs\Python\Python36\python.exe
npm ERR! gyp ERR! find Python - "C:\WINDOWS\system32\config\systemprofile\AppData\Local\Pr
ograms\Python\Python36\python.exe" could not be run
npm ERR! gyp ERR! find Python checking if Python is C:\Program Files\Python36\python.exe  
npm ERR! gyp ERR! find Python - "C:\Program Files\Python36\python.exe" could not be run   
npm ERR! gyp ERR! find Python checking if Python is C:\WINDOWS\system32\config\systemprofi
le\AppData\Local\Programs\Python\Python36-32\python.exe
npm ERR! gyp ERR! find Python - "C:\WINDOWS\system32\config\systemprofile\AppData\Local\Pr
ograms\Python\Python36-32\python.exe" could not be run
npm ERR! gyp ERR! find Python checking if Python is C:\Program Files\Python36-32\python.ex
e
npm ERR! gyp ERR! find Python - "C:\Program Files\Python36-32\python.exe" could not be run
npm ERR! gyp ERR! find Python checking if Python is C:\Program Files (x86)\Python36-32\pyt
hon.exe
npm ERR! gyp ERR! find Python - "C:\Program Files (x86)\Python36-32\python.exe" could not 
be run
npm ERR! gyp ERR! find Python checking if the py launcher can be used to find Python 3    
npm ERR! gyp ERR! find Python - "py.exe" is not in PATH or produced an error
npm ERR! gyp ERR! find Python
npm ERR! gyp ERR! find Python **********************************************************  
npm ERR! gyp ERR! find Python You need to install the latest version of Python.
npm ERR! gyp ERR! find Python Node-gyp should be able to find and use Python. If not,     
npm ERR! gyp ERR! find Python you can try one of the following options:
npm ERR! gyp ERR! find Python - Use the switch --python="C:\Path\To\python.exe"
npm ERR! gyp ERR! find Python   (accepted by both node-gyp and npm)
npm ERR! gyp ERR! find Python - Set the environment variable PYTHON
npm ERR! gyp ERR! find Python - Set the npm configuration variable python:
npm ERR! gyp ERR! find Python   npm config set python "C:\Path\To\python.exe"
npm ERR! gyp ERR! find Python For more information consult the documentation at:
npm ERR! gyp ERR! find Python https://github.com/nodejs/node-gyp#installation
npm ERR! gyp ERR! find Python **********************************************************  
npm ERR! gyp ERR! find Python
npm ERR! gyp ERR! configure error
npm ERR! gyp ERR! stack Error: Could not find any Python installation to use
npm ERR! gyp ERR! stack     at PythonFinder.fail (C:\Program Files\nodejs\node_modules\npm
\node_modules\node-gyp\lib\find-python.js:330:47)
npm ERR! gyp ERR! stack     at PythonFinder.runChecks (C:\Program Files\nodejs\node_module
s\npm\node_modules\node-gyp\lib\find-python.js:159:21)
npm ERR! gyp ERR! stack     at PythonFinder.<anonymous> (C:\Program Files\nodejs\node_modu
les\npm\node_modules\node-gyp\lib\find-python.js:228:18)
npm ERR! gyp ERR! stack     at PythonFinder.execFileCallback (C:\Program Files\nodejs\node
_modules\npm\node_modules\node-gyp\lib\find-python.js:294:16)
npm ERR! gyp ERR! stack     at exithandler (node:child_process:404:5)
npm ERR! gyp ERR! stack     at ChildProcess.errorhandler (node:child_process:416:5)       
npm ERR! gyp ERR! stack     at ChildProcess.emit (node:events:390:28)
npm ERR! gyp ERR! stack     at Process.ChildProcess._handle.onexit (node:internal/child_pr
ocess:288:12)
npm ERR! gyp ERR! stack     at onErrorNT (node:internal/child_process:477:16)
npm ERR! gyp ERR! stack     at processTicksAndRejections (node:internal/process/task_queue
s:83:21)
npm ERR! gyp ERR! System Windows_NT 10.0.19043
npm ERR! gyp ERR! command "C:\\Program Files\\nodejs\\node.exe" "C:\\Program Files\\nodejs
\\node_modules\\npm\\node_modules\\node-gyp\\bin\\node-gyp.js" "rebuild"
npm ERR! gyp ERR! cwd C:\Users\myndm\AppData\Roaming\npm\node_modules\@switchbot\homebridg
e-switchbot\node_modules\@abandonware\noble
npm ERR! gyp ERR! node -v v16.13.0
npm ERR! gyp ERR! node-gyp -v v8.2.0
npm ERR! gyp ERR! not ok

npm ERR! A complete log of this run can be found in:
npm ERR!     C:\WINDOWS\system32\config\systemprofile\AppData\Local\npm-cache\_logs\2021-1
1-17T23_38_06_735Z-debug.log

Command failed. Please review log for details.

Config for homebridge-switchbot

No response

Screenshots

2021-11-17T23_16_49_424Z-debug.log

Device & Model

Trying to install the plugin

Node.js Version

v16.13.0

NPM Version

v8.4.0

Homebridge Version

v1.3.6

Homebridge SwitchBot Plugin Version

v1.1.0

Homebridge Config UI X Plugin Version

v4.41.2

Operating System

Windows 10

Bug: Curtains alternate between open/close state in 1.0.0 & 1.0.1

Describe The Bug

The curtain state goes to open while closed or closed while open every few minutes even though they’re not being opened or closed

To Reproduce

Nothing, it happens every few minutes regardless whether it’s open or closed

Expected behavior

Should show the actual current state of either open or closed and stay at that

Relevant log output

[15/11/2021, 11:55:48] Homebridge v1.3.6 (HAP v0.9.7) (Homebridge A93C) is running on port 51403.
[15/11/2021, 11:55:49] [SwitchBot] Total SwitchBot Devices Found: 7
[15/11/2021, 11:55:49] [SwitchBot] Adding new accessory: Woonkamer SwitchBot Curtain DeviceID: <HIDDEN>
[15/11/2021, 11:55:49] [SwitchBot] Adding new accessory: Achterdeur SwitchBot Curtain DeviceID: <HIDDEN>
[15/11/2021, 11:55:49] [SwitchBot] Total IR Devices Found: 0
[15/11/2021, 11:57:15] [SwitchBot] Achterdeur SwitchBot, Target Position: 0
[15/11/2021, 11:58:50] [SwitchBot] Achterdeur SwitchBot, Target Position: 100

Config for homebridge-switchbot

{
            "name": "SwitchBot",
            "credentials": {
                "openToken": "HIDDEN",
                "notice": "Keep your token a secret!"
            },

Screenshots

You can see it best in the Home Assistant history panel (when adding Homebridge to Home Assistant):

5CE20DFC-5EB1-4AA6-BE38-146C41324478

Device & Model

SwitchBot Curtain

Node.js Version

v16.13.0

NPM Version

v8.1.3

Homebridge Version

V1.3.6

Homebridge Switchbot Plugin Version

V1.0.1

Homebridge Config UI X Plugin Version

V4.41.2

Operating System

Raspbian

Support Request: Devices not found via BLE on Raspberry PI 4

Describe Your Problem

I try to connect a Bot via BLE. I think i have installed the necessary requirements as described here.
https://github.com/homebridge/noble#prerequisites

If i use the native Bluetooth scan from my PI the Raspberry found BLE devices. But in the Homebridge no entry that a device is detected. I thought i dont need to add the API Token as in that case the Plugin uses my Switchbot account and adds all devices. Therefore i have not entered it in the configuration and the below log pops up. Any ideas?

Do i need to install @abandonware/noble ? If yes how to add this line from the description?
const noble = require('@abandonware/noble');

Relevant log output

[16/11/2021, 20:54:32] [SwitchBot] Initializing SwitchBot platform...
[16/11/2021, 20:54:32] [SwitchBot] Using Default Refresh Rate (2 minutes).
[16/11/2021, 20:54:32] [SwitchBot] Using Default Push Rate.
[16/11/2021, 20:54:32] [SwitchBot] "Missing openToken"

Config for homebridge-switchbot

{
            "name": "SwitchBot",
            "credentials": {
                "notice": "Keep your token a secret!"
            },
            "options": {
                "devices": [
                    {
                        "deviceId": "D273C8A34EFF",
                        "deviceType": "Bot",
                        "ble": true,
                        "bot": {
                            "mode": "press",
                            "deviceType": "switch"
                        }
                    }
                ]
            },
            "platform": "SwitchBot"

Screenshots

No response

Device & Model

Switchbot Bot

Node.js Version

v16.13.0

NPM Version

v8.1.0

Homebridge Version

v1.3.6

Homebridge SwitchBot Plugin Version

v.1.0.2

Homebridge Config UI X Plugin Version

v4.41.2

Operating System

Raspbian

Support Press Mode

Any chance we can see support for Press Mode, so that the HomeKit switch automatically turns off again.

Support Request:

Describe Your Problem

IR devices cannot be connected

Relevant log output

Hi there,

I have trained a projector via Switchbot Mini Hub and now want to add it to Homekit with Hoobs and the plugin, but unfortunately I cannot configure the IR device so that it appears in Homekit.

I found the Device ID in the Hoobs Protocol, but I don't get it linked to any Homekit setting.

Config for homebridge-switchbot

{
    "accessories": [],
    "platforms": [
        {
            "platform": "SwitchBot",
            "name": "SwitchBot",
            "credentials": {
                "notice": "Keep your token a secret!",
                "openToken": "6aaae8ef7876546ce805654bf4e74a3fe463ac017c2686d066c38f53c0e21a8e8ccc20e0b39e2be9585aa2932443a60e"
            },
            "options": {
                "devices": [
                    {
                        "deviceId": "E809E7767879",
                        "deviceType": "Bot",
                        "bot": {
                            "mode": "press",
                            "deviceType": "switch"
                        }
                    },
                    {
                        "deviceId": "F7CE793F5988",
                        "deviceType": "Bot",
                        "bot": {
                            "mode": "switch",
                            "deviceType": "outlet"
                        }
                    },
                    {
                        "deviceId": "02-202106022036-86194388",
                        "deviceType": "Smart Fan"
                    }
                ]
            }
        }
    ]
}

Screenshots

Bildschirmfoto 2021-11-15 um 20 55 38

Device & Model

SwitchBot Hub Mini v1.7-1.9

Node.js Version

14.18.1

NPM Version

don´t know

Homebridge Version

1.3.5

Homebridge SwitchBot Plugin Version

v0.1.1

Homebridge Config UI X Plugin Version

No response

Operating System

Raspbian, HOOBS

Bug: failed to discover devices. cannot read property 'touppercase' of undefined

Describe The Bug

All existing Switchbot devices disappeared in HomeKit

To Reproduce

Install update (v1.0.1)

Expected behavior

To still have all of my device and working normally

Relevant log output

'failed to discover devices. cannot read property 'touppercase' of undefined'

Config for homebridge-switchbot

{
            "name": "SwitchBot",
            "credentials": {
                "openToken": "secret",
                "notice": "Keep your token a secret!"
            },
            "options": {
                "hide_device": [
                    "02-202109011807-50408529"
                ],
                "humidifier": {
                    "hide_temperature": true
                }
            },
            "platform": "SwitchBot"
        }

Screenshots

No response

Device & Model

Raspberry Pi 4 Model B

Node.js Version

14.18.1

NPM Version

8.1.3

Homebridge Version

1.3.6

Homebridge Switchbot Plugin Version

1.0.1

Homebridge Config UI X Plugin Version

4.41.2

Operating System

Raspbian GNU/Linux Buster (10)

Support Request: do you need the SwitchBot hub with this plugin?

Describe Your Problem

SwitchBot Hub necessarily requested?

Relevant log output

Hello, I’m about to install two Switchbot curtains and I’d like to know if the Switchbot hub is necessarily requested to make this plugin work and see the device in the Home app. Thank you for you support.

Config for homebridge-switchbot

No response

Screenshots

No response

Device & Model

N/A

Node.js Version

14.16.0

NPM Version

7.6.3

Homebridge Version

4.41.3

Homebridge SwitchBot Plugin Version

The latest

Homebridge Config UI X Plugin Version

No response

Operating System

Raspbian

Feature Request: Add Pin Support

Is your feature request related to a problem? Please describe.

This plugin does not work if there's a pin set against the bot. I'd like to keep a pin on my bot since I live in an apartment block and I'd like to keep my switch secured

Describe the solution you'd like

Config to add pin to access bot

Describe alternatives you've considered

Turning off pin, which may compromise my security

Additional context

Support Request: IR Fan

Describe Your Problem

Accessing Dyson Fan via Homebridge

Relevant log output

I have an older Dyson fan that I have set up via "Others" with the Switchbot Mini to turn ON and OFF. This works fine through the SwitchBot app, and also if I export to Siri shortcuts. However, I cannot get the device to work at all through Homebridge. 

I have set the device up via `IR Device Settings > Others Settings > Fan` with On and Off as the commands. Now if I try via the Home app it sends the On command but the fan won't come on. Any thoughts?

Config for homebridge-switchbot

"name": "SwitchBot",
            "credentials": {
                "openToken": HIDDEN,
                "notice": "Keep your token a secret!"
            },
            "options": {
                "other": {
                    "deviceType": "Fan"
                }
            },
            "platform": "SwitchBot"

Screenshots

No response

Device & Model

SwitchBot Hub Mini v1.7-1.9

Node.js Version

v14.17.5

NPM Version

v6.14.14

Homebridge Version

v1.3.4

Homebridge SwitchBot Plugin Version

v0.1.1

Homebridge Config UI X Plugin Version

v4.41.2

Operating System

macOS

Bug: meter BLE not reading temp

Describe The Bug

Bug: meter BLE not reading temp

To Reproduce

set it up

Expected behavior

should be reading correct temp

Relevant log output

[25/11/2021, 14:43:48] [SwitchBot] [DEVICE] Meter: Meter 59 serviceData: {"model":"T","modelName":"WoSensorTH","temperature":{"c":30.2,"f":86.4},"fahrenheit":false,"humidity":79,"battery":100}
[25/11/2021, 14:43:48] [SwitchBot] [DEVICE] Meter: Meter 59 model: T, modelName: WoSensorTH, temperature: {"c":30.2,"f":86.4}, fahrenheit: false, humidity: 79, battery: 100
[25/11/2021, 14:43:49] [SwitchBot] [DEVICE] Meter: Meter 59 serviceData: {"model":"T","modelName":"WoSensorTH","temperature":{"c":30.2,"f":86.4},"fahrenheit":false,"humidity":79,"battery":100}
[25/11/2021, 14:43:49] [SwitchBot] [DEVICE] Meter: Meter 59 model: T, modelName: WoSensorTH, temperature: {"c":30.2,"f":86.4}, fahrenheit: false, humidity: 79, battery: 100
[25/11/2021, 14:43:49] [SwitchBot] [DEVICE] Meter: Meter 59 serviceData: {"model":"T","modelName":"WoSensorTH","temperature":{"c":30.2,"f":86.4},"fahrenheit":false,"humidity":79,"battery":100}
[25/11/2021, 14:43:49] [SwitchBot] [DEVICE] Meter: Meter 59 model: T, modelName: WoSensorTH, temperature: {"c":30.2,"f":86.4}, fahrenheit: false, humidity: 79, battery: 100
[25/11/2021, 14:43:50] [SwitchBot] [DEVICE] Meter: Meter 59 updateCharacteristic StatusLowBattery: 0
[25/11/2021, 14:43:50] [SwitchBot] [DEVICE] Meter: Meter 59 updateCharacteristic BatteryLevel: 100
[25/11/2021, 14:43:50] [SwitchBot] [DEVICE] Meter: Meter 59 updateCharacteristic CurrentRelativeHumidity: 79
[25/11/2021, 14:43:50] [SwitchBot] [DEVICE] Meter: Meter 59 updateCharacteristic CurrentTemperature: 0

__________________


CURRENTTEMP = 0
Currently it should be 23.8 celcius

Config for homebridge-switchbot

"name": "SwitchBot",
            "credentials": {
                "openToken": "",
                "notice": "Keep your token a secret!"
            },
            "options": {
                "devices": [
                    {
                        "deviceId": "xx",
                        "configDeviceName": "Meter 59",
                        "configDeviceType": "Meter",
                        "ble": true
                    }
                ],
                "debug": "device"
            },
            "_bridge": {
                "username": "0E:CD:CA:9D:A4:F4",
                "port": 35673
            },
            "platform": "SwitchBot"

Screenshots

No response

Device & Model

Meter

Node.js Version

v14.18.1

NPM Version

v6.14.15

Homebridge Version

latest

Homebridge Switchbot Plugin Version

1.2.1

Homebridge Config UI X Plugin Version

No response

Operating System

Raspbian

Bug: IR Fan won't be hidden in Home app

Describe The Bug

IR devices won't be hidden in Home app after option chosen in plugin settings

To Reproduce

Choose hide device option in plugin settings

Expected behavior

For devices to be hidden in Home app

Relevant log output

[15/11/2021, 23:12:51] [SwitchBot] Total SwitchBot Devices Found: 6
[15/11/2021, 23:12:51] [SwitchBot] Restoring existing accessory from cache: Humidifier DeviceID: AC67B2D7FAA2
[15/11/2021, 23:12:51] [SwitchBot] Restoring existing accessory from cache: Curtain 1 DeviceID: D467D2F51E45
[15/11/2021, 23:12:51] [SwitchBot] Restoring existing accessory from cache: Curtain 3 DeviceID: D7020E5DE253
[15/11/2021, 23:12:51] [SwitchBot] Total IR Devices Found: 2
[15/11/2021, 23:12:51] [SwitchBot] Adding new accessory: Sound Bar DIY Speaker DeviceID: 02-202109011758-87349547
[15/11/2021, 23:12:51] [SwitchBot] Restoring existing accessory from cache: Tower Fan DeviceID: 02-202109011807-50408529
[15/11/2021, 23:12:51] Sound Bar 0864 is running on port 42637.
[15/11/2021, 23:12:51] Please add [Sound Bar 0864] manually in Home app. Setup Code: 415-15-226
(node:9578) UnhandledPromiseRejectionWarning: TypeError: Cannot read property 'updateCharacteristic' of undefined
    at Humidifier.updateHomeKitCharacteristics (/usr/local/lib/node_modules/@switchbot/homebridge-switchbot/src/devices/humidifiers.ts:505:32)
    at new Humidifier (/usr/local/lib/node_modules/@switchbot/homebridge-switchbot/src/devices/humidifiers.ts:152:10)
    at SwitchBotPlatform.createHumidifier (/usr/local/lib/node_modules/@switchbot/homebridge-switchbot/src/platform.ts:380:9)
    at processTicksAndRejections (internal/process/task_queues.js:95:5)
(Use `node --trace-warnings ...` to show where the warning was created)
(node:9578) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). To terminate the node process on unhandled promise rejection, use the CLI flag `--unhandled-rejections=strict` (see https://nodejs.org/api/cli.html#cli_unhandled_rejections_mode). (rejection id: 1)
[15/11/2021, 23:12:51] [SwitchBot] Humidifier Humidifier, Failed to update status. Error Message: "Cannot read property 'updateCharacteristic' of undefined"

**NOTE:
These are the only logs that are produced by this plugin. Like I mentioned in the last post. This bug doesn't produce any log.

Config for homebridge-switchbot

{
            "name": "SwitchBot",
            "credentials": {
                "openToken": "secret",
                "notice": "Keep your token a secret!"
            },
            "options": {
                "devices": [
                    {
                        "deviceId": "AC67B2D7FAA2",
                        "deviceType": "Humidifier",
                        "ble": false,
                        "bot": {
                            "deviceType": "outlet"
                        },
                        "humidifier": {
                            "hide_temperature": true
                        }
                    }
                ],
                "irdevices": [
                    {
                        "deviceId": "02-202109011758-87349547",
                        "remoteType": "DIY Speaker",
                        "irtv": {
                            "disable_power": true
                        }
                    },
                    {
                        "deviceId": "02-202109011807-50408529",
                        "hide_device": true
                    }
                ]
            },
            "platform": "SwitchBot"
        }

Screenshots

No response

Device & Model

Raspberry Pi 4 Model B

Node.js Version

v14.18.1

NPM Version

v8.1.3

Homebridge Version

v1.3.6

Homebridge Switchbot Plugin Version

v1.0.2

Homebridge Config UI X Plugin Version

v4.41.2

Operating System

Raspbian GNU/Linux Buster (10)

Feature Request: disable adding device type to device name

Problem

when you install the plugin, all devices get their device descriptor added to their name, e.g. Bedroom Curtain Curtain or Contact Sensor Contact Sensor. This is especially annoying if you are lazy enough to keep the default names

Solution

a checkbox to toggle in the advanced options of the plugin

Alternatives

you can rename all the devices manually on the accessories tab of homebridge UI, but you eventually get the names still broadcasted, e.g. to Google Home or other apps.

Additional context

No response

SwitchBots being triggered multiple times when using Home automation

Describe The Bug:

Started noticing that the SwitchBots were running multiple times when triggered by a Home automation.

I have my house set up with an AppleTV as the main hub. Each evening, I have an automation where the SwitchBots turn on the outdoor lights and then in the morning, they turn them off.

This has been working totally normally until a few days ago (we did have a power outage, so not sure if that triggered something). Seems like each day, it's adding another instance to the trigger. Yesterday was 5x on, this morning 6x off.

To Reproduce:

I just let the automation run. If I manually turn on/off the accessory in the Home app, it only runs once. Seems to just be for automation.

Expected behavior:

I expect the SwitchBots to perform the same way as when I manually toggle them on/off.

Logs:

This is from both last night and this morning. I had upgraded HOOBS to the latest version, hence the initializing log lines:

8/13/2021, 4:45:19 PMSwitchBot BridgeBridge is running on port 53826.
8/13/2021, 4:45:19 PMSwitchBot BridgeSwitchBotTotal Devices Found: 3
8/13/2021, 4:45:19 PMSwitchBot BridgeSwitchBotDiscovered Deck Lights Bot
8/13/2021, 4:45:19 PMSwitchBot BridgeSwitchBotRestoring existing accessory from cache: Deck Lights Bot DeviceID: xxxxxxxxxxxxx
8/13/2021, 4:45:19 PMSwitchBot BridgeSwitchBotDiscovered Garage Door Bot
8/13/2021, 4:45:19 PMSwitchBot BridgeSwitchBotRestoring existing accessory from cache: Garage Door Bot DeviceID: xxxxxxxxxxxxx
8/13/2021, 4:45:19 PMSwitchBot BridgeSwitchBotDiscovered a Hub Mini
8/13/2021, 4:58:11 PMSwitchBot BridgeSwitchBotSending request for Garage Door Bot to SwitchBot API. command: turnOn parameter: default commandType: command
8/13/2021, 4:58:11 PMSwitchBot BridgeSwitchBotSending request for Deck Lights Bot to SwitchBot API. command: turnOn parameter: default commandType: command
8/13/2021, 4:58:50 PMSwitchBot BridgeSwitchBotSending request for Garage Door Bot to SwitchBot API. command: turnOff parameter: default commandType: command
8/13/2021, 4:58:50 PMSwitchBot BridgeSwitchBotSending request for Deck Lights Bot to SwitchBot API. command: turnOff parameter: default commandType: command
8/13/2021, 7:23:40 PMSwitchBot BridgeSwitchBotSending request for Garage Door Bot to SwitchBot API. command: turnOn parameter: default commandType: command
8/13/2021, 7:23:40 PMSwitchBot BridgeSwitchBotSending request for Deck Lights Bot to SwitchBot API. command: turnOn parameter: default commandType: command
8/13/2021, 7:23:40 PMSwitchBot BridgeSwitchBotSending request for Garage Door Bot to SwitchBot API. command: turnOn parameter: default commandType: command
8/13/2021, 7:23:40 PMSwitchBot BridgeSwitchBotSending request for Deck Lights Bot to SwitchBot API. command: turnOn parameter: default commandType: command
8/13/2021, 7:23:40 PMSwitchBot BridgeSwitchBotSending request for Garage Door Bot to SwitchBot API. command: turnOn parameter: default commandType: command
8/13/2021, 7:23:40 PMSwitchBot BridgeSwitchBotSending request for Deck Lights Bot to SwitchBot API. command: turnOn parameter: default commandType: command
8/13/2021, 7:23:40 PMSwitchBot BridgeSwitchBotSending request for Garage Door Bot to SwitchBot API. command: turnOn parameter: default commandType: command
8/13/2021, 7:23:40 PMSwitchBot BridgeSwitchBotSending request for Deck Lights Bot to SwitchBot API. command: turnOn parameter: default commandType: command
8/13/2021, 7:23:41 PMSwitchBot BridgeSwitchBotSending request for Garage Door Bot to SwitchBot API. command: turnOn parameter: default commandType: command
8/13/2021, 7:23:41 PMSwitchBot BridgeSwitchBotSending request for Deck Lights Bot to SwitchBot API. command: turnOn parameter: default commandType: command


8/14/2021, 6:12:43 AMSwitchBot BridgeSwitchBotSending request for Garage Door Bot to SwitchBot API. command: turnOff parameter: default commandType: command
8/14/2021, 6:12:43 AMSwitchBot BridgeSwitchBotSending request for Deck Lights Bot to SwitchBot API. command: turnOff parameter: default commandType: command
8/14/2021, 6:12:44 AMSwitchBot BridgeSwitchBotSending request for Garage Door Bot to SwitchBot API. command: turnOff parameter: default commandType: command
8/14/2021, 6:12:44 AMSwitchBot BridgeSwitchBotSending request for Deck Lights Bot to SwitchBot API. command: turnOff parameter: default commandType: command
8/14/2021, 6:12:44 AMSwitchBot BridgeSwitchBotSending request for Garage Door Bot to SwitchBot API. command: turnOff parameter: default commandType: command
8/14/2021, 6:12:44 AMSwitchBot BridgeSwitchBotSending request for Deck Lights Bot to SwitchBot API. command: turnOff parameter: default commandType: command
8/14/2021, 6:12:44 AMSwitchBot BridgeSwitchBotSending request for Garage Door Bot to SwitchBot API. command: turnOff parameter: default commandType: command
8/14/2021, 6:12:44 AMSwitchBot BridgeSwitchBotSending request for Deck Lights Bot to SwitchBot API. command: turnOff parameter: default commandType: command
8/14/2021, 6:12:44 AMSwitchBot BridgeSwitchBotSending request for Garage Door Bot to SwitchBot API. command: turnOff parameter: default commandType: command
8/14/2021, 6:12:44 AMSwitchBot BridgeSwitchBotSending request for Deck Lights Bot to SwitchBot API. command: turnOff parameter: default commandType: command
8/14/2021, 6:12:44 AMSwitchBot BridgeSwitchBotSending request for Garage Door Bot to SwitchBot API. command: turnOff parameter: default commandType: command
8/14/2021, 6:12:44 AMSwitchBot BridgeSwitchBotSending request for Deck Lights Bot to SwitchBot API. command: turnOff parameter: default commandType: command

Homebridge Config:

{
    "accessories": [],
    "platforms": [
        {
            "platform": "SwitchBot",
            "name": "SwitchBot",
            "credentials": {
                "notice": "Keep your token a secret!",
                "openToken": "hidden for security"
            },
            "options": {
                "bot": {
                    "device_switch": [
                        "xxxxxxxxxxxxxx (hidden)",
                        "xxxxxxxxxxxxxx (hidden)",
                    ]
                }
            }
        }
    ]
}

Screenshots:

These are from the SwitchBot app. This is where I first found the issue. 2 stills per device of the 'Log' section. The one with the red error 'Unknown error (190)' is the same both days.

IMG_6850
IMG_6851
IMG_6854
IMG_6855

Device Model:

Raspberry Pi 4 4GB Model B with 1.5GHz 64-bit quad-core CPU

Environment:

  • Node.js Version: 14.17.5
  • NPM Version: 6.14.14
  • Homebridge Version: 1.3.4
  • Homebridge SwitchBot Plugin Version: 2.0.5
  • Homebridge Config UI X Plugin Version: Latest (I believe 4.41.2 but not sure how to check on HOOBS)
  • Operating System: Raspbian Buster

Bug: Air conditioner temperature not able to change

Describe The Bug

Whenever I use the apple's native home app to change the temperature of my air conditioner, it doesn't change the temperature at all. And also, I always select the cooling mode when I turn on, but instead does heating. The number of the temperature i set using a remote controller and the temperature displayed on the apple home app doesn't sync. As you can see from the log, program has failed to send statusCode instead sending the value of %s,%s,%s,%s

To Reproduce

TOSHIBA air conditioner and change temperature from apple's home app

Expected behavior

Temperature not changing

Relevant log output

[10/6/2021, 4:25:24 PM] [SwitchBot] Trigger Get CurrentTemperture
[10/6/2021, 4:25:24 PM] [@switchbot/homebridge-switchbot] This plugin generated a warning from the characteristic 'Current Temperature': characteristic value expected valid finite number and received "NaN" (number). See https://git.io/JtMGR for more info.
[10/6/2021, 4:25:24 PM] [@switchbot/homebridge-switchbot] Error: 
    at CurrentTemperature.Characteristic.characteristicWarning (/usr/local/lib/node_modules/homebridge/node_modules/hap-nodejs/src/lib/Characteristic.ts:2038:105)
    at CurrentTemperature.Characteristic.validateUserInput (/usr/local/lib/node_modules/homebridge/node_modules/hap-nodejs/src/lib/Characteristic.ts:1931:16)
    at CurrentTemperature.<anonymous> (/usr/local/lib/node_modules/homebridge/node_modules/hap-nodejs/src/lib/Characteristic.ts:1456:24)
    at step (/usr/local/lib/node_modules/homebridge/node_modules/tslib/tslib.js:143:27)
    at Object.next (/usr/local/lib/node_modules/homebridge/node_modules/tslib/tslib.js:124:57)
    at fulfilled (/usr/local/lib/node_modules/homebridge/node_modules/tslib/tslib.js:114:62)
    at processTicksAndRejections (internal/process/task_queues.js:95:5)
[10/6/2021, 4:26:48 PM] [SwitchBot] Sending request for Air conditioner  Air Conditioner to SwitchBot API. command: setAll parameter: %s,%s,%s,%s commandType: command
[10/6/2021, 4:26:48 PM] [SwitchBot] %s %s pushChanges -
[10/6/2021, 4:26:49 PM] [SwitchBot] %s %s Changes pushed -
[10/6/2021, 4:26:49 PM] [SwitchBot] Unknown statusCode.
[10/6/2021, 4:27:22 PM] [SwitchBot] Sending request for Air conditioner  Air Conditioner to SwitchBot API. command: setAll parameter: %s,%s,%s,%s commandType: command
[10/6/2021, 4:27:22 PM] [SwitchBot] %s %s pushChanges -
[10/6/2021, 4:27:23 PM] [SwitchBot] %s %s Changes pushed -
[10/6/2021, 4:27:23 PM] [SwitchBot] Unknown statusCode.

Config for homebridge-switchbot

{
    "bridge": {
        "name": "Homebridge 2486",
        "username": "",
        "port":,
        "pin": ""
    },
    "accessories": [],
    "platforms": [
        {
            "name": "Config",
            "port": 8581,
            "platform": "config"
        },
        {
            "name": "SwitchBot",
            "credentials": {
                "openToken": "",
                "notice": "Keep your token a secret!"
            },
            "platform": "SwitchBot"
        }
    ]
}

Screenshots

No response

Device & Model

WH-UB01UJ (model of air conditioner)
W0202200 (model of Switchbot hub mini)

Node.js Version

v14.17.4

NPM Version

v7.24.0

Homebridge Version

v1.3.4

Homebridge Switchbot Plugin Version

v0.1.1

Homebridge Config UI X Plugin Version

v4.41.2

Operating System

macOS

"Bot Device Paramters not set for this Bot."

Describe Your Problem

Works in Switchbot app and Siri Shortcuts, but not in Homekit

Relevant log output

10/18/2021, 6:35:35 AMSwitchbot Bridge starting
10/18/2021, 6:35:40 AMSwitchbot BridgeLoaded plugin '@switchbot/homebridge-switchbot'
10/18/2021, 6:35:40 AMSwitchbot BridgeLoading 1 platforms...
10/18/2021, 6:35:40 AMSwitchbot BridgeSwitchBotWARNINGUsing Default Refresh Rate.
10/18/2021, 6:35:40 AMSwitchbot BridgeSwitchBotWARNINGUsing Default Push Rate.
10/18/2021, 6:35:40 AMSwitchbot BridgeSwitchBotLoading accessory from cache: Fireplace Bot
10/18/2021, 6:35:40 AMSwitchbot BridgeBridge is running on port 51856.
10/18/2021, 6:35:41 AMSwitchbot BridgeSwitchBotTotal SwitchBot Devices Found: 2
10/18/2021, 6:35:41 AMSwitchbot BridgeSwitchBotTotal IR Devices Found: 0
10/18/2021, 6:35:41 AMSwitchbot BridgeSwitchBotRestoring existing accessory from cache: Fireplace Bot DeviceID: DE61AACF7EF4
10/18/2021, 6:35:53 AMSwitchbot BridgeSwitchBotERROR"Bot Device Paramters not set for this Bot."

Config for homebridge-switchbot

{
    "accessories": [],
    "platforms": [
        {
            "platform": "SwitchBot",
            "name": "SwitchBot",
            "credentials": {
                "notice": "Keep your token a secret!",
                "openToken": "REDACTED"
            },
            "options": {
                "bot": {
                    "device_press": [
                        "DE:61:AA:CF:7E:F4"
                    ],
                    "switch": true
                },
                "meter": {
                    "unit": 1
                },
            }
        }
    ]
}

Screenshots

No response

Device & Model

Mini Hub and Switchbot Bot

Node.js Version

14.18.1

NPM Version

v6.14.15

Homebridge Version

v1.3.4

Homebridge SwitchBot Plugin Version

v0.1.1

Homebridge Config UI X Plugin Version

No response

Operating System

Hoobs / Raspian

Support Request: Can't install new version of new repo

Describe Your Problem

I was using the old repo, I remove the old one to install this new version but I have some errors during installation ! I can't control my switch anymore...

Relevant log output

npm ERR! code 1
npm ERR! path C:\Users\...\AppData\Roaming\npm\node_modules\@switchbot\homebridge-switchbot\node_modules\@homebridge\noble
npm ERR! command failed
npm ERR! command C:\WINDOWS\system32\cmd.exe /d /s /c node-gyp rebuild
npm ERR! gyp info it worked if it ends with ok
npm ERR! gyp info using [email protected]
npm ERR! gyp info using [email protected] | win32 | x64
npm ERR! gyp info find Python using Python version 3.9.7 found at "C:\Program Files\Python39\python.exe"
npm ERR! gyp info find VS using VS2019 (16.11.31702.278) found at:
npm ERR! gyp info find VS "C:\Program Files (x86)\Microsoft Visual Studio\2019\Community"
npm ERR! gyp info find VS run with --verbose for detailed information
npm ERR! (node:11648) [DEP0150] DeprecationWarning: Setting process.config is deprecate
d. In the future the property will be read-only.
npm ERR! (Use `node --trace-deprecation ...` to show where the warning was created)    
npm ERR! gyp info spawn C:\Program Files\Python39\python.exe
npm ERR! gyp info spawn args [
npm ERR! gyp info spawn args   'C:\\Users\\...\\AppData\\Roaming\\npm\\node_modules\\npm\\node_modules\\node-gyp\\gyp\\gyp_main.py',
npm ERR! gyp info spawn args   'binding.gyp',
npm ERR! gyp info spawn args   '-f',
npm ERR! gyp info spawn args   'msvs',
npm ERR! gyp info spawn args   '-I',
npm ERR! gyp info spawn args   'C:\\Users\\...\\AppData\\Roaming\\npm\\node_modules\\@switchbot\\homebridge-switchbot\\node_modules\\@homebridge\\noble\\build\\config.gypi'
,
npm ERR! gyp info spawn args   '-I',
npm ERR! gyp info spawn args   'C:\\Users\\...\\AppData\\Roaming\\npm\\node_modules\\npm\\node_modules\\node-gyp\\addon.gypi',
npm ERR! gyp info spawn args   '-I',
npm ERR! gyp info spawn args   'C:\\WINDOWS\\system32\\config\\systemprofile\\AppData\\Local\\node-gyp\\Cache\\16.6.1\\common.gypi',
npm ERR! gyp info spawn args   '-Dlibrary=shared_library',
npm ERR! gyp info spawn args   '-Dvisibility=default',
npm ERR! gyp info spawn args   '-Dnode_root_dir=C:\\WINDOWS\\system32\\config\\systemprofile\\AppData\\Local\\node-gyp\\Cache\\16.6.1',
npm ERR! gyp info spawn args   '-Dnode_gyp_dir=C:\\Users\\...\\AppData\\Roaming\\npm\\node_modules\\npm\\node_modules\\node-gyp',
npm ERR! gyp info spawn args   '-Dnode_lib_file=C:\\\\WINDOWS\\\\system32\\\\config\\\\systemprofile\\\\AppData\\\\Local\\\\node-gyp\\\\Cache\\\\16.6.1\\\\<(target_arch)\\\\n
ode.lib',
npm ERR! gyp info spawn args   '-Dmodule_root_dir=C:\\Users\\...\\AppData\\Roaming\\npm\\node_modules\\@switchbot\\homebridge-switchbot\\node_modules\\@homebridge\\noble', 
npm ERR! gyp info spawn args   '-Dnode_engine=v8',
npm ERR! gyp info spawn args   '--depth=.',
npm ERR! gyp info spawn args   '--no-parallel',
npm ERR! gyp info spawn args   '--generator-output',
npm ERR! gyp info spawn args   'C:\\Users\\...\\AppData\\Roaming\\npm\\node_modules\\@switchbot\\homebridge-switchbot\\node_modules\\@homebridge\\noble\\build',
npm ERR! gyp info spawn args   '-Goutput_dir=.'
npm ERR! gyp info spawn args ]
npm ERR! gyp: C:\WINDOWS\system32\config\systemprofile\AppData\Local\node-gyp\Cache\16.6.1\common.gypi not found (cwd: C:\Users\...\AppData\Roaming\npm\node_modules\@switch
bot\homebridge-switchbot\node_modules\@homebridge\noble) while reading includes of bind
ing.gyp while trying to load binding.gyp
npm ERR! gyp ERR! configure error
npm ERR! gyp ERR! stack Error: `gyp` failed with exit code: 1
npm ERR! gyp ERR! stack     at ChildProcess.onCpExit (C:\Users\...\AppData\Roaming\npm\node_modules\npm\node_modules\node-gyp\lib\configure.js:351:16)
npm ERR! gyp ERR! stack     at ChildProcess.emit (node:events:394:28)
npm ERR! gyp ERR! stack     at Process.ChildProcess._handle.onexit (node:internal/child
_process:290:12)
npm ERR! gyp ERR! System Windows_NT 10.0.19042
npm ERR! gyp ERR! command "C:\\Users\\...\\node_modules\\node\\bin\\node.exe" "C:\\Users\\...\\AppData\\Roaming\\npm\\node_modules\\npm\\node_modules\\node-gyp\\bin\\node
-gyp.js" "rebuild"
npm ERR! gyp ERR! cwd C:\Users\...\AppData\Roaming\npm\node_modules\@switchbot\homebridge-switchbot\node_modules\@homebridge\noble
npm ERR! gyp ERR! node -v v16.6.1
npm ERR! gyp ERR! node-gyp -v v7.1.2
npm ERR! gyp ERR! not ok

npm ERR! A complete log of this run can be found in:
npm ERR!     C:\WINDOWS\system32\config\systemprofile\AppData\Local\npm-cache\_logs\2021-10-03T08_46_58_257Z-debug.log

Command failed. Please review log for details

Config for homebridge-switchbot

Don't have any since the installation can't reach the end

Screenshots

No response

Device & Model

AORUS 5KB

Node.js Version

v14.17.5

NPM Version

v7.24.1

Homebridge Version

v1.3.4

Homebridge SwitchBot Plugin Version

v0.1.1

Homebridge Config UI X Plugin Version

v4.41.2

Operating System

Windows 10

Curtains do not open or close, but its state is reported correctly

Describe The Bug:
Curtains no longer respond to open/close commands from homebridge UI or home app on iOS. Closing from the SwitchBot app works fine, and the status change is accurately reflected (i.e. homebridge will successfully receive the status as "Closed" after the curtains have closed using the app)

Tried reinstalling the plugin/purging cache, and regenerating API key but doesn't seem to fix it.

To Reproduce:
Tap the open/close button for the curtains, no response.

Expected behavior:
The curtains would open or close.

Logs:
[6/5/2021, 10:12:32 AM] [SwitchBot] Sending request for Shade Curtain Curtain to SwitchBot API. command: setPosition parameter: 0,ff,0 commandType: command
[6/5/2021, 10:12:33 AM] [SwitchBot] Checking Shade Curtain Curtain Status ...
[6/5/2021, 10:12:38 AM] [SwitchBot] Checking Shade Curtain Curtain Status ...

Homebridge Config:

{
"name": "SwitchBot",
"credentials": {
"openToken": "[redacted]",
"notice": "Keep your token a secret!"
},
"platform": "SwitchBot"
}

Environment:

  • Node.js Version: v14.17.0
  • NPM Version: v6.14.13
  • Homebridge Version: v1.3.4
  • Homebridge SwitchBot Plugin Version: homebridge-switchbot-openapi v3.4.2
  • Homebridge Config UI X Version: homebridge-config-ui-x v4.41.1
  • Operating System: Raspbian / Docker
  • Process Supervisor: Docker

Support Request: SwitchBot status changes to ON automatically

Describe Your Problem

When I off the switchbot, it works fine. But the status changes to on after 10 seconds. It should be off until somebody changes to off.

Relevant log output

[21/11/2021, 13:07:53] [SwitchBot] Bot: Bot 7E On: false
[21/11/2021, 13:08:03] [SwitchBot] [DEBUG] Bot: Bot 7E BLE parseStatus
[21/11/2021, 13:08:03] [SwitchBot] [DEBUG] Bot: Bot 7E On: true, BatteryLevel: 91
[21/11/2021, 13:08:27] [SwitchBot] [DEBUG] Bot: Bot 7E BLE refreshStatus
[21/11/2021, 13:08:37] [SwitchBot] [DEBUG] Bot: Bot 7E BLE parseStatus
[21/11/2021, 13:08:37] [SwitchBot] [DEBUG] Bot: Bot 7E On: true, BatteryLevel: 91
[21/11/2021, 13:10:27] [SwitchBot] [DEBUG] Bot: Bot 7E BLE refreshStatus
[21/11/2021, 13:10:37] [SwitchBot] [DEBUG] Bot: Bot 7E BLE parseStatus
[21/11/2021, 13:10:37] [SwitchBot] [DEBUG] Bot: Bot 7E On: true, BatteryLevel: 91
[21/11/2021, 13:12:27] [SwitchBot] [DEBUG] Bot: Bot 7E BLE refreshStatus
[21/11/2021, 13:12:37] [SwitchBot] [DEBUG] Bot: Bot 7E BLE parseStatus
[21/11/2021, 13:12:37] [SwitchBot] [DEBUG] Bot: Bot 7E On: true, BatteryLevel: 91
[21/11/2021, 13:13:57] [Homebridge UI] [@switchbot/homebridge-switchbot] Terminating child process...
[21/11/2021, 13:13:57] [Homebridge UI] [@switchbot/homebridge-switchbot] Child process ended
[21/11/2021, 13:14:27] [SwitchBot] [DEBUG] Bot: Bot 7E BLE refreshStatus
[21/11/2021, 13:14:37] [SwitchBot] [DEBUG] Bot: Bot 7E BLE parseStatus
[21/11/2021, 13:14:37] [SwitchBot] [DEBUG] Bot: Bot 7E On: true, BatteryLevel: 91
[21/11/2021, 13:16:27] [SwitchBot] [DEBUG] Bot: Bot 7E BLE refreshStatus
[21/11/2021, 13:16:37] [SwitchBot] [DEBUG] Bot: Bot 7E BLE parseStatus
[21/11/2021, 13:16:37] [SwitchBot] [DEBUG] Bot: Bot 7E On: true, BatteryLevel: 91
...

Config for homebridge-switchbot

{
"name": "SwitchBot",
"credentials": {
"notice": "Keep your token a secret!"
},
"options": {
"devices": [
{
"deviceId": "XXXXXXXXXXXX",
"configDeviceName": "XXXX",
"configDeviceType": "Bot",
"ble": true,
"bot": {
"mode": "switch",
"deviceType": "switch"
}
}
],
"debug": "debug"
},
"_bridge": {
"username": "XX:XX:XX:XX:XX:XX",
"port": XXX
},
"platform": "SwitchBot"
}

Screenshots

スクリーンショット_2021-11-23_18_27_08
スクリーンショット_2021-11-23_18_27_27

I used to use switchbot-ble plugin. It has been working without any problem.

I have updated the plugin to homebridge-switchbot. I disabled the switchbot-ble and configured the new plugin.
Now the new plugin (homebridge-switchbot v1.2.0) works. However, there is one issue.

The problem is the switchbot status as Homebridge changes to ON after 10 seconds automatically. Here is detail procedure:

  1. I change the switchbot from ON to OFF by using either Homebridge Config UI or Apple Home app.
  2. It works fine. The switchbot moves to OFF.
  3. 10 seconds later, the switchbot status changes to ON automatically. Nobody changes the status. The switchbot doesn't move.

Please see the switchbot debug log. 1st line ([21/11/2021, 13:07:53]) means I change the switchbot status to OFF. Then 2nd and 3rd line ([21/11/2021, 13:08:03]) seems changing the switchbot status to ON. Then it repeats. I don't know why it happens.

Device & Model

RaspberryPi 4B 4MB RAM

Node.js Version

v16.13.0

NPM Version

v8.1.0

Homebridge Version

v1.3.8

Homebridge SwitchBot Plugin Version

v1.2.0

Homebridge Config UI X Plugin Version

No response

Operating System

Raspbian

Add Battery Status

Is your feature request related to a problem? Please describe.

Add the battery status to check it from HK

Describe the solution you'd like

Describe alternatives you've considered

Additional context

Bug: failed pushChanges with OpenAPI Connection

Describe The Bug

Can't access to any SwitchBot Devices (bot, meter, etc.) from homekit

To Reproduce

I've reset the hub and both Bot from the Switchbot app and reinstalled everything. Then I set the new token in Homebridge. Still errors below.

Expected behavior

I should be able to access my switchbot devices

Relevant log output

[07/12/2021, 19:21:55] [SwitchBot] Initializing SwitchBot platform...
[07/12/2021, 19:21:55] [SwitchBot] Using Default Refresh Rate (2 minutes).
[07/12/2021, 19:21:55] [SwitchBot] Using Default Push Rate.
[07/12/2021, 19:22:09] [SwitchBot] Total SwitchBot Devices Found: 3
[07/12/2021, 19:22:09] [SwitchBot] Restoring existing accessory from cache: Mario DeviceID: C2492CF8A79E
[07/12/2021, 19:22:09] [SwitchBot] Restoring existing accessory from cache: Jean DeviceID: D00DB4DE8135
[07/12/2021, 19:22:09] [SwitchBot] Total IR Devices Found: 0
[07/12/2021, 19:22:09] [SwitchBot] Bot: Mario2 Displaying as Outlet
[07/12/2021, 19:22:09] [SwitchBot] Bot: Jean2 Displaying as Outlet
[07/12/2021, 19:22:20] [Timer Chaufferette] Starting the Timer

WHEN I PRESS THE BUTTON IN HOMEKIT:
[07/12/2021, 19:22:41] [SwitchBot] Bot: Jean2 failed pushChanges with OpenAPI Connection

WHEN I PRESS THE OTHER BUTTON IN HOMEKIT:
[07/12/2021, 19:22:53] [SwitchBot] Bot: Mario2 failed pushChanges with OpenAPI Connection

Config for homebridge-switchbot

{
            "name": "SwitchBot",
            "credentials": {
                "openToken": "XXXXc182a41fadc8aeaea298856e818c3c904de2dc885c568f94f8f9c711a24b4cd75f7f464a22c42a541ea76404f364",
                "notice": "Keep your token a secret!"
            },
            "platform": "SwitchBot"

Screenshots

No response

Device & Model

iPhone X, HomePod Mini, Switchbot hub mini, 2 switchbots

Node.js Version

v16.13.1

NPM Version

v8.1.2

Homebridge Version

v1.3.8

Homebridge Switchbot Plugin Version

v1.3.0

Homebridge Config UI X Plugin Version

v4.41.3

Operating System

Debian on Raspberry pi

Feature Request: Double Press

Problem

Double press option

Solution

It's not particularly a problem, but I have a device that need 1 press to power on, but 2 presses to power off (Xiaomi projector).
It would be nice if, for the same SwitchBot, we could have 2 switches : 1st one for single press and 2nd one for double press.
It's the only thing missing for my HomeKit scene to be perfect :)
Thanks a lot !

Alternatives

No response

Additional context

No response

Add option to hide curtains light sensors from HomeKit

Describe Your Problem

1.0.0 added light sensors to curtains. But since I don't own any, there are new accessoires showing up in HomeKit that are reporting incorrect lux values (since I have Hue sensors already) and messing up with my setup. Is it possible to disable light sensors for curtains somewhere ? Thanks.

Relevant log output

No response

Config for homebridge-switchbot

No response

Screenshots

No response

Device & Model

Curtain

Node.js Version

v16.13.0

NPM Version

v8.1.2

Homebridge Version

v1.3.6

Homebridge SwitchBot Plugin Version

v1.0.2

Homebridge Config UI X Plugin Version

No response

Operating System

Raspbian

Bug: After the latest update to v1.1.0 this plug took down my whole Homebridge service

Describe The Bug

After the latest update to v1.1.0 this plug took down my whole Homebridge service

To Reproduce

Install v1.1.0, restart the Homebridge service

Expected behavior

The plugin should not take down my service

Relevant log output

These were some of the relevant errors I saw in the logs:
[11/17/2021, 6:49:25 PM] [SwitchBot] You must set your Bot to Press or Switch Mode
[11/17/2021, 6:49:25 PM] [SwitchBot] Adding new accessory: SwitchBot 1 Bot DeviceID: E21C43AC2D24
[11/17/2021, 6:49:25 PM] [SwitchBot] You must set your Bot to Press or Switch Mode
[11/17/2021, 6:49:26 PM] TypeError: Cannot read properties of undefined (reading 'deviceType')
    at new Bot (/usr/lib/node_modules/@switchbot/homebridge-switchbot/src/devices/bots.ts:68:25)
    at SwitchBotPlatform.createBot (/usr/lib/node_modules/@switchbot/homebridge-switchbot/src/platform.ts:464:7)
    at processTicksAndRejections (node:internal/process/task_queues:96:5)
ERROR: uncaughtException: Cannot read properties of undefined (reading 'deviceType')
TypeError: Cannot read properties of undefined (reading 'deviceType')
    at new Bot (/usr/lib/node_modules/@switchbot/homebridge-switchbot/src/devices/bots.ts:68:25)
    at SwitchBotPlatform.createBot (/usr/lib/node_modules/@switchbot/homebridge-switchbot/src/platform.ts:464:7)
    at processTicksAndRejections (node:internal/process/task_queues:96:5)
[11/17/2021, 6:49:26 PM] TypeError: Cannot read properties of undefined (reading 'deviceType')
    at new Bot (/usr/lib/node_modules/@switchbot/homebridge-switchbot/src/devices/bots.ts:68:25)
    at SwitchBotPlatform.createBot (/usr/lib/node_modules/@switchbot/homebridge-switchbot/src/platform.ts:464:7)
    at processTicksAndRejections (node:internal/process/task_queues:96:5)
ERROR: uncaughtException: Cannot read properties of undefined (reading 'deviceType')
TypeError: Cannot read properties of undefined (reading 'deviceType')
    at new Bot (/usr/lib/node_modules/@switchbot/homebridge-switchbot/src/devices/bots.ts:68:25)
    at SwitchBotPlatform.createBot (/usr/lib/node_modules/@switchbot/homebridge-switchbot/src/platform.ts:464:7)
    at processTicksAndRejections (node:internal/process/task_queues:96:5)

Config for homebridge-switchbot

{
            "name": "SwitchBot",
            "credentials": {
                "openToken": "<hidden>",
                "notice": "Keep your token a secret!"
            },
            "options": {
                "hide_device": [
                    "E21C43AC2D24",
                    "DE27B8505B22",
                    "C7D35B609D5D"
                ]
            },
            "devicediscovery": false,
            "platform": "SwitchBot"
        },

Screenshots

No response

Device & Model

I have multiple devices

Node.js Version

v16.13.0

NPM Version

v8.1.0

Homebridge Version

v1.3.6

Homebridge Switchbot Plugin Version

v1.1.0

Homebridge Config UI X Plugin Version

v4.41.2

Operating System

Raspbian

Bug: Meter not working at all with new plugin via BLE

Describe The Bug

Meter Device not found - not working in HB

To Reproduce

Enable BLE, add meter device, restart plugin in HB

Expected behavior

It should work

Relevant log output

I've switched from old switchbot BLE plugin to this, followed all steps and when I enabled the device debug it has the following error. (see underscreenshots)

Config for homebridge-switchbot

{
            "name": "SwitchBot",
            "credentials": {
                "openToken": "8d",
                "notice": "Keep your token a secret!"
            },
            "options": {
                "devices": [
                    {
                        "deviceId": "F2D21030xxxx",
                        "configDeviceType": "Meter",
                        "ble": true
                    }
                ],
                "debug": "device"
            },
            "_bridge": {
                "username": "0E:CD:CA:9D:A4:F4",
                "port": 35673
            },
            "platform": "SwitchBot"
        }

Screenshots

[25/11/2021, 12:04:31] Registering platform '@switchbot/homebridge-switchbot.SwitchBot'
[25/11/2021, 12:04:31] [SwitchBot] Loaded @switchbot/homebridge-switchbot v1.2.1-beta.6 child bridge successfully
[25/11/2021, 12:04:31] Loaded 0 cached accessories from cachedAccessories.0ECDCA9DA4F4.
[25/11/2021, 12:04:31] [SwitchBot] Using Default Refresh Rate (2 minutes).
[25/11/2021, 12:04:31] [SwitchBot] Using Default Push Rate.
[25/11/2021, 12:04:31] Homebridge v1.3.8 (HAP v0.9.7) (SwitchBot) is running on port 35673.
[25/11/2021, 12:04:32] [SwitchBot] [DEVICE] deviceListInfoStatus: {"statusCode":100,"body":{"deviceList":[{"deviceId":"F2D210301B59","deviceName":"Meter 59","deviceType":"Meter","enableCloudService":false,"hubDeviceId":"000000000000"}],"infraredRemoteList":[]},"message":"success"}
[25/11/2021, 12:04:32] [SwitchBot] Total SwitchBot Devices Found: 1
[25/11/2021, 12:04:32] [SwitchBot] [DEVICE] Device: Meter 59 Neither OpenAPI and BLE Enabled
[25/11/2021, 12:04:32] [SwitchBot] [DEVICE] Unable to Register new device: Meter 59 Meter - F2D210301B59

Device & Model

Meter

Node.js Version

v14.18.1

NPM Version

v6.14.15

Homebridge Version

latest

Homebridge Switchbot Plugin Version

1.2.0

Homebridge Config UI X Plugin Version

No response

Operating System

Raspbian

Failed pushChanges with OpenAPI Connection

Describe Your Problem

API error occurs when Bot switch is turned on or off in the Home app

After configuring my SwitchBot hum in homebrige, I can't seem to use my one Bot accessory. While the accessory shows on the Home app, anytime I try to turn it on or off, I get the following error message in the log:

Relevant log output

[SwitchBot] Bot: Coffee Maker failed pushChanges with OpenAPI Connection
[SwitchBot] Initializing SwitchBot platform...
[SwitchBot] Using Default Refresh Rate (2 minutes).
[SwitchBot] Using Default Push Rate.
[SwitchBot] Total SwitchBot Devices Found: 2
[SwitchBot] Restoring existing accessory from cache: Coffee Maker DeviceID: DE39D92A5A62
[SwitchBot] Total IR Devices Found: 0
[SwitchBot] Bot: Coffee Maker Displaying as Outlet

Config for homebridge-switchbot

{
  "platform": "SwitchBot",
  "name": "SwitchBot",
  "credentials": {
    "openToken": "<elided>",
    "notice": "Keep your token a secret!"
  },
  "refreshRate": 30,
  "pushRate": 2,
  "debug": "device"
}

Screenshots

No response

Device & Model

N/A

Node.js Version

v14.17.5

NPM Version

v6.14.14

Homebridge Version

v1.3.8

Homebridge SwitchBot Plugin Version

v1.2.1-beta.4

Homebridge Config UI X Plugin Version

N/A

Operating System

CentOS

Feature Request: Add Support for Switchbot Camera

Describe the solution you'd like

Hello,

i have a the new released SwitchBot camera at home and it would be really nice if the camera can be added in order to work with the plugin. The device discovery text is added in the related section.

Is that possible?

Additional context

[23/08/2021, 12:13:47] [SwitchBot] {"deviceId":"xxxxxxx","deviceName":"GarageCam","enableCloudService":true,"hubDeviceId":"xxxxxx"}
[23/08/2021, 12:13:47] [SwitchBot] Device: GarageCam with Device Type: undefined, is currently not supported. Submit Feature Requests Here: https://git.io/JL14Z
[23/08/2021, 12:13:47] [SwitchBot] deviceStatus - Hub Mini 3C {"statusCode":100,"body":{},"message":"success"}
[23/08/2021, 12:13:47] [SwitchBot] deviceStatus - GarageCam {"statusCode":100,"body":{},"message":"success"}

Add Contact and Motion Sensor Support

@donavanbecker Regarding https://github.com/OpenWonderLabs/homebridge-switchbot-openapi/issues/225

Is your feature request related to a problem? Please describe.

"deprecated" homebridge-switchbot-openapi uninstalled with Homebridge UI, the config kept like it was, install this new plugin homebridge-switchbot v0.1.0 and no changes to the config. Restart. It kept all my existing devices (bots/curtains) and they worked as expected and as before. Also the new contact sensor and motion sensor was added.

Describe the solution you'd like

However, both new sensors are not changing status. No motion, no open/close with the contact sensor.
The Contact Sensor is also not showing up as a contact sensor type. Instead it's a motions sensor at the moment.

{
            "name": "SwitchBotAPI",
            "credentials": {
                "openToken": "e11c70b30ccca4aa27cfa102646ef0c1d4f9254ff5cb3dbb9ae76a5a2c8c6b4da88e1d2ce5e65e2cf67106b03977eb63",
                "notice": "Keep your token a secret!"
            },
            "options": {
                "bot": {
                    "device_press": [
                        "xxC09xxDxx09",
                        "xx82Fxx6xxFC",
                        "xx368xxBxxAA",
                        "xx6F2xx0xx5A",
                        "xx35xxC2xx70"
                    ],
                    "switch": true
                },
                "curtain": {
                    "refreshRate": 5
                }
            },
            "platform": "SwitchBot"
        },

Napkin 11 09 21, 11 01 24 AM

Bug: Curtains no longer reporting correct state under 1.0.0

Describe The Bug

Open and close calls work, but no longer reporting state

To Reproduce

Open a SwitchBot Curtain, check state

Expected behavior

State is open, but it’s still reporting closed

Relevant log output

[11/14/2021, 11:05:12 AM] [SwitchBot] OpenAPI
[11/14/2021, 11:05:12 AM] [SwitchBot] Curtain Achterdeur CurrentPosition - Device is Currently: 100
[11/14/2021, 11:05:12 AM] [SwitchBot] Curtain Achterdeur - Current position: 100 standby
[11/14/2021, 11:05:12 AM] [SwitchBot] Curtain Achterdeur CurrentPosition: 100, TargetPosition: 100, PositionState: 2, CurrentAmbientLightLevel: 100000
[11/14/2021, 11:05:12 AM] [SwitchBot] Curtain Achterdeur updateHomeKitCharacteristics - {"CurrentPosition":100,"PositionState":2,"TargetPosition":100,"CurrentAmbientLightLevel":100000}
[11/14/2021, 11:05:12 AM] [SwitchBot] Curtain Achterdeur updateCharacteristic CurrentPosition: 100
[11/14/2021, 11:05:12 AM] [SwitchBot] Curtain Achterdeur updateCharacteristic PositionState: 2
[11/14/2021, 11:05:12 AM] [SwitchBot] Curtain Achterdeur updateCharacteristic TargetPosition: 100
[11/14/2021, 11:05:12 AM] [SwitchBot] Curtain Achterdeur updateCharacteristic CurrentAmbientLightLevel: 100000
[11/14/2021, 11:05:12 AM] [SwitchBot] Curtain Woonkamer refreshStatus: {"statusCode":100,"body":{"deviceId":"HIDDEN","deviceType":"Curtain","hubDeviceId":"HIDDEN","calibrate":true,"group":false,"moving":false,"slidePosition":0},"message":"success"}
[11/14/2021, 11:05:12 AM] [SwitchBot] OpenAPI
[11/14/2021, 11:05:12 AM] [SwitchBot] Curtain Woonkamer CurrentPosition - Device is Currently: 100
[11/14/2021, 11:05:12 AM] [SwitchBot] Curtain Woonkamer - Current position: 100 standby
[11/14/2021, 11:05:12 AM] [SwitchBot] Curtain Woonkamer CurrentPosition: 100, TargetPosition: 100, PositionState: 2, CurrentAmbientLightLevel: 100000
[11/14/2021, 11:05:12 AM] [SwitchBot] Curtain Woonkamer updateHomeKitCharacteristics - {"CurrentPosition":100,"PositionState":2,"TargetPosition":100,"CurrentAmbientLightLevel":100000}
[11/14/2021, 11:05:12 AM] [SwitchBot] Curtain Woonkamer updateCharacteristic CurrentPosition: 100
[11/14/2021, 11:05:12 AM] [SwitchBot] Curtain Woonkamer updateCharacteristic PositionState: 2
[11/14/2021, 11:05:12 AM] [SwitchBot] Curtain Woonkamer updateCharacteristic TargetPosition: 100
[11/14/2021, 11:05:12 AM] [SwitchBot] Curtain Woonkamer updateCharacteristic CurrentAmbientLightLevel: 100000

Config for homebridge-switchbot

{
            "name": "SwitchBot",
            "credentials": {
                "openToken": "<HIDDEN>",
                "notice": "Keep your token a secret!"
            },
            "platform": "SwitchBot"
        }

Screenshots

42C2D58B-A2C2-4216-88A9-5243150B9B80
5ADEB80B-2AD9-4C31-8E45-FFCD763C3F7D

Device & Model

SwitchBot Curtain

Node.js Version

v16.13.0

NPM Version

v8.1.0

Homebridge Version

V1.3.6

Homebridge Switchbot Plugin Version

V1.0.0

Homebridge Config UI X Plugin Version

V4.41.2

Operating System

Docker

Speaker volume up/down in remote app issue

Describe The Bug:

So I was using the IR remote function to adjust volume up/down for my soundbar. so every time i open remote on my iPhone to adjust the volume, it adjusts but then turn off the soundbar right after. i went to the logs to check, and turn out that everytime you open the remote on iphone and adjust the volume for the 1st time, it will automatically send a 'turn on' request also causing the 'already on soundbar' to turn off

To Reproduce:

Press on the volume buttons after open the remote on iphone

Expected behavior:

Only to turn the volume up/down without effecting the soundbar current power state

Logs:

[04/09/2021, 01:38:04] [SwitchBot] Sending request for Sound Bar DIY Speaker to SwitchBot API. command: volumeAdd parameter: default commandType: command
[04/09/2021, 01:38:04] [SwitchBot] Sending request for Sound Bar DIY Speaker to SwitchBot API. command: turnOn parameter: default commandType: command
[04/09/2021, 01:38:05] [SwitchBot] Sending request for Sound Bar DIY Speaker to SwitchBot API. command: volumeAdd parameter: default commandType: command
[04/09/2021, 01:38:06] [SwitchBot] Sending request for Sound Bar DIY Speaker to SwitchBot API. command: volumeAdd parameter: default commandType: command
[04/09/2021, 01:38:06] [SwitchBot] Sending request for Sound Bar DIY Speaker to SwitchBot API. command: volumeAdd parameter: default commandType: command
[04/09/2021, 01:38:07] [SwitchBot] Sending request for Sound Bar DIY Speaker to SwitchBot API. command: volumeAdd parameter: default commandType: command
[04/09/2021, 01:38:07] [SwitchBot] Sending request for Sound Bar DIY Speaker to SwitchBot API. command: volumeAdd parameter: default commandType: command

Homebridge Config:

{
	"name": "SwitchBot",
	"credentials": {
		"openToken": "***",
		"notice": "Keep your token a secret!"
	},
	"devicediscovery": true,
	"platform": "SwitchBot"
}

Screenshots:

N/A

Environment:

  • Node.js Version: 14.17.6
  • NPM Version: 7.22.0
  • Homebridge Version: 1.3.4
  • Homebridge SwitchBot Plugin Version: 3.5.0
  • Homebridge Config UI X Plugin Version: 4.41.2
  • Operating System: Raspbian GNU/Linux Buster (10)

Support Request: old curtain still visible

Describe Your Problem

Disconnected curtain still visible (I've returned it to Amazon)

Relevant log output

No response

Config for homebridge-switchbot

{
    "name": ".....",
    "credentials": {
        "openToken": "...",
        "notice": "Keep your token a secret!"
    },
    "options": {
        "hide_device": [
            "C7BF1643E5D7"
        ],
        "curtain": {
            "disable_group": false
        }
    },
    "platform": "SwitchBot"
}

Screenshots

image
image

Device & Model

SWITCHBOT-CURTAIN-W0701600

Node.js Version

v14.17.6

NPM Version

v6.14.15

Homebridge Version

v1.3.4

Homebridge SwitchBot Plugin Version

v0.1.1

Homebridge Config UI X Plugin Version

v4.41.2

Operating System

Raspbian

Feature Request: Add support for contact sensor pushbutton

Problem

the button is exposed in the API but not used in the plugin. Would be neat to have the button configureable for home automatisation

Solution

expose the push button to the homebridge instance

Alternatives

No response

Additional context

No response

Feature Request: Auto-Off “Press” SwitchBot

Problem

I want to automate a “Press” SwitchBot by turning the projected Light Switch to “On”. However, the automation only works once because after the SwitchBot is turned “On”, it stays “On” until turned off.

Solution

When a SwitchBot is configured to be in “Press” mode, automatically turn the projected Light Switch back to “Off” immediately. This would enable automations that trigger the “Press” to be used repeatedly.

Alternatives

No response

Additional context

I am using SwitchBot with BLE, without the Hub.

Feature Request: Ability to choose type of device

Problem

Wrong icon in HomeKit

Solution

It could be nice to be able to choose the type of sensor for Switchbot device. I'm currently using a simple Switchbot Bot for my electric store and that could be nice to show it as a store in HomeKit, but it is currently showing as an outlet, and it can only be showed as :

  • an outlet
  • a fan
  • a light

Alternatives

Adding other type of sensor of SwitchBot Bot as it can be used for many things:

  • contact sensor
  • door
  • garage door
  • blinds
  • window
  • ...

Additional context

I've seen that you've also done SwitchBot x No-IP, and this No-IP accessory in Homekit can be displayed as one of the type mentioned above

Bug: Failed to update status. Error Message: "Cannot read property 'updateCharacteristic' of undefined"

Describe The Bug

Unresponsive humidifier in Home app with "hide_temperature": true

To Reproduce

Choose the option to hide humidifier in plugin settings

Expected behavior

Normally Funtion

Relevant log output

[15/11/2021, 23:12:51] [SwitchBot] Total SwitchBot Devices Found: 6
[15/11/2021, 23:12:51] [SwitchBot] Restoring existing accessory from cache: Humidifier DeviceID: AC67B2D7FAA2
[15/11/2021, 23:12:51] [SwitchBot] Restoring existing accessory from cache: Curtain 1 DeviceID: D467D2F51E45
[15/11/2021, 23:12:51] [SwitchBot] Restoring existing accessory from cache: Curtain 3 DeviceID: D7020E5DE253
[15/11/2021, 23:12:51] [SwitchBot] Total IR Devices Found: 2
[15/11/2021, 23:12:51] [SwitchBot] Adding new accessory: Sound Bar DIY Speaker DeviceID: 02-202109011758-87349547
[15/11/2021, 23:12:51] [SwitchBot] Restoring existing accessory from cache: Tower Fan DeviceID: 02-202109011807-50408529
[15/11/2021, 23:12:51] Sound Bar 0864 is running on port 42637.
[15/11/2021, 23:12:51] Please add [Sound Bar 0864] manually in Home app. Setup Code: 415-15-226
(node:9578) UnhandledPromiseRejectionWarning: TypeError: Cannot read property 'updateCharacteristic' of undefined
    at Humidifier.updateHomeKitCharacteristics (/usr/local/lib/node_modules/@switchbot/homebridge-switchbot/src/devices/humidifiers.ts:505:32)
    at new Humidifier (/usr/local/lib/node_modules/@switchbot/homebridge-switchbot/src/devices/humidifiers.ts:152:10)
    at SwitchBotPlatform.createHumidifier (/usr/local/lib/node_modules/@switchbot/homebridge-switchbot/src/platform.ts:380:9)
    at processTicksAndRejections (internal/process/task_queues.js:95:5)
(Use `node --trace-warnings ...` to show where the warning was created)
(node:9578) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). To terminate the node process on unhandled promise rejection, use the CLI flag `--unhandled-rejections=strict` (see https://nodejs.org/api/cli.html#cli_unhandled_rejections_mode). (rejection id: 1)
(node:9578) [DEP0018] DeprecationWarning: Unhandled promise rejections are deprecated. In the future, promise rejections that are not handled will terminate the Node.js process with a non-zero exit code.
[15/11/2021, 23:12:51] [SwitchBot] Humidifier Humidifier, Failed to update status. Error Message: "Cannot read property 'updateCharacteristic' of undefined"

Config for homebridge-switchbot

{
            "name": "SwitchBot",
            "credentials": {
                "openToken": "secret",
                "notice": "Keep your token a secret!"
            },
            "options": {
                "devices": [
                    {
                        "deviceId": "AC67B2D7FAA2",
                        "deviceType": "Humidifier",
                        "ble": false,
                        "bot": {
                            "deviceType": "outlet"
                        },
                        "humidifier": {
                            "hide_temperature": true
                        }
                    }
                ],
                "irdevices": [
                    {
                        "deviceId": "02-202109011758-87349547",
                        "remoteType": "DIY Speaker",
                        "irtv": {
                            "disable_power": true
                        }
                    },
                    {
                        "deviceId": "02-202109011807-50408529",
                        "hide_device": true
                    }
                ]
            },
            "platform": "SwitchBot"
        }

Screenshots

No response

Device & Model

Raspberry Pi 4 Model B

Node.js Version

v14.18.1

NPM Version

v8.1.3

Homebridge Version

v1.3.6

Homebridge Switchbot Plugin Version

v1.0.2

Homebridge Config UI X Plugin Version

v4.41.2

Operating System

Raspbian GNU/Linux Buster (10)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.