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.
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
Config for homebridge-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)