Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bug: IR Devices do not send signals #520

Closed
jonzhan opened this issue Oct 14, 2022 · 50 comments
Closed

Bug: IR Devices do not send signals #520

jonzhan opened this issue Oct 14, 2022 · 50 comments
Assignees
Labels
bug Something isn't working

Comments

@jonzhan
Copy link

jonzhan commented Oct 14, 2022

Describe The Bug

The associated command should be sent when an IR device is turned on or off, but it is not. There is also no log message for the IR device in the Switchbot App Log

To Reproduce

Declare device as indicated in config section below, then try turning on/off

Expected behavior

IR commands should be sent, and the API call should be noted in the Switchbot App Log

Relevant log output

[14/10/2022, 18:41:18] [SwitchBot] [DEBUG] Others: DEVICENAME On: 0
[14/10/2022, 18:41:38] [SwitchBot] [DEBUG] Others: DEVICENAME On: 1

Please note further: No API call is noted for this IR device in the Switchbot App log.
Interactions with Switchbot Hardware devices work fine, so it should not be an authentication issue.

Config for homebridge-switchbot

"name": "SwitchBot",
            "credentials": {
                    // removed, not relevant to ticket
            },
            "options": {
                "devices": [
                    // removed, not relevant to ticket
                ],
                "irdevices": [
                    {
                        "deviceId": "<DEVICEID>",
                        "configDeviceName": "<DEVICENAME>",
                        "configRemoteType": "Others",
                        "connectionType": "OpenAPI",
                        "customize": true,
                        "customOn": "On",
                        "customOff": "Off",
                        "other": {
                            "deviceType": "Fan",
                            "commandOn": "On",
                            "commandOff": "Off"
                        },
                        "logging": "debug"
                    }
                ]
            },
            "platform": "SwitchBot"

Screenshots

No response

Device & Model

Raspberry Pi 3

Node.js Version

v16.18.0

NPM Version

8.19.2

Homebridge Version

v1.5.0

Homebridge Switchbot Plugin Version

v2.1.1-beta.0

Homebridge Config UI X Plugin Version

v4.50.1

Operating System

Raspbian

@Kohle81
Copy link

Kohle81 commented Oct 14, 2022

Same here. IR SIGNAL TV does not run through Switchbot Hub mini when enabled through Homekit.

Here the log:

14/10/2022, 13:05:46] [SwitchBot] Restarting Process...
[14/10/2022, 13:05:47] [SwitchBot] Launched child bridge with PID 24166
[14/10/2022, 13:05:50] Registering platform '@switchbot/homebridge-switchbot.SwitchBot'
[14/10/2022, 13:05:50] [SwitchBot] Loaded @switchbot/homebridge-switchbot v2.1.0 child bridge successfully
[14/10/2022, 13:05:50] Loaded 7 cached accessories from cachedAccessories.0ED4D25411C9.
[14/10/2022, 13:05:50] [SwitchBot] [DEBUG] Using Config Logging: debug
[14/10/2022, 13:05:50] [SwitchBot] [DEBUG] Finished initializing platform:
[14/10/2022, 13:05:50] [SwitchBot] Platform Config: {"logging":"debug"}
[14/10/2022, 13:05:50] [SwitchBot] [DEBUG] Using Default Refresh Rate (2 minutes).
[14/10/2022, 13:05:50] [SwitchBot] [DEBUG] Using Default Push Rate.
[14/10/2022, 13:05:50] [SwitchBot] [DEBUG] Config OK
[14/10/2022, 13:05:50] [SwitchBot] [DEBUG] Loading accessory from cache: Linkes Bett hoch
[14/10/2022, 13:05:50] [SwitchBot] [DEBUG] Loading accessory from cache: Rechts Bett runter
[14/10/2022, 13:05:50] [SwitchBot] [DEBUG] Loading accessory from cache: Rechtes Bett hoch
[14/10/2022, 13:05:50] [SwitchBot] [DEBUG] Loading accessory from cache: Switchbot Luftqualität
[14/10/2022, 13:05:50] [SwitchBot] [DEBUG] Loading accessory from cache: Türöffner
[14/10/2022, 13:05:50] [SwitchBot] [DEBUG] Loading accessory from cache: Luftbefeuchter
[14/10/2022, 13:05:50] [SwitchBot] [DEBUG] Loading accessory from cache: Linkes Bett runter
[14/10/2022, 13:05:50] [SwitchBot] [DEBUG] Executed didFinishLaunching callback
[14/10/2022, 13:05:50] [SwitchBot] [DEBUG] qcBq+/M4qm4w4UheX4f9hgmRJMmUdeWXvqaJsIE5xrY=
[14/10/2022, 13:05:50] Homebridge v1.5.0 (HAP v0.10.2) (SwitchBot) is running on port 39464.
[14/10/2022, 13:05:50] [SwitchBot] [DEBUG] statusCode: 200
[14/10/2022, 13:05:50] [SwitchBot] [DEBUG] headers: {"date":"Fri, 14 Oct 2022 11:05:50 GMT","content-type":"application/json","content-length":"1241","connection":"close","x-amzn-requestid":"8a0d9578-de71-490e-90bd-a11d6fba940a","x-amz-apigw-id":"Z_dWVFrAIAMFwLA=","x-amzn-trace-id":"Root=1-6349428e-369fe76953f8775a746e1d24;Sampled=0"}
[14/10/2022, 13:05:50] [SwitchBot] [DEBUG] d: {"statusCode":100,"body":{"deviceList":[{"deviceId":"C42F040FCCD2","deviceName":"Bett Nicki hoch","deviceType":"Bot","enableCloudService":true,"hubDeviceId":"FD6A96EC2808"},{"deviceId":"C9A1CF72C9FC","deviceName":"Bett Manu runter","deviceType":"Bot","enableCloudService":true,"hubDeviceId":"FD6A96EC2808"},{"deviceId":"CBA415F0A044","deviceName":"Bett Manu hoch","deviceType":"Bot","enableCloudService":true,"hubDeviceId":"FD6A96EC2808"},{"deviceId":"D1FFDE76E505","deviceName":"Switchbot Luftqualität","deviceType":"Meter","enableCloudService":true,"hubDeviceId":"FD6A96EC2808"},{"deviceId":"D9CB51AD652F","deviceName":"Haustüre","deviceType":"Bot","enableCloudService":true,"hubDeviceId":"FD6A96EC2808"},{"deviceId":"FCF5C43E85EE","deviceName":"Luftbefeuchter","deviceType":"Humidifier","enableCloudService":true,"hubDeviceId":"000000000000"},{"deviceId":"FD6A96EC2808","deviceName":"Hub Mini 08","deviceType":"Hub Mini","hubDeviceId":"000000000000"},{"deviceId":"FEDAC1EDB7BD","deviceName":"Bett Nicki runter","deviceType":"Bot","enableCloudService":true,"hubDeviceId":"FD6A96EC2808"}],"infraredRemoteList":[{"deviceId":"02-202201092307-52501973","deviceName":"LG","remoteType":"TV","hubDeviceId":"FD6A96EC2808"}]},"message":"success"}
[14/10/2022, 13:05:50] [SwitchBot] [DEBUG] devicesAPI: {"deviceList":[{"deviceId":"C42F040FCCD2","deviceName":"Bett Nicki hoch","deviceType":"Bot","enableCloudService":true,"hubDeviceId":"FD6A96EC2808"},{"deviceId":"C9A1CF72C9FC","deviceName":"Bett Manu runter","deviceType":"Bot","enableCloudService":true,"hubDeviceId":"FD6A96EC2808"},{"deviceId":"CBA415F0A044","deviceName":"Bett Manu hoch","deviceType":"Bot","enableCloudService":true,"hubDeviceId":"FD6A96EC2808"},{"deviceId":"D1FFDE76E505","deviceName":"Switchbot Luftqualität","deviceType":"Meter","enableCloudService":true,"hubDeviceId":"FD6A96EC2808"},{"deviceId":"D9CB51AD652F","deviceName":"Haustüre","deviceType":"Bot","enableCloudService":true,"hubDeviceId":"FD6A96EC2808"},{"deviceId":"FCF5C43E85EE","deviceName":"Luftbefeuchter","deviceType":"Humidifier","enableCloudService":true,"hubDeviceId":"000000000000"},{"deviceId":"FD6A96EC2808","deviceName":"Hub Mini 08","deviceType":"Hub Mini","hubDeviceId":"000000000000"},{"deviceId":"FEDAC1EDB7BD","deviceName":"Bett Nicki runter","deviceType":"Bot","enableCloudService":true,"hubDeviceId":"FD6A96EC2808"}],"infraredRemoteList":[{"deviceId":"02-202201092307-52501973","deviceName":"LG","remoteType":"TV","hubDeviceId":"FD6A96EC2808"}]}
[14/10/2022, 13:05:50] [SwitchBot] Total SwitchBot Devices Found: 8
[14/10/2022, 13:05:50] [SwitchBot] [DEBUG] SwitchBot Device Config Set: [{"deviceId":"C42F040FCCD2","configDeviceName":"Linkes Bett hoch","configDeviceType":"Bot","bot":{"mode":"press","deviceType":"switch"},"logging":"standard"},{"deviceId":"C9A1CF72C9FC","configDeviceName":"Rechts Bett runter","configDeviceType":"Bot","bot":{"mode":"press","deviceType":"switch"},"logging":"standard"},{"deviceId":"CBA415F0A044","configDeviceName":"Rechtes Bett hoch","configDeviceType":"Bot","bot":{"mode":"press","deviceType":"switch"},"logging":"standard"},{"deviceId":"FEDAC1EDB7BD","configDeviceName":"Linkes Bett runter","configDeviceType":"Bot","bot":{"mode":"press","deviceType":"switch"},"logging":"standard"},{"deviceId":"D9CB51AD652F","configDeviceName":"Türöffner","configDeviceType":"Bot","bot":{"mode":"press","deviceType":"lock"},"logging":"standard"}]
[14/10/2022, 13:05:50] [SwitchBot] [DEBUG] SwitchBot Devices: [{"deviceId":"C42F040FCCD2","configDeviceName":"Linkes Bett hoch","configDeviceType":"Bot","bot":{"mode":"press","deviceType":"switch"},"logging":"standard","deviceName":"Bett Nicki hoch","deviceType":"Bot","enableCloudService":true,"hubDeviceId":"FD6A96EC2808"},{"deviceId":"C9A1CF72C9FC","configDeviceName":"Rechts Bett runter","configDeviceType":"Bot","bot":{"mode":"press","deviceType":"switch"},"logging":"standard","deviceName":"Bett Manu runter","deviceType":"Bot","enableCloudService":true,"hubDeviceId":"FD6A96EC2808"},{"deviceId":"CBA415F0A044","configDeviceName":"Rechtes Bett hoch","configDeviceType":"Bot","bot":{"mode":"press","deviceType":"switch"},"logging":"standard","deviceName":"Bett Manu hoch","deviceType":"Bot","enableCloudService":true,"hubDeviceId":"FD6A96EC2808"},{"deviceId":"D1FFDE76E505","deviceName":"Switchbot Luftqualität","deviceType":"Meter","enableCloudService":true,"hubDeviceId":"FD6A96EC2808"},{"deviceId":"D9CB51AD652F","configDeviceName":"Türöffner","configDeviceType":"Bot","bot":{"mode":"press","deviceType":"lock"},"logging":"standard","deviceName":"Haustüre","deviceType":"Bot","enableCloudService":true,"hubDeviceId":"FD6A96EC2808"},{"deviceId":"FCF5C43E85EE","deviceName":"Luftbefeuchter","deviceType":"Humidifier","enableCloudService":true,"hubDeviceId":"000000000000"},{"deviceId":"FD6A96EC2808","deviceName":"Hub Mini 08","deviceType":"Hub Mini","hubDeviceId":"000000000000"},{"deviceId":"FEDAC1EDB7BD","configDeviceName":"Linkes Bett runter","configDeviceType":"Bot","bot":{"mode":"press","deviceType":"switch"},"logging":"standard","deviceName":"Bett Nicki runter","deviceType":"Bot","enableCloudService":true,"hubDeviceId":"FD6A96EC2808"}]
[14/10/2022, 13:05:50] [SwitchBot] [DEBUG] Discovered Bot: C42F040FCCD2
[14/10/2022, 13:05:50] [SwitchBot] [DEBUG] Discovered Bot: C9A1CF72C9FC
[14/10/2022, 13:05:50] [SwitchBot] [DEBUG] Discovered Bot: CBA415F0A044
[14/10/2022, 13:05:50] [SwitchBot] [DEBUG] Discovered Meter: D1FFDE76E505
[14/10/2022, 13:05:50] [SwitchBot] [DEBUG] Discovered Bot: D9CB51AD652F
[14/10/2022, 13:05:50] [SwitchBot] [DEBUG] Discovered Humidifier: FCF5C43E85EE
[14/10/2022, 13:05:50] [SwitchBot] [DEBUG] Discovered Hub Mini: FD6A96EC2808
[14/10/2022, 13:05:50] [SwitchBot] [DEBUG] Discovered Bot: FEDAC1EDB7BD
[14/10/2022, 13:05:50] [SwitchBot] Total IR Devices Found: 1
[14/10/2022, 13:05:50] [SwitchBot] Total IR Devices Found: 1
[14/10/2022, 13:05:50] [SwitchBot] [DEBUG] IR Device Config Not Set: undefined
[14/10/2022, 13:05:50] [SwitchBot] [DEBUG] Discovered TV: 02-202201092307-52501973
[14/10/2022, 13:05:50] [SwitchBot] Adding new accessory: LG TV DeviceID: 02-202201092307-52501973
[14/10/2022, 13:05:50] [SwitchBot] [DEBUG] Device: Linkes Bett hoch registerDevice: true
[14/10/2022, 13:05:50] [SwitchBot] [DEBUG] Device: Linkes Bett hoch connectionType: OpenAPI, will display in HomeKit
[14/10/2022, 13:05:50] [SwitchBot] [DEBUG] Device: Rechts Bett runter registerDevice: true
[14/10/2022, 13:05:50] [SwitchBot] [DEBUG] Device: Rechts Bett runter connectionType: OpenAPI, will display in HomeKit
[14/10/2022, 13:05:50] [SwitchBot] [DEBUG] Device: Rechtes Bett hoch registerDevice: true
[14/10/2022, 13:05:50] [SwitchBot] [DEBUG] Device: Rechtes Bett hoch connectionType: OpenAPI, will display in HomeKit
[14/10/2022, 13:05:50] [SwitchBot] [DEBUG] Device: Switchbot Luftqualität registerDevice: true
[14/10/2022, 13:05:50] [SwitchBot] [DEBUG] Device: Switchbot Luftqualität connectionType: OpenAPI, will display in HomeKit
[14/10/2022, 13:05:50] [SwitchBot] [DEBUG] Device: Türöffner registerDevice: true
[14/10/2022, 13:05:50] [SwitchBot] [DEBUG] Device: Türöffner connectionType: OpenAPI, will display in HomeKit
[14/10/2022, 13:05:50] [SwitchBot] [DEBUG] Device: Luftbefeuchter registerDevice: true
[14/10/2022, 13:05:50] [SwitchBot] [DEBUG] Device: Luftbefeuchter connectionType: OpenAPI, will display in HomeKit
[14/10/2022, 13:05:50] [SwitchBot] [DEBUG] Device: Linkes Bett runter registerDevice: true
[14/10/2022, 13:05:50] [SwitchBot] [DEBUG] Device: Linkes Bett runter connectionType: OpenAPI, will display in HomeKit
[14/10/2022, 13:05:50] [SwitchBot] [DEBUG] TV: LG Using Platform Config Logging: debug
[14/10/2022, 13:05:50] [SwitchBot] [DEBUG] TV: LG accessory.context.FirmwareRevision: undefined
[14/10/2022, 13:05:50] [SwitchBot] [DEBUG] TV: LG device.firmware: undefined
[14/10/2022, 13:05:50] [SwitchBot] [DEBUG] TV: LG this.platform.version: 2.1.0
[14/10/2022, 13:05:50] [SwitchBot] [DEBUG] TV: LG accessory.context.FirmwareRevision: undefined
[14/10/2022, 13:05:50] [SwitchBot] [DEBUG] TV: LG device.firmware: undefined
[14/10/2022, 13:05:50] [SwitchBot] [DEBUG] TV: LG this.platform.version: 2.1.0
[14/10/2022, 13:05:50] [SwitchBot] [DEBUG] TV uuid: 02-202201092307-52501973-TV, (a55e1476-3bb4-44a8-bbaf-e6508a33baa5)
[14/10/2022, 13:05:50] [SwitchBot] [DEBUG] "press"
[14/10/2022, 13:05:50] [SwitchBot] Restoring existing accessory from cache: Linkes Bett hoch DeviceID: C42F040FCCD2
[14/10/2022, 13:05:50] [SwitchBot] [DEBUG] "press"
[14/10/2022, 13:05:50] [SwitchBot] Restoring existing accessory from cache: Rechts Bett runter DeviceID: C9A1CF72C9FC
[14/10/2022, 13:05:50] [SwitchBot] [DEBUG] "press"
[14/10/2022, 13:05:50] [SwitchBot] Restoring existing accessory from cache: Rechtes Bett hoch DeviceID: CBA415F0A044
[14/10/2022, 13:05:50] [SwitchBot] Restoring existing accessory from cache: Switchbot Luftqualität DeviceID: D1FFDE76E505
[14/10/2022, 13:05:50] [SwitchBot] [DEBUG] "press"
[14/10/2022, 13:05:50] [SwitchBot] Restoring existing accessory from cache: Türöffner DeviceID: D9CB51AD652F
[14/10/2022, 13:05:50] [SwitchBot] Restoring existing accessory from cache: Luftbefeuchter DeviceID: FCF5C43E85EE
[14/10/2022, 13:05:50] [SwitchBot] [DEBUG] "press"
[14/10/2022, 13:05:50] [SwitchBot] Restoring existing accessory from cache: Linkes Bett runter DeviceID: FEDAC1EDB7BD
[14/10/2022, 13:05:50] [SwitchBot] Bot: Linkes Bett hoch Config: {"mode":"press","deviceType":"switch","connectionType":"OpenAPI","logging":"standard"}
[14/10/2022, 13:05:50] [SwitchBot] Bot: Linkes Bett hoch Displaying as Switch
[14/10/2022, 13:05:50] [SwitchBot] [DEBUG] Bot uuid: C42F040FCCD2-Bot, (8d6ec5bf-85f0-4f60-8182-e58671f185eb)
[14/10/2022, 13:05:51] [SwitchBot] Bot: Rechts Bett runter Config: {"mode":"press","deviceType":"switch","connectionType":"OpenAPI","logging":"standard"}
[14/10/2022, 13:05:51] [SwitchBot] Bot: Rechts Bett runter Displaying as Switch
[14/10/2022, 13:05:51] [SwitchBot] [DEBUG] Bot uuid: C9A1CF72C9FC-Bot, (aa451df3-5d4c-44da-8d7f-51f359cde6e8)
[14/10/2022, 13:05:51] [SwitchBot] Bot: Rechtes Bett hoch Config: {"mode":"press","deviceType":"switch","connectionType":"OpenAPI","logging":"standard"}
[14/10/2022, 13:05:51] [SwitchBot] Bot: Rechtes Bett hoch Displaying as Switch
[14/10/2022, 13:05:51] [SwitchBot] [DEBUG] Bot uuid: CBA415F0A044-Bot, (36667291-e731-4089-9cc5-754cc7dc96a7)
[14/10/2022, 13:05:51] [SwitchBot] [DEBUG] Meter: Switchbot Luftqualität Using Platform Config Logging: debug
[14/10/2022, 13:05:51] [SwitchBot] [DEBUG] Meter: Switchbot Luftqualität Using Platform Config refreshRate: 120
[14/10/2022, 13:05:51] [SwitchBot] Meter: Switchbot Luftqualität Config: {"connectionType":"OpenAPI"}
[14/10/2022, 13:05:51] [SwitchBot] [DEBUG] Meter: Switchbot Luftqualität openAPIRefreshStatus
[14/10/2022, 13:05:51] [SwitchBot] [DEBUG] Meter: Switchbot Luftqualität sign: iDJ/cZeeY52eN1AoONAT3CHiio1igataT2CyRLo7mYE=
[14/10/2022, 13:05:51] [SwitchBot] [DEBUG] Meter: Switchbot Luftqualität accessory.context.FirmwareRevision: undefined
[14/10/2022, 13:05:51] [SwitchBot] [DEBUG] Meter: Switchbot Luftqualität device.firmware: undefined
[14/10/2022, 13:05:51] [SwitchBot] [DEBUG] Meter: Switchbot Luftqualität this.platform.version: 2.1.0
[14/10/2022, 13:05:51] [SwitchBot] [DEBUG] Meter: Switchbot Luftqualität accessory.context.FirmwareRevision: undefined
[14/10/2022, 13:05:51] [SwitchBot] [DEBUG] Meter: Switchbot Luftqualität device.firmware: undefined
[14/10/2022, 13:05:51] [SwitchBot] [DEBUG] Meter: Switchbot Luftqualität this.platform.version: 2.1.0
[14/10/2022, 13:05:51] [SwitchBot] [DEBUG] Meter: Switchbot Luftqualität Add Temperature Sensor Service
[14/10/2022, 13:05:51] [SwitchBot] [DEBUG] Meter: Switchbot Luftqualität Add Humidity Sensor Service
[14/10/2022, 13:05:51] [SwitchBot] [DEBUG] Meter: Switchbot Luftqualität Removing Battery Service
[14/10/2022, 13:05:51] [SwitchBot] [DEBUG] Meter: Switchbot Luftqualität updateCharacteristic CurrentRelativeHumidity: 0
[14/10/2022, 13:05:51] [SwitchBot] [DEBUG] Meter: Switchbot Luftqualität updateCharacteristic CurrentTemperature: 0
[14/10/2022, 13:05:51] [SwitchBot] [DEBUG] Meter uuid: D1FFDE76E505-Meter, (e02d7616-280f-4e07-af83-7dbff72d4ebc)
[14/10/2022, 13:05:51] [SwitchBot] Bot: Türöffner Config: {"mode":"press","deviceType":"lock","connectionType":"OpenAPI","logging":"standard"}
[14/10/2022, 13:05:51] [SwitchBot] Bot: Türöffner Displaying as Lock
[14/10/2022, 13:05:51] [SwitchBot] [DEBUG] Bot uuid: D9CB51AD652F-Bot, (6f5d82bf-7133-4c30-bd81-f978d3d84809)
[14/10/2022, 13:05:51] [SwitchBot] [DEBUG] Humidifier: Luftbefeuchter Using Platform Config Logging: debug
[14/10/2022, 13:05:51] [SwitchBot] [DEBUG] Humidifier: Luftbefeuchter Using Platform Config refreshRate: 120
[14/10/2022, 13:05:51] [SwitchBot] Humidifier: Luftbefeuchter Config: {"connectionType":"OpenAPI"}
[14/10/2022, 13:05:51] [SwitchBot] [DEBUG] Humidifier: Luftbefeuchter openAPIRefreshStatus
[14/10/2022, 13:05:51] [SwitchBot] [DEBUG] Humidifier: Luftbefeuchter sign: Nz+wOYVR9DJsxZDljFH3E6i/4RP3A/zeGwt/ZrF5cOA=
[14/10/2022, 13:05:51] [SwitchBot] [DEBUG] Humidifier: Luftbefeuchter accessory.context.FirmwareRevision: undefined
[14/10/2022, 13:05:51] [SwitchBot] [DEBUG] Humidifier: Luftbefeuchter device.firmware: undefined
[14/10/2022, 13:05:51] [SwitchBot] [DEBUG] Humidifier: Luftbefeuchter this.platform.version: 2.1.0
[14/10/2022, 13:05:51] [SwitchBot] [DEBUG] Humidifier: Luftbefeuchter accessory.context.FirmwareRevision: undefined
[14/10/2022, 13:05:51] [SwitchBot] [DEBUG] Humidifier: Luftbefeuchter device.firmware: undefined
[14/10/2022, 13:05:51] [SwitchBot] [DEBUG] Humidifier: Luftbefeuchter this.platform.version: 2.1.0
[14/10/2022, 13:05:51] [SwitchBot] [DEBUG] Humidifier: Luftbefeuchter Add Temperature Sensor Service
[14/10/2022, 13:05:51] [SwitchBot] [DEBUG] Humidifier: Luftbefeuchter updateCharacteristic CurrentRelativeHumidity: 0
[14/10/2022, 13:05:51] [SwitchBot] [DEBUG] Humidifier: Luftbefeuchter updateCharacteristic WaterLevel: 0
[14/10/2022, 13:05:51] [SwitchBot] [DEBUG] Humidifier: Luftbefeuchter updateCharacteristic CurrentHumidifierDehumidifierState: 0
[14/10/2022, 13:05:51] [SwitchBot] [DEBUG] Humidifier: Luftbefeuchter updateCharacteristic TargetHumidifierDehumidifierState: 1
[14/10/2022, 13:05:51] [SwitchBot] [DEBUG] Humidifier: Luftbefeuchter updateCharacteristic Active: 1
[14/10/2022, 13:05:51] [SwitchBot] [DEBUG] Humidifier: Luftbefeuchter updateCharacteristic RelativeHumidityHumidifierThreshold: 0
[14/10/2022, 13:05:51] [SwitchBot] [DEBUG] Humidifier: Luftbefeuchter updateCharacteristic CurrentTemperature: 0
[14/10/2022, 13:05:51] [SwitchBot] [DEBUG] Humidifier uuid: FCF5C43E85EE-Humidifier, (5e21b16e-df5b-4939-9e23-a75d6d3a226e)
[14/10/2022, 13:05:51] [SwitchBot] Bot: Linkes Bett runter Config: {"mode":"press","deviceType":"switch","connectionType":"OpenAPI","logging":"standard"}
[14/10/2022, 13:05:51] [SwitchBot] Bot: Linkes Bett runter Displaying as Switch
[14/10/2022, 13:05:51] [SwitchBot] [DEBUG] Bot uuid: FEDAC1EDB7BD-Bot, (5a09c054-4cf0-4ce9-b471-d76ff51d0685)
[14/10/2022, 13:05:51] LG 5B3C is running on port 33841.
[14/10/2022, 13:05:51] Please add [LG 5B3C] manually in Home app. Setup Code: 643-30-412
[14/10/2022, 13:05:51] [SwitchBot] [DEBUG] Humidifier: Luftbefeuchter openAPIRefreshStatus statusCode: 200
[14/10/2022, 13:05:51] [SwitchBot] [DEBUG] Humidifier: Luftbefeuchter d: {"statusCode":100,"body":{"deviceId":"FCF5C43E85EE","deviceType":"Humidifier","hubDeviceId":"FCF5C43E85EE","nebulizationEfficiency":0,"humidity":76,"auto":false,"childLock":false,"sound":true,"power":"off","temperature":21,"lackWater":true},"message":"success"}
[14/10/2022, 13:05:51] [SwitchBot] [DEBUG] Humidifier: Luftbefeuchter openAPIRefreshStatus: {"statusCode":100,"body":{"deviceId":"FCF5C43E85EE","deviceType":"Humidifier","hubDeviceId":"FCF5C43E85EE","nebulizationEfficiency":0,"humidity":76,"auto":false,"childLock":false,"sound":true,"power":"off","temperature":21,"lackWater":true},"message":"success"}
[14/10/2022, 13:05:51] [SwitchBot] [DEBUG] Humidifier: Luftbefeuchter openAPIparseStatus
[14/10/2022, 13:05:51] [SwitchBot] [DEBUG] Humidifier: Luftbefeuchter CurrentRelativeHumidity: 76
[14/10/2022, 13:05:51] [SwitchBot] [DEBUG] Humidifier: Luftbefeuchter CurrentTemperature: 21
[14/10/2022, 13:05:51] [SwitchBot] [DEBUG] Humidifier: Luftbefeuchter TargetHumidifierDehumidifierState: 1
[14/10/2022, 13:05:51] [SwitchBot] [DEBUG] Humidifier: Luftbefeuchter RelativeHumidityHumidifierThreshold: 0
[14/10/2022, 13:05:51] [SwitchBot] [DEBUG] Humidifier: Luftbefeuchter CurrentHumidifierDehumidifierState: 1
[14/10/2022, 13:05:51] [SwitchBot] [DEBUG] Humidifier: Luftbefeuchter Active: 0
[14/10/2022, 13:05:51] [SwitchBot] [DEBUG] Humidifier: Luftbefeuchter WaterLevel: 0
[14/10/2022, 13:05:51] [SwitchBot] [DEBUG] Humidifier: Luftbefeuchter updateCharacteristic CurrentRelativeHumidity: 76
[14/10/2022, 13:05:51] [SwitchBot] [DEBUG] Humidifier: Luftbefeuchter updateCharacteristic WaterLevel: 0
[14/10/2022, 13:05:51] [SwitchBot] [DEBUG] Humidifier: Luftbefeuchter updateCharacteristic CurrentHumidifierDehumidifierState: 1
[14/10/2022, 13:05:51] [SwitchBot] [DEBUG] Humidifier: Luftbefeuchter updateCharacteristic TargetHumidifierDehumidifierState: 1
[14/10/2022, 13:05:51] [SwitchBot] [DEBUG] Humidifier: Luftbefeuchter updateCharacteristic Active: 0
[14/10/2022, 13:05:51] [SwitchBot] [DEBUG] Humidifier: Luftbefeuchter updateCharacteristic RelativeHumidityHumidifierThreshold: 0
[14/10/2022, 13:05:51] [SwitchBot] [DEBUG] Humidifier: Luftbefeuchter updateCharacteristic CurrentTemperature: 21
[14/10/2022, 13:05:51] [SwitchBot] [DEBUG] Meter: Switchbot Luftqualität openAPIRefreshStatus statusCode: 200
[14/10/2022, 13:05:51] [SwitchBot] [DEBUG] Meter: Switchbot Luftqualität d: {"statusCode":100,"body":{"deviceId":"D1FFDE76E505","deviceType":"Meter","hubDeviceId":"FD6A96EC2808","humidity":60,"temperature":21},"message":"success"}
[14/10/2022, 13:05:51] [SwitchBot] [DEBUG] Meter: Switchbot Luftqualität openAPIRefreshStatus: {"statusCode":100,"body":{"deviceId":"D1FFDE76E505","deviceType":"Meter","hubDeviceId":"FD6A96EC2808","humidity":60,"temperature":21},"message":"success"}
[14/10/2022, 13:05:51] [SwitchBot] [DEBUG] Meter: Switchbot Luftqualität openAPIparseStatus
[14/10/2022, 13:05:51] [SwitchBot] [DEBUG] Meter: Switchbot Luftqualität Humidity: 60%
[14/10/2022, 13:05:51] [SwitchBot] [DEBUG] Meter: Switchbot Luftqualität Temperature: 21°c
[14/10/2022, 13:05:51] [SwitchBot] [DEBUG] Meter: Switchbot Luftqualität updateCharacteristic CurrentRelativeHumidity: 60
[14/10/2022, 13:05:51] [SwitchBot] [DEBUG] Meter: Switchbot Luftqualität updateCharacteristic CurrentTemperature: 21

@jonzhan
Copy link
Author

jonzhan commented Oct 14, 2022

@donavanbecker FYI, interestingly, I never see log messages from any of the paths in pushChanges , even with logging elevated to Debug level.

@jonzhan
Copy link
Author

jonzhan commented Oct 14, 2022

@donavanbecker Ohhhh I think I've got it, actually it's similar to the issue for #310 - I'll cook up a PR now

jonzhan added a commit to jonzhan/homebridge-switchbot that referenced this issue Oct 14, 2022
pushOnChanges and pushOffChanges above assume they are measuring the state of the accessory BEFORE they are updated, so we are only updating the accessory state after calling the above. This fixes a bug which caused API calls to never run.
jonzhan added a commit to jonzhan/homebridge-switchbot that referenced this issue Oct 14, 2022
@jonzhan
Copy link
Author

jonzhan commented Oct 14, 2022

@donavanbecker Should be fixed here. 😀

donavanbecker pushed a commit that referenced this issue Oct 14, 2022
@donavanbecker
Copy link
Collaborator

@jonzhan Thanks! I think I messed this up on all it devices, so will have fix it on others.

I have merged this into the beta branch, so a new beta should be published shortly.

@jonzhan
Copy link
Author

jonzhan commented Oct 14, 2022

I'll try the beta and let you know how it goes! Thanks for the quick merge.

I haven't looked at all the other devices, but it may be okay in other places because:

  • Some pushXXX functions don't check for the state of the accessory, so there is no problem
  • some invocations of the pushXXX functions send "this.Active" instead of "value" as the argument, and aren't subject to this bug.

@donavanbecker
Copy link
Collaborator

@jonzhan I believe all work the same as your change because they are IR devices and I don't want to send the command twice.

@donavanbecker
Copy link
Collaborator

donavanbecker commented Oct 14, 2022

@jonzhan Also you can remove your commandOn and CommandOff under other Array, in your config.

donavanbecker added a commit that referenced this issue Oct 14, 2022
Fixed issue were IR Commands were not sent from IR Devices, Thanks [@jonzhan](https://github.com/jonzhan). [#520](#520)
@donavanbecker
Copy link
Collaborator

just pushed a change to fix this for all other IR Devices.

@donavanbecker
Copy link
Collaborator

I will release v2.1.1 one you give m the thumbs up.

donavanbecker added a commit that referenced this issue Oct 14, 2022
## [Version 2.1.1](https://github.com/OpenWonderLabs/homebridge-switchbot/releases/tag/v2.1.1) (2022-10-14)

## What's Changed

- Fixed issue were `CustomOff` would send incorrect commands. Also Resolves [#409](#409).
- Fixed issue were IR Commands were not sent from IR Devices, Thanks [@jonzhan](https://github.com/jonzhan). [#520](#520)
- Fixed issue with Curtain not refreshing moving status. [#517](#517)
- Housekeeping and updated dependencies.

**Full Changelog**: v2.1.0...v2.1.1
@donavanbecker donavanbecker mentioned this issue Oct 14, 2022
donavanbecker added a commit that referenced this issue Oct 14, 2022
## [Version 2.1.1](https://github.com/OpenWonderLabs/homebridge-switchbot/releases/tag/v2.1.1) (2022-10-14)

## What's Changed

- Fixed issue were `CustomOff` would send incorrect commands. Also Resolves [#409](#409).
- Fixed issue were IR Commands were not sent from IR Devices, Thanks [@jonzhan](https://github.com/jonzhan). [#520](#520)
- Fixed issue with Curtain not refreshing moving status. [#517](#517)
- Housekeeping and updated dependencies.

**Full Changelog**: v2.1.0...v2.1.1
@jonzhan
Copy link
Author

jonzhan commented Oct 14, 2022

@donavanbecker Oh yeah thanks for reminding me about the commandOn and CommandOff - I tried filling in EVERY field while troubleshooting. :)

Sorry for the slow confirmation, I stepped away from this for a bit! I see 2.1.1 is already out - I've updated it and I can confirm that "Other IR" devices send commands now!

@Kohle81 Is it working for your case too?

@Kohle81
Copy link

Kohle81 commented Oct 14, 2022

@jonzhan

I am on v2.1.2-beta.5 and the IR Signal through homekit doesn‘t work.

If I am testing through Switchbot all is fine.

@donavanbecker
Copy link
Collaborator

@Kohle81, can you post logs of commands you send and what it looks like?

@donavanbecker donavanbecker changed the title Bug: "Other" IR Devices do not send signals Bug: IR Devices do not send signals Oct 14, 2022
@Kohle81
Copy link

Kohle81 commented Oct 14, 2022

@donavanbecker

I am on beta.6 now
On command:

14/10/2022, 20:30:32] [SwitchBot] [DEBUG] TV: LG Active: 0
[14/10/2022, 20:30:32] [SwitchBot] TV: LG Connection Type: undefined, commands will not be sent to OpenAPI

Off command:

14/10/2022, 20:32:25] [SwitchBot] [DEBUG] TV: LG Active: 0
[14/10/2022, 20:32:25] [SwitchBot] TV: LG Connection Type: undefined, commands will not be sent to OpenAPI

@Kohle81
Copy link

Kohle81 commented Oct 15, 2022 via email

@jonzhan
Copy link
Author

jonzhan commented Oct 15, 2022

@donavanbecker Just eyeballing this, but I think maybe the issue @Kohle81 is facing is caused by this line

I think

if (value === this.platform.Characteristic.Active.INACTIVE) { // pushOffChanges

should be

if (value === this.platform.Characteristic.Active.ACTIVE) { // pushOffChanges

to swap the state. Does that look right to you?

@Kohle81
Copy link

Kohle81 commented Oct 15, 2022

Hi,

I am on v2.1.3-beta.2 an the IR device in Homekit is „no answer“.

@donavanbecker
Copy link
Collaborator

@Kohle81 Changes haven't been merged as there was an issue with the PR.

@donavanbecker
Copy link
Collaborator

donavanbecker commented Oct 15, 2022

Okay, beta should be out.

There is a new config in the UI for this. AllowPush

@jonzhan
Copy link
Author

jonzhan commented Oct 15, 2022

@donavanbecker Just eyeballing this, but I think maybe the issue @Kohle81 is facing is caused by this line

I think

if (value === this.platform.Characteristic.Active.INACTIVE) { // pushOffChanges

should be

if (value === this.platform.Characteristic.Active.ACTIVE) { // pushOffChanges

to swap the state. Does that look right to you?

@donavanbecker please note that I haven't implemented this in the PR - does the suggested fix look right to you?

(Also getting to bed here so I won't be able to respond right away.🥱)

@Kohle81
Copy link

Kohle81 commented Oct 15, 2022

I am on beta v2.1.4.0 an IR device no answer.
I have changed in ui „allowpush“

here the log:

[15/10/2022, 21:53:41] [SwitchBot] Restarting Process...
[15/10/2022, 21:53:42] [SwitchBot] Launched child bridge with PID 1368
[15/10/2022, 21:53:45] Registering platform '@switchbot/homebridge-switchbot.SwitchBot'
[15/10/2022, 21:53:45] [SwitchBot] Loaded @switchbot/homebridge-switchbot v2.1.4-beta.0 child bridge successfully
[15/10/2022, 21:53:45] Loaded 7 cached accessories from cachedAccessories.0ED4D25411C9.
[15/10/2022, 21:53:45] [SwitchBot] [DEBUG] Using Config Logging: debug
[15/10/2022, 21:53:45] [SwitchBot] [DEBUG] Finished initializing platform:
[15/10/2022, 21:53:45] [SwitchBot] Platform Config: {"logging":"debug"}
[15/10/2022, 21:53:45] [SwitchBot] [DEBUG] Using Default Refresh Rate (2 minutes).
[15/10/2022, 21:53:45] [SwitchBot] [DEBUG] Using Default Push Rate.
[15/10/2022, 21:53:45] [SwitchBot] [DEBUG] Config OK
[15/10/2022, 21:53:45] [SwitchBot] [DEBUG] Loading accessory from cache: Linkes Bett hoch
[15/10/2022, 21:53:45] [SwitchBot] [DEBUG] Loading accessory from cache: Rechts Bett runter
[15/10/2022, 21:53:45] [SwitchBot] [DEBUG] Loading accessory from cache: Rechtes Bett hoch
[15/10/2022, 21:53:45] [SwitchBot] [DEBUG] Loading accessory from cache: Switchbot Luftqualität
[15/10/2022, 21:53:45] [SwitchBot] [DEBUG] Loading accessory from cache: Türöffner
[15/10/2022, 21:53:45] [SwitchBot] [DEBUG] Loading accessory from cache: Luftbefeuchter
[15/10/2022, 21:53:45] [SwitchBot] [DEBUG] Loading accessory from cache: Linkes Bett runter
[15/10/2022, 21:53:45] [SwitchBot] [DEBUG] Executed didFinishLaunching callback
[15/10/2022, 21:53:45] [SwitchBot] [DEBUG] wSaq7IueVv4P8CsSfdAidNdfn50QMFFmD2x93LI2S48=
[15/10/2022, 21:53:45] Homebridge v1.5.0 (HAP v0.10.2) (SwitchBot) is running on port 39464.
[15/10/2022, 21:53:45] [SwitchBot] [DEBUG] statusCode: 200
[15/10/2022, 21:53:45] [SwitchBot] [DEBUG] headers: {"date":"Sat, 15 Oct 2022 19:53:45 GMT","content-type":"application/json","content-length":"1241","connection":"close","x-amzn-requestid":"526e9d86-e28d-41b8-bbbf-ab87ac2fc2e5","x-amz-apigw-id":"aD9njHlEIAMFp6w=","x-amzn-trace-id":"Root=1-634b0fc9-6ee98c355039fd115d3f22c0;Sampled=0"}
[15/10/2022, 21:53:45] [SwitchBot] [DEBUG] d: {"statusCode":100,"body":{"deviceList":[{"deviceId":"C42F040FCCD2","deviceName":"Bett Nicki hoch","deviceType":"Bot","enableCloudService":true,"hubDeviceId":"FD6A96EC2808"},{"deviceId":"C9A1CF72C9FC","deviceName":"Bett Manu runter","deviceType":"Bot","enableCloudService":true,"hubDeviceId":"FD6A96EC2808"},{"deviceId":"CBA415F0A044","deviceName":"Bett Manu hoch","deviceType":"Bot","enableCloudService":true,"hubDeviceId":"FD6A96EC2808"},{"deviceId":"D1FFDE76E505","deviceName":"Switchbot Luftqualität","deviceType":"Meter","enableCloudService":true,"hubDeviceId":"FD6A96EC2808"},{"deviceId":"D9CB51AD652F","deviceName":"Haustüre","deviceType":"Bot","enableCloudService":true,"hubDeviceId":"FD6A96EC2808"},{"deviceId":"FCF5C43E85EE","deviceName":"Luftbefeuchter","deviceType":"Humidifier","enableCloudService":true,"hubDeviceId":"000000000000"},{"deviceId":"FD6A96EC2808","deviceName":"Hub Mini 08","deviceType":"Hub Mini","hubDeviceId":"000000000000"},{"deviceId":"FEDAC1EDB7BD","deviceName":"Bett Nicki runter","deviceType":"Bot","enableCloudService":true,"hubDeviceId":"FD6A96EC2808"}],"infraredRemoteList":[{"deviceId":"02-202201092307-52501973","deviceName":"LG","remoteType":"TV","hubDeviceId":"FD6A96EC2808"}]},"message":"success"}
[15/10/2022, 21:53:45] [SwitchBot] [DEBUG] devicesAPI: {"deviceList":[{"deviceId":"C42F040FCCD2","deviceName":"Bett Nicki hoch","deviceType":"Bot","enableCloudService":true,"hubDeviceId":"FD6A96EC2808"},{"deviceId":"C9A1CF72C9FC","deviceName":"Bett Manu runter","deviceType":"Bot","enableCloudService":true,"hubDeviceId":"FD6A96EC2808"},{"deviceId":"CBA415F0A044","deviceName":"Bett Manu hoch","deviceType":"Bot","enableCloudService":true,"hubDeviceId":"FD6A96EC2808"},{"deviceId":"D1FFDE76E505","deviceName":"Switchbot Luftqualität","deviceType":"Meter","enableCloudService":true,"hubDeviceId":"FD6A96EC2808"},{"deviceId":"D9CB51AD652F","deviceName":"Haustüre","deviceType":"Bot","enableCloudService":true,"hubDeviceId":"FD6A96EC2808"},{"deviceId":"FCF5C43E85EE","deviceName":"Luftbefeuchter","deviceType":"Humidifier","enableCloudService":true,"hubDeviceId":"000000000000"},{"deviceId":"FD6A96EC2808","deviceName":"Hub Mini 08","deviceType":"Hub Mini","hubDeviceId":"000000000000"},{"deviceId":"FEDAC1EDB7BD","deviceName":"Bett Nicki runter","deviceType":"Bot","enableCloudService":true,"hubDeviceId":"FD6A96EC2808"}],"infraredRemoteList":[{"deviceId":"02-202201092307-52501973","deviceName":"LG","remoteType":"TV","hubDeviceId":"FD6A96EC2808"}]}
[15/10/2022, 21:53:45] [SwitchBot] Total SwitchBot Devices Found: 8
[15/10/2022, 21:53:45] [SwitchBot] [DEBUG] SwitchBot Device Config Set: [{"deviceId":"C42F040FCCD2","configDeviceName":"Linkes Bett hoch","configDeviceType":"Bot","connectionType":"OpenAPI","bot":{"mode":"press","deviceType":"switch"},"logging":"standard"},{"deviceId":"C9A1CF72C9FC","configDeviceName":"Rechts Bett runter","configDeviceType":"Bot","connectionType":"OpenAPI","bot":{"mode":"press","deviceType":"switch"},"logging":"standard"},{"deviceId":"CBA415F0A044","configDeviceName":"Rechtes Bett hoch","configDeviceType":"Bot","connectionType":"OpenAPI","bot":{"mode":"press","deviceType":"switch"},"logging":"standard"},{"deviceId":"FEDAC1EDB7BD","configDeviceName":"Linkes Bett runter","configDeviceType":"Bot","connectionType":"OpenAPI","bot":{"mode":"press","deviceType":"switch"},"logging":"standard"},{"deviceId":"D9CB51AD652F","configDeviceName":"Türöffner","configDeviceType":"Bot","connectionType":"OpenAPI","bot":{"mode":"press","deviceType":"lock"},"logging":"standard"}]
[15/10/2022, 21:53:45] [SwitchBot] [DEBUG] SwitchBot Devices: [{"deviceId":"C42F040FCCD2","configDeviceName":"Linkes Bett hoch","configDeviceType":"Bot","connectionType":"OpenAPI","bot":{"mode":"press","deviceType":"switch"},"logging":"standard","deviceName":"Bett Nicki hoch","deviceType":"Bot","enableCloudService":true,"hubDeviceId":"FD6A96EC2808"},{"deviceId":"C9A1CF72C9FC","configDeviceName":"Rechts Bett runter","configDeviceType":"Bot","connectionType":"OpenAPI","bot":{"mode":"press","deviceType":"switch"},"logging":"standard","deviceName":"Bett Manu runter","deviceType":"Bot","enableCloudService":true,"hubDeviceId":"FD6A96EC2808"},{"deviceId":"CBA415F0A044","configDeviceName":"Rechtes Bett hoch","configDeviceType":"Bot","connectionType":"OpenAPI","bot":{"mode":"press","deviceType":"switch"},"logging":"standard","deviceName":"Bett Manu hoch","deviceType":"Bot","enableCloudService":true,"hubDeviceId":"FD6A96EC2808"},{"deviceId":"D1FFDE76E505","deviceName":"Switchbot Luftqualität","deviceType":"Meter","enableCloudService":true,"hubDeviceId":"FD6A96EC2808"},{"deviceId":"D9CB51AD652F","configDeviceName":"Türöffner","configDeviceType":"Bot","connectionType":"OpenAPI","bot":{"mode":"press","deviceType":"lock"},"logging":"standard","deviceName":"Haustüre","deviceType":"Bot","enableCloudService":true,"hubDeviceId":"FD6A96EC2808"},{"deviceId":"FCF5C43E85EE","deviceName":"Luftbefeuchter","deviceType":"Humidifier","enableCloudService":true,"hubDeviceId":"000000000000"},{"deviceId":"FD6A96EC2808","deviceName":"Hub Mini 08","deviceType":"Hub Mini","hubDeviceId":"000000000000"},{"deviceId":"FEDAC1EDB7BD","configDeviceName":"Linkes Bett runter","configDeviceType":"Bot","connectionType":"OpenAPI","bot":{"mode":"press","deviceType":"switch"},"logging":"standard","deviceName":"Bett Nicki runter","deviceType":"Bot","enableCloudService":true,"hubDeviceId":"FD6A96EC2808"}]
[15/10/2022, 21:53:45] [SwitchBot] [DEBUG] Discovered Bot: C42F040FCCD2
[15/10/2022, 21:53:45] [SwitchBot] [DEBUG] Discovered Bot: C9A1CF72C9FC
[15/10/2022, 21:53:45] [SwitchBot] [DEBUG] Discovered Bot: CBA415F0A044
[15/10/2022, 21:53:45] [SwitchBot] [DEBUG] Discovered Meter: D1FFDE76E505
[15/10/2022, 21:53:45] [SwitchBot] [DEBUG] Discovered Bot: D9CB51AD652F
[15/10/2022, 21:53:45] [SwitchBot] [DEBUG] Discovered Humidifier: FCF5C43E85EE
[15/10/2022, 21:53:45] [SwitchBot] [DEBUG] Discovered Hub Mini: FD6A96EC2808
[15/10/2022, 21:53:45] [SwitchBot] [DEBUG] Discovered Bot: FEDAC1EDB7BD
[15/10/2022, 21:53:45] [SwitchBot] Total IR Devices Found: 1
[15/10/2022, 21:53:45] [SwitchBot] Total IR Devices Found: 1
[15/10/2022, 21:53:45] [SwitchBot] [DEBUG] IR Device Config Set: [{"deviceId":"02-202201092307-52501973","configDeviceName":"TV","configRemoteType":"TV","connectionType":"OpenAPI","customize":false,"allowPush":true,"irtv":{"disable_power":false},"logging":"debug"}]
[15/10/2022, 21:53:45] [SwitchBot] [DEBUG] IR Devices: [{"deviceId":"02-202201092307-52501973","configDeviceName":"TV","configRemoteType":"TV","connectionType":"OpenAPI","customize":false,"allowPush":true,"irtv":{"disable_power":false},"logging":"debug","deviceName":"LG","remoteType":"TV","hubDeviceId":"FD6A96EC2808"}]
[15/10/2022, 21:53:45] [SwitchBot] [DEBUG] Discovered TV: 02-202201092307-52501973
[15/10/2022, 21:53:45] [SwitchBot] Adding new accessory: LG TV DeviceID: 02-202201092307-52501973
[15/10/2022, 21:53:45] [SwitchBot] [DEBUG] Device: Linkes Bett hoch registerDevice: true
[15/10/2022, 21:53:45] [SwitchBot] [DEBUG] Device: Linkes Bett hoch connectionType: OpenAPI, will display in HomeKit
[15/10/2022, 21:53:45] [SwitchBot] [DEBUG] Device: Rechts Bett runter registerDevice: true
[15/10/2022, 21:53:45] [SwitchBot] [DEBUG] Device: Rechts Bett runter connectionType: OpenAPI, will display in HomeKit
[15/10/2022, 21:53:45] [SwitchBot] [DEBUG] Device: Rechtes Bett hoch registerDevice: true
[15/10/2022, 21:53:45] [SwitchBot] [DEBUG] Device: Rechtes Bett hoch connectionType: OpenAPI, will display in HomeKit
[15/10/2022, 21:53:45] [SwitchBot] [DEBUG] Device: Switchbot Luftqualität registerDevice: true
[15/10/2022, 21:53:45] [SwitchBot] [DEBUG] Device: Switchbot Luftqualität connectionType: OpenAPI, will display in HomeKit
[15/10/2022, 21:53:45] [SwitchBot] [DEBUG] Device: Türöffner registerDevice: true
[15/10/2022, 21:53:45] [SwitchBot] [DEBUG] Device: Türöffner connectionType: OpenAPI, will display in HomeKit
[15/10/2022, 21:53:45] [SwitchBot] [DEBUG] Device: Luftbefeuchter registerDevice: true
[15/10/2022, 21:53:45] [SwitchBot] [DEBUG] Device: Luftbefeuchter connectionType: OpenAPI, will display in HomeKit
[15/10/2022, 21:53:45] [SwitchBot] [DEBUG] Device: Linkes Bett runter registerDevice: true
[15/10/2022, 21:53:45] [SwitchBot] [DEBUG] Device: Linkes Bett runter connectionType: OpenAPI, will display in HomeKit
[15/10/2022, 21:53:45] [SwitchBot] [DEBUG] TV: LG Using Device Config Logging: debug
[15/10/2022, 21:53:45] [SwitchBot] TV: LG Config: {"disable_power":false,"logging":"debug","connectionType":"OpenAPI"}
[15/10/2022, 21:53:45] [SwitchBot] [DEBUG] TV: LG accessory.context.FirmwareRevision: undefined
[15/10/2022, 21:53:45] [SwitchBot] [DEBUG] TV: LG device.firmware: undefined
[15/10/2022, 21:53:45] [SwitchBot] [DEBUG] TV: LG this.platform.version: 2.1.1
[15/10/2022, 21:53:45] [SwitchBot] [DEBUG] TV: LG accessory.context.FirmwareRevision: undefined
[15/10/2022, 21:53:45] [SwitchBot] [DEBUG] TV: LG device.firmware: undefined
[15/10/2022, 21:53:45] [SwitchBot] [DEBUG] TV: LG this.platform.version: 2.1.1
[15/10/2022, 21:53:45] [SwitchBot] [DEBUG] TV uuid: 02-202201092307-52501973-TV, (a55e1476-3bb4-44a8-bbaf-e6508a33baa5)
[15/10/2022, 21:53:45] [SwitchBot] [DEBUG] "press"
[15/10/2022, 21:53:45] [SwitchBot] Restoring existing accessory from cache: Linkes Bett hoch DeviceID: C42F040FCCD2
[15/10/2022, 21:53:45] [SwitchBot] [DEBUG] "press"
[15/10/2022, 21:53:45] [SwitchBot] Restoring existing accessory from cache: Rechts Bett runter DeviceID: C9A1CF72C9FC
[15/10/2022, 21:53:45] [SwitchBot] [DEBUG] "press"
[15/10/2022, 21:53:45] [SwitchBot] Restoring existing accessory from cache: Rechtes Bett hoch DeviceID: CBA415F0A044
[15/10/2022, 21:53:45] [SwitchBot] Restoring existing accessory from cache: Switchbot Luftqualität DeviceID: D1FFDE76E505
[15/10/2022, 21:53:45] [SwitchBot] [DEBUG] "press"
[15/10/2022, 21:53:45] [SwitchBot] Restoring existing accessory from cache: Türöffner DeviceID: D9CB51AD652F
[15/10/2022, 21:53:45] [SwitchBot] Restoring existing accessory from cache: Luftbefeuchter DeviceID: FCF5C43E85EE
[15/10/2022, 21:53:45] [SwitchBot] [DEBUG] "press"
[15/10/2022, 21:53:45] [SwitchBot] Restoring existing accessory from cache: Linkes Bett runter DeviceID: FEDAC1EDB7BD
[15/10/2022, 21:53:45] [SwitchBot] Bot: Linkes Bett hoch Config: {"mode":"press","deviceType":"switch","connectionType":"OpenAPI","logging":"standard"}
[15/10/2022, 21:53:46] [SwitchBot] Bot: Linkes Bett hoch Displaying as Switch
[15/10/2022, 21:53:46] [SwitchBot] [DEBUG] Bot uuid: C42F040FCCD2-Bot, (8d6ec5bf-85f0-4f60-8182-e58671f185eb)
[15/10/2022, 21:53:46] [SwitchBot] Bot: Rechts Bett runter Config: {"mode":"press","deviceType":"switch","connectionType":"OpenAPI","logging":"standard"}
[15/10/2022, 21:53:46] [SwitchBot] Bot: Rechts Bett runter Displaying as Switch
[15/10/2022, 21:53:46] [SwitchBot] [DEBUG] Bot uuid: C9A1CF72C9FC-Bot, (aa451df3-5d4c-44da-8d7f-51f359cde6e8)
[15/10/2022, 21:53:46] [SwitchBot] Bot: Rechtes Bett hoch Config: {"mode":"press","deviceType":"switch","connectionType":"OpenAPI","logging":"standard"}
[15/10/2022, 21:53:46] [SwitchBot] Bot: Rechtes Bett hoch Displaying as Switch
[15/10/2022, 21:53:46] [SwitchBot] [DEBUG] Bot uuid: CBA415F0A044-Bot, (36667291-e731-4089-9cc5-754cc7dc96a7)
[15/10/2022, 21:53:46] [SwitchBot] [DEBUG] Meter: Switchbot Luftqualität Using Platform Config Logging: debug
[15/10/2022, 21:53:46] [SwitchBot] [DEBUG] Meter: Switchbot Luftqualität Using Platform Config refreshRate: 120
[15/10/2022, 21:53:46] [SwitchBot] Meter: Switchbot Luftqualität Config: {"connectionType":"OpenAPI"}
[15/10/2022, 21:53:46] [SwitchBot] [DEBUG] Meter: Switchbot Luftqualität openAPIRefreshStatus
[15/10/2022, 21:53:46] [SwitchBot] [DEBUG] Meter: Switchbot Luftqualität sign: MnMlVB1MmONsuGUkRc+elTdbAo+5ptBiMn8rKe2B7wc=
[15/10/2022, 21:53:46] [SwitchBot] [DEBUG] Meter: Switchbot Luftqualität accessory.context.FirmwareRevision: undefined
[15/10/2022, 21:53:46] [SwitchBot] [DEBUG] Meter: Switchbot Luftqualität device.firmware: undefined
[15/10/2022, 21:53:46] [SwitchBot] [DEBUG] Meter: Switchbot Luftqualität this.platform.version: 2.1.1
[15/10/2022, 21:53:46] [SwitchBot] [DEBUG] Meter: Switchbot Luftqualität accessory.context.FirmwareRevision: undefined
[15/10/2022, 21:53:46] [SwitchBot] [DEBUG] Meter: Switchbot Luftqualität device.firmware: undefined
[15/10/2022, 21:53:46] [SwitchBot] [DEBUG] Meter: Switchbot Luftqualität this.platform.version: 2.1.1
[15/10/2022, 21:53:46] [SwitchBot] [DEBUG] Meter: Switchbot Luftqualität Add Temperature Sensor Service
[15/10/2022, 21:53:46] [SwitchBot] [DEBUG] Meter: Switchbot Luftqualität Add Humidity Sensor Service
[15/10/2022, 21:53:46] [SwitchBot] [DEBUG] Meter: Switchbot Luftqualität Removing Battery Service
[15/10/2022, 21:53:46] [SwitchBot] [DEBUG] Meter: Switchbot Luftqualität updateCharacteristic CurrentRelativeHumidity: 0
[15/10/2022, 21:53:46] [SwitchBot] [DEBUG] Meter: Switchbot Luftqualität updateCharacteristic CurrentTemperature: 0
[15/10/2022, 21:53:46] [SwitchBot] [DEBUG] Meter uuid: D1FFDE76E505-Meter, (e02d7616-280f-4e07-af83-7dbff72d4ebc)
[15/10/2022, 21:53:46] [SwitchBot] Bot: Türöffner Config: {"mode":"press","deviceType":"lock","connectionType":"OpenAPI","logging":"standard"}
[15/10/2022, 21:53:46] [SwitchBot] Bot: Türöffner Displaying as Lock
[15/10/2022, 21:53:46] [SwitchBot] [DEBUG] Bot uuid: D9CB51AD652F-Bot, (6f5d82bf-7133-4c30-bd81-f978d3d84809)
[15/10/2022, 21:53:46] [SwitchBot] [DEBUG] Humidifier: Luftbefeuchter Using Platform Config Logging: debug
[15/10/2022, 21:53:46] [SwitchBot] [DEBUG] Humidifier: Luftbefeuchter Using Platform Config refreshRate: 120
[15/10/2022, 21:53:46] [SwitchBot] Humidifier: Luftbefeuchter Config: {"connectionType":"OpenAPI"}
[15/10/2022, 21:53:46] [SwitchBot] [DEBUG] Humidifier: Luftbefeuchter openAPIRefreshStatus
[15/10/2022, 21:53:46] [SwitchBot] [DEBUG] Humidifier: Luftbefeuchter sign: nNKwq8VxCoiqMqvicJY6T7vNAT9y9FaknXa0bYvvbqQ=
[15/10/2022, 21:53:46] [SwitchBot] [DEBUG] Humidifier: Luftbefeuchter accessory.context.FirmwareRevision: undefined
[15/10/2022, 21:53:46] [SwitchBot] [DEBUG] Humidifier: Luftbefeuchter device.firmware: undefined
[15/10/2022, 21:53:46] [SwitchBot] [DEBUG] Humidifier: Luftbefeuchter this.platform.version: 2.1.1
[15/10/2022, 21:53:46] [SwitchBot] [DEBUG] Humidifier: Luftbefeuchter accessory.context.FirmwareRevision: undefined
[15/10/2022, 21:53:46] [SwitchBot] [DEBUG] Humidifier: Luftbefeuchter device.firmware: undefined
[15/10/2022, 21:53:46] [SwitchBot] [DEBUG] Humidifier: Luftbefeuchter this.platform.version: 2.1.1
[15/10/2022, 21:53:46] [SwitchBot] [DEBUG] Humidifier: Luftbefeuchter Add Temperature Sensor Service
[15/10/2022, 21:53:46] [SwitchBot] [DEBUG] Humidifier: Luftbefeuchter updateCharacteristic CurrentRelativeHumidity: 0
[15/10/2022, 21:53:46] [SwitchBot] [DEBUG] Humidifier: Luftbefeuchter updateCharacteristic WaterLevel: 0
[15/10/2022, 21:53:46] [SwitchBot] [DEBUG] Humidifier: Luftbefeuchter updateCharacteristic CurrentHumidifierDehumidifierState: 0
[15/10/2022, 21:53:46] [SwitchBot] [DEBUG] Humidifier: Luftbefeuchter updateCharacteristic TargetHumidifierDehumidifierState: 1
[15/10/2022, 21:53:46] [SwitchBot] [DEBUG] Humidifier: Luftbefeuchter updateCharacteristic Active: 1
[15/10/2022, 21:53:46] [SwitchBot] [DEBUG] Humidifier: Luftbefeuchter updateCharacteristic RelativeHumidityHumidifierThreshold: 0
[15/10/2022, 21:53:46] [SwitchBot] [DEBUG] Humidifier: Luftbefeuchter updateCharacteristic CurrentTemperature: 30
[15/10/2022, 21:53:46] [SwitchBot] [DEBUG] Humidifier uuid: FCF5C43E85EE-Humidifier, (5e21b16e-df5b-4939-9e23-a75d6d3a226e)
[15/10/2022, 21:53:46] [SwitchBot] Bot: Linkes Bett runter Config: {"mode":"press","deviceType":"switch","connectionType":"OpenAPI","logging":"standard"}
[15/10/2022, 21:53:46] [SwitchBot] Bot: Linkes Bett runter Displaying as Switch
[15/10/2022, 21:53:46] [SwitchBot] [DEBUG] Bot uuid: FEDAC1EDB7BD-Bot, (5a09c054-4cf0-4ce9-b471-d76ff51d0685)
[15/10/2022, 21:53:46] [SwitchBot] [DEBUG] Humidifier: Luftbefeuchter openAPIRefreshStatus statusCode: 200
[15/10/2022, 21:53:46] [SwitchBot] [DEBUG] Humidifier: Luftbefeuchter d: {"statusCode":100,"body":{"deviceId":"FCF5C43E85EE","deviceType":"Humidifier","hubDeviceId":"FCF5C43E85EE","nebulizationEfficiency":0,"humidity":76,"auto":false,"childLock":false,"sound":true,"power":"off","temperature":21,"lackWater":true},"message":"success"}
[15/10/2022, 21:53:46] [SwitchBot] [DEBUG] Humidifier: Luftbefeuchter openAPIRefreshStatus: {"statusCode":100,"body":{"deviceId":"FCF5C43E85EE","deviceType":"Humidifier","hubDeviceId":"FCF5C43E85EE","nebulizationEfficiency":0,"humidity":76,"auto":false,"childLock":false,"sound":true,"power":"off","temperature":21,"lackWater":true},"message":"success"}
[15/10/2022, 21:53:46] [SwitchBot] [DEBUG] Humidifier: Luftbefeuchter openAPIparseStatus
[15/10/2022, 21:53:46] [SwitchBot] [DEBUG] Humidifier: Luftbefeuchter CurrentRelativeHumidity: 76
[15/10/2022, 21:53:46] [SwitchBot] [DEBUG] Humidifier: Luftbefeuchter CurrentTemperature: 21
[15/10/2022, 21:53:46] [SwitchBot] [DEBUG] Humidifier: Luftbefeuchter TargetHumidifierDehumidifierState: 1
[15/10/2022, 21:53:46] [SwitchBot] [DEBUG] Humidifier: Luftbefeuchter RelativeHumidityHumidifierThreshold: 0
[15/10/2022, 21:53:46] [SwitchBot] [DEBUG] Humidifier: Luftbefeuchter CurrentHumidifierDehumidifierState: 1
[15/10/2022, 21:53:46] [SwitchBot] [DEBUG] Humidifier: Luftbefeuchter Active: 0
[15/10/2022, 21:53:46] [SwitchBot] [DEBUG] Humidifier: Luftbefeuchter WaterLevel: 0
[15/10/2022, 21:53:46] [SwitchBot] [DEBUG] Humidifier: Luftbefeuchter updateCharacteristic CurrentRelativeHumidity: 76
[15/10/2022, 21:53:46] [SwitchBot] [DEBUG] Humidifier: Luftbefeuchter updateCharacteristic WaterLevel: 0
[15/10/2022, 21:53:46] [SwitchBot] [DEBUG] Humidifier: Luftbefeuchter updateCharacteristic CurrentHumidifierDehumidifierState: 1
[15/10/2022, 21:53:46] [SwitchBot] [DEBUG] Humidifier: Luftbefeuchter updateCharacteristic TargetHumidifierDehumidifierState: 1
[15/10/2022, 21:53:46] [SwitchBot] [DEBUG] Humidifier: Luftbefeuchter updateCharacteristic Active: 0
[15/10/2022, 21:53:46] [SwitchBot] [DEBUG] Humidifier: Luftbefeuchter updateCharacteristic RelativeHumidityHumidifierThreshold: 0
[15/10/2022, 21:53:46] [SwitchBot] [DEBUG] Humidifier: Luftbefeuchter updateCharacteristic CurrentTemperature: 21
[15/10/2022, 21:53:46] [SwitchBot] [DEBUG] Meter: Switchbot Luftqualität openAPIRefreshStatus statusCode: 200
[15/10/2022, 21:53:46] [SwitchBot] [DEBUG] Meter: Switchbot Luftqualität d: {"statusCode":100,"body":{"deviceId":"D1FFDE76E505","deviceType":"Meter","hubDeviceId":"FD6A96EC2808","humidity":65,"temperature":22.4},"message":"success"}
[15/10/2022, 21:53:46] [SwitchBot] [DEBUG] Meter: Switchbot Luftqualität openAPIRefreshStatus: {"statusCode":100,"body":{"deviceId":"D1FFDE76E505","deviceType":"Meter","hubDeviceId":"FD6A96EC2808","humidity":65,"temperature":22.4},"message":"success"}
[15/10/2022, 21:53:46] [SwitchBot] [DEBUG] Meter: Switchbot Luftqualität openAPIparseStatus
[15/10/2022, 21:53:46] [SwitchBot] [DEBUG] Meter: Switchbot Luftqualität Humidity: 65%
[15/10/2022, 21:53:46] [SwitchBot] [DEBUG] Meter: Switchbot Luftqualität Temperature: 22.4°c
[15/10/2022, 21:53:46] [SwitchBot] [DEBUG] Meter: Switchbot Luftqualität updateCharacteristic CurrentRelativeHumidity: 65
[15/10/2022, 21:53:46] [SwitchBot] [DEBUG] Meter: Switchbot Luftqualität updateCharacteristic CurrentTemperature: 22.4

@donavanbecker
Copy link
Collaborator

I will have to look over this. Sorry don't have time today.

@jonzhan
Copy link
Author

jonzhan commented Oct 16, 2022

@donavanbecker Just eyeballing this, but I think maybe the issue @Kohle81 is facing is caused by this line
I think
if (value === this.platform.Characteristic.Active.INACTIVE) { // pushOffChanges
should be
if (value === this.platform.Characteristic.Active.ACTIVE) { // pushOffChanges
to swap the state. Does that look right to you?

@donavanbecker please note that I haven't implemented this in the PR - does the suggested fix look right to you?

(Also getting to bed here so I won't be able to respond right away.🥱)

I looked again and this suggestion is obviously wrong. Sorry about that!

@donavanbecker
Copy link
Collaborator

@jonzhan Your good. Sorry have been busy this weekend. I will look over the logs and try to fix this in the next release.

@donavanbecker
Copy link
Collaborator

@Kohle81

Can you try the latest beta:

npm version

Click here to find out how to install Beta

@Kohle81
Copy link

Kohle81 commented Oct 18, 2022

On beta3 „no answer“ in Homekit for IR device TV.

Log:

"infraredRemoteList":[{"deviceId":"02-202201092307-52501973","deviceName":"LG","remoteType":"TV","hubDeviceId":"FD6A96EC2808"}]},"message":"success"}
[18/10/2022, 14:41:27] [SwitchBot] Total IR Devices Found: 1
[18/10/2022, 14:41:27] [SwitchBot] [DEBUG] IR Device Config Set: [{"deviceId":"02-202201092307-52501973","configDeviceName":"TV","configRemoteType":"TV","connectionType":"OpenAPI","customize":false,"allowPushOn":true,"allowPushOff":true,"irtv":{"disable_power":false},"logging":"debug"}]
[18/10/2022, 14:41:27] [SwitchBot] [DEBUG] IR Devices: [{"deviceId":"02-202201092307-52501973","configDeviceName":"TV","configRemoteType":"TV","connectionType":"OpenAPI","customize":false,"allowPushOn":true,"allowPushOff":true,"irtv":{"disable_power":false},"logging":"debug","deviceName":"LG","remoteType":"TV","hubDeviceId":"FD6A96EC2808"}]
[18/10/2022, 14:41:27] [SwitchBot] [DEBUG] Discovered TV: 02-202201092307-52501973
[18/10/2022, 14:41:27] [SwitchBot] Adding new accessory: LG TV DeviceID: 02-202201092307-52501973
[18/10/2022, 14:41:27] [SwitchBot] [DEBUG] TV: LG Using Device Config Logging: debug
[18/10/2022, 14:41:27] [SwitchBot] TV: LG Config: {"disable_power":false,"logging":"debug","connectionType":"OpenAPI","customize":false,"allowPushOn":true,"allowPushOff":true}
[18/10/2022, 14:41:27] [SwitchBot] [DEBUG] TV: LG accessory.context.FirmwareRevision: undefined
[18/10/2022, 14:41:27] [SwitchBot] [DEBUG] TV: LG device.firmware: undefined
[18/10/2022, 14:41:27] [SwitchBot] [DEBUG] TV: LG this.platform.version: 2.1.1
[18/10/2022, 14:41:27] [SwitchBot] [DEBUG] TV: LG accessory.context.FirmwareRevision: undefined
[18/10/2022, 14:41:27] [SwitchBot] [DEBUG] TV: LG device.firmware: undefined
[18/10/2022, 14:41:27] [SwitchBot] [DEBUG] TV: LG this.platform.version: 2.1.1
[18/10/2022, 14:41:27] [SwitchBot] [DEBUG] TV uuid: 02-202201092307-52501973-TV, (a55e1476-3bb4-44a8-bbaf-e6508a33baa5)

@donavanbecker
Copy link
Collaborator

@Kohle81 Config?

Also I am not even seeing you send the command? There are logs that would show it, so there hasn't to be something you don't have set.

Post config and we can go from there.

@Kohle81
Copy link

Kohle81 commented Oct 18, 2022

Hi,
here the config:

        {
            "name": "SwitchBot",
            "credentials": {
                "token": "",
                "secret": "",
                "notice": "Keep your token a secret!"
            },
            "options": {
                "devices": [
                    {
                        "deviceId": "C42F040FCCD2",
                        "configDeviceName": "Linkes Bett hoch",
                        "configDeviceType": "Bot",
                        "connectionType": "OpenAPI",
                        "bot": {
                            "mode": "press",
                            "deviceType": "switch"
                        },
                        "logging": "standard"
                    },
                    {
                        "deviceId": "C9A1CF72C9FC",
                        "configDeviceName": "Rechts Bett runter",
                        "configDeviceType": "Bot",
                        "connectionType": "OpenAPI",
                        "bot": {
                            "mode": "press",
                            "deviceType": "switch"
                        },
                        "logging": "standard"
                    },
                    {
                        "deviceId": "CBA415F0A044",
                        "configDeviceName": "Rechtes Bett hoch",
                        "configDeviceType": "Bot",
                        "connectionType": "OpenAPI",
                        "bot": {
                            "mode": "press",
                            "deviceType": "switch"
                        },
                        "logging": "standard"
                    },
                    {
                        "deviceId": "FEDAC1EDB7BD",
                        "configDeviceName": "Linkes Bett runter",
                        "configDeviceType": "Bot",
                        "connectionType": "OpenAPI",
                        "bot": {
                            "mode": "press",
                            "deviceType": "switch"
                        },
                        "logging": "standard"
                    },
                    {
                        "deviceId": "D9CB51AD652F",
                        "configDeviceName": "Türöffner",
                        "configDeviceType": "Bot",
                        "connectionType": "OpenAPI",
                        "bot": {
                            "mode": "press",
                            "deviceType": "lock"
                        },
                        "logging": "standard"
                    }
                ],
                "irdevices": [
                    {
                        "deviceId": "02-202201092307-52501973",
                        "configDeviceName": "TV",
                        "configRemoteType": "TV",
                        "connectionType": "OpenAPI",
                        "customize": false,
                        "allowPushOn": true,
                        "allowPushOff": true,
                        "irtv": {
                            "disable_power": false
                        },
                        "logging": "debug"
                    }
                ],
                "logging": "debug"
            },
            "_bridge": {
                "username": "0E:D4:D2:54:11:C9",
                "port": 39464
            },
            "platform": "SwitchBot"

@donavanbecker
Copy link
Collaborator

donavanbecker commented Oct 18, 2022

@Kohle81, I should see this Code fire off:

this.debugLog(`${this.device.remoteType}: ${this.accessory.displayName} Active: ${value}`);

and I am not.

If you could try the latest beta. Please get more debug logs for TV please, maybe turn logging off for other devices while collecting for this one.

@Kohle81
Copy link

Kohle81 commented Oct 18, 2022

Here the logs with newest beta:

"infraredRemoteList":[{"deviceId":"02-202201092307-52501973","deviceName":"LG","remoteType":"TV","hubDeviceId":"FD6A96EC2808"}]},"message":"success"}

"infraredRemoteList":[{"deviceId":"02-202201092307-52501973","deviceName":"LG","remoteType":"TV","hubDeviceId":"FD6A96EC2808"}]}

[18/10/2022, 17:54:06] [SwitchBot] Total IR Devices Found: 1
[18/10/2022, 17:54:06] [SwitchBot] [DEBUG] IR Device Config Set: [{"deviceId":"02-202201092307-52501973","configDeviceName":"TV","configRemoteType":"TV","connectionType":"OpenAPI","customize":false,"allowPushOn":true,"allowPushOff":true,"irtv":{"disable_power":false},"logging":"debug"}]
[18/10/2022, 17:54:06] [SwitchBot] [DEBUG] IR Devices: [{"deviceId":"02-202201092307-52501973","configDeviceName":"TV","configRemoteType":"TV","connectionType":"OpenAPI","customize":false,"allowPushOn":true,"allowPushOff":true,"irtv":{"disable_power":false},"logging":"debug","deviceName":"LG","remoteType":"TV","hubDeviceId":"FD6A96EC2808"}]
[18/10/2022, 17:54:06] [SwitchBot] [DEBUG] Discovered TV: 02-202201092307-52501973
[18/10/2022, 17:54:06] [SwitchBot] Adding new accessory: LG TV DeviceID: 02-202201092307-52501973
[18/10/2022, 17:54:06] [SwitchBot] [DEBUG] Device: Linkes Bett hoch registerDevice: true
[18/10/2022, 17:54:06] [SwitchBot] [DEBUG] Device: Linkes Bett hoch connectionType: OpenAPI, will display in HomeKit
[18/10/2022, 17:54:06] [SwitchBot] [DEBUG] Device: Rechts Bett runter registerDevice: true
[18/10/2022, 17:54:06] [SwitchBot] [DEBUG] Device: Rechts Bett runter connectionType: OpenAPI, will display in HomeKit
[18/10/2022, 17:54:06] [SwitchBot] [DEBUG] Device: Rechtes Bett hoch registerDevice: true
[18/10/2022, 17:54:06] [SwitchBot] [DEBUG] Device: Rechtes Bett hoch connectionType: OpenAPI, will display in HomeKit
[18/10/2022, 17:54:06] [SwitchBot] [DEBUG] Device: Switchbot Luftqualität registerDevice: true
[18/10/2022, 17:54:06] [SwitchBot] [DEBUG] Device: Switchbot Luftqualität connectionType: OpenAPI, will display in HomeKit
[18/10/2022, 17:54:06] [SwitchBot] [DEBUG] Device: Türöffner registerDevice: true
[18/10/2022, 17:54:06] [SwitchBot] [DEBUG] Device: Türöffner connectionType: OpenAPI, will display in HomeKit
[18/10/2022, 17:54:06] [SwitchBot] [DEBUG] Device: Luftbefeuchter registerDevice: true
[18/10/2022, 17:54:06] [SwitchBot] [DEBUG] Device: Luftbefeuchter connectionType: OpenAPI, will display in HomeKit
[18/10/2022, 17:54:06] [SwitchBot] [DEBUG] Device: Linkes Bett runter registerDevice: true
[18/10/2022, 17:54:06] [SwitchBot] [DEBUG] Device: Linkes Bett runter connectionType: OpenAPI, will display in HomeKit
[18/10/2022, 17:54:06] [SwitchBot] [DEBUG] TV: LG Using Device Config Logging: debug
[18/10/2022, 17:54:06] [SwitchBot] TV: LG Config: {"disable_power":false,"logging":"debug","connectionType":"OpenAPI","customize":false,"allowPushOn":true,"allowPushOff":true}
[18/10/2022, 17:54:06] [SwitchBot] [DEBUG] TV: LG accessory.context.FirmwareRevision: undefined
[18/10/2022, 17:54:06] [SwitchBot] [DEBUG] TV: LG device.firmware: undefined
[18/10/2022, 17:54:06] [SwitchBot] [DEBUG] TV: LG this.platform.version: 2.1.1
[18/10/2022, 17:54:06] [SwitchBot] [DEBUG] TV: LG accessory.context.FirmwareRevision: undefined
[18/10/2022, 17:54:06] [SwitchBot] [DEBUG] TV: LG device.firmware: undefined
[18/10/2022, 17:54:06] [SwitchBot] [DEBUG] TV: LG this.platform.version: 2.1.1
[18/10/2022, 17:54:06] [SwitchBot] [DEBUG] TV uuid: 02-202201092307-52501973-TV, (a55e1476-3bb4-44a8-bbaf-e6508a33baa5)

@donavanbecker
Copy link
Collaborator

@Kohle81, can you check the external config? and see if that fixes this?

@Kohle81
Copy link

Kohle81 commented Oct 18, 2022

What exactly do you mean by external config and what to check? I don't know exactly what you mean...

@donavanbecker
Copy link
Collaborator

There is a config in the UI, named external. Check that box.

@Kohle81
Copy link

Kohle81 commented Oct 18, 2022

That it is! Now it works!!

Thanks for fixing an help!!!

@donavanbecker
Copy link
Collaborator

donavanbecker commented Oct 18, 2022

@Kohle81, if you remove that config and then try again with the latest beta. It should send it external automatically if external config isn't set.

npm version

@Kohle81
Copy link

Kohle81 commented Oct 18, 2022

With beta 6 the old device IR TV ist on „no answer“ and I got I new device „TV“ through Homekit. New device is working.

D27CDD89-139C-4C37-AAB8-C7B771E749A1

How could I delete the old device?

@donavanbecker
Copy link
Collaborator

@Kohle81 Try beta 7.

@Kohle81
Copy link

Kohle81 commented Oct 18, 2022

I am on beta 7, no change. Two devices, the old one with „no answer“.

Do you need log or config?

@donavanbecker
Copy link
Collaborator

Nope your good, go to Homebridge Settings:
Screenshot 2022-10-18 at 2 18 35 PM
Then Remove Single Cached Accessory:
Screenshot 2022-10-18 at 2 19 33 PM

@Kohle81
Copy link

Kohle81 commented Oct 18, 2022

I have deleted the old device. New device is working.

donavanbecker added a commit that referenced this issue Oct 18, 2022
## [Version 2.2.0](https://github.com/OpenWonderLabs/homebridge-switchbot/releases/tag/v2.2.0) (2022-10-13)

## What's Changed

- Moved Air Conditioner config `PushOn` to be an overal IR Device config of `allowPushOn` and `allowPushOff`.
- Fixed Issue where Brightness characteristic received "NaN". [#518](#518)
- Fixed Issue where IR TVs would not default to External Device. [#520](#518)
- Housekeeping and updated dependencies.

**Full Changelog**: v2.1.2...v2.2.0
donavanbecker added a commit that referenced this issue Oct 18, 2022
## [Version 2.2.0](https://github.com/OpenWonderLabs/homebridge-switchbot/releases/tag/v2.2.0) (2022-10-13)

## What's Changed

- Moved Air Conditioner config `PushOn` to be an overal IR Device config of `allowPushOn` and `allowPushOff`.
- Fixed Issue where Brightness characteristic received "NaN". [#518](#518)
- Fixed Issue where IR TVs would not default to External Device. [#520](#518)
- Housekeeping and updated dependencies.

**Full Changelog**: v2.1.2...v2.2.0
donavanbecker added a commit that referenced this issue Nov 8, 2023
# Changelog

All notable changes to this project will be documented in this file. This project uses [Semantic Versioning](https://semver.org/)

## [Version 2.11.0](https://github.com/OpenWonderLabs/homebridge-switchbot/releases/tag/v2.11.0) (2023-11-07)

## What's Changed

- Added Latch Switch to activate Latch on Lock, Thanks [@quebulm](https://github.com/quebulm) [#859](#859)
- Housekeeping and updated dependencies.

**Full Changelog**: <v2.10.1...v2.11.0>

## [Version 2.10.1](https://github.com/OpenWonderLabs/homebridge-switchbot/releases/tag/v2.10.1) (2023-11-01)

## What's Changed

- Added webhook event listener for Bot, Ceiling Light, Color Bulb, Contact, Curtain, IOSensor, Light Strip, Lock, Motion, Plug, & Robot Vacuum Cleaner
- Added Webhook config to Plugin Config UI.

**Full Changelog**: <v2.10.0...v2.10.1>

## [Version 2.10.0](https://github.com/OpenWonderLabs/homebridge-switchbot/releases/tag/v2.10.0) (2023-10-31)

## What's Changed

- Added webhook event listener for Meter, Meter Plus, & Hub 2, Thanks [@banboobee](https://github.com/banboobee) [#850](#850)
- Housekeeping and updated dependencies.

**Full Changelog**: <v2.9.2...v2.10.0>

## [Version 2.9.2](https://github.com/OpenWonderLabs/homebridge-switchbot/releases/tag/v2.9.2) (2023-10-26)

## What's Changed

- Housekeeping and updated dependencies.

**Full Changelog**: <v2.9.1...v2.9.2>

## [Version 2.9.1](https://github.com/OpenWonderLabs/homebridge-switchbot/releases/tag/v2.9.1) (2023-10-14)

## What's Changed

- Fix issue with `FirmwareRevision` causing Homebridge Crash. Fixes [#839](#839), [#832](#832), [#829](#829), & [#828](#828)
- Housekeeping and updated dependencies.

**Full Changelog**: <v2.9.0...v2.9.1>

## [Version 2.9.0](https://github.com/OpenWonderLabs/homebridge-switchbot/releases/tag/v2.9.0) (2023-09-16)

## What's Changed

- Add other `deviceTypes` for IR Type `Other`.
- Housekeeping and updated dependencies.

**Full Changelog**: <v2.8.2...v2.9.0>

## [Version 2.8.2](https://github.com/OpenWonderLabs/homebridge-switchbot/releases/tag/v2.8.2) (2023-08-27)

## What's Changed

- Fixed issue with `BatteryLevel` & `FirmwareRevision` not displaying correctly for certain deviceTypes.
- Fixed config issue where Eve History was not showing for WoIOSensor.
- Housekeeping and updated dependencies.

**Full Changelog**: <v2.8.1...v2.8.2>

## [Version 2.8.1](https://github.com/OpenWonderLabs/homebridge-switchbot/releases/tag/v2.8.1) (2023-08-22)

## What's Changed

- Added additional logging to catch statusCodes like 190 (Requests reached the daily limit).
- Housekeeping and updated dependencies.

**Full Changelog**: <v2.8.0...v2.8.1>

## [Version 2.8.0](https://github.com/OpenWonderLabs/homebridge-switchbot/releases/tag/v2.8.0) (2023-08-19)

## What's Changed

- Add Hub 2 Light-Level Support. [#776](#776)
- Enable Meter Battery Level for OpenAPI, Thanks [@mrlt8](https://github.com/mrlt8) [#782](#782)
- Enable Meter Plus Battery Level for OpenAPI, Thanks [@mrlt8](https://github.com/mrlt8) [#787](#787)
- Enable Battery Level and Version for OpenAPI for BlindTilt, Bot, Ceiling Lights, Color Bulb, Contact, Curtain, Hub, Humidifier, Indoor/Outdoor Sensor, Light Strip, Lock, Meter, Meter Plus, Motion , Plug, Plug Mini, & Robot Vacuum Cleaner
- Housekeeping and updated dependencies.

**Full Changelog**: <v2.7.1...v2.8.0>

## [Version 2.7.1](https://github.com/OpenWonderLabs/homebridge-switchbot/releases/tag/v2.7.1) (2023-07-29)

## What's Changed

- Fixed Hub 2 temperature/humidity data for AC, Thanks [@mrlt8](https://github.com/mrlt8) [#779](#779)
- Fixed TargetTemperature not being updated in the HomeKit, Thanks [@mrlt8](https://github.com/mrlt8) [#7779](#779)
- Housekeeping and updated dependencies.

**Full Changelog**: <v2.7.0...v2.7.1>

## [Version 2.7.0](https://github.com/OpenWonderLabs/homebridge-switchbot/releases/tag/v2.7.0) (2023-07-25)

## What's Changed

- Will now log if there are no devices discovered by SwitchBot-API.
- Added the ability to use Tempature from a SwitchBot Meter to be used with an IR Air Conditioner, Thanks [@mrlt8](https://github.com/mrlt8) [#761](#761)
- Adds the ability to enable EVE history SwitchBot Curtains, Thanks [@banboobee](https://github.com/banboobee) [#766](#766)
- Housekeeping and updated dependencies.

**Full Changelog**: <v2.6.2...v2.7.0>

## [Version 2.6.2](https://github.com/OpenWonderLabs/homebridge-switchbot/releases/tag/v2.6.2) (2023-04-17)

## What's Changed

- Fix for Commands not being sent, [#721](#721)
- Housekeeping.

**Full Changelog**: <v2.6.1...v2.6.2>

## [Version 2.6.1](https://github.com/OpenWonderLabs/homebridge-switchbot/releases/tag/v2.6.1) (2023-04-15)

## What's Changed

- Add Support for [SwitchBot Meter Plus (JP)](https://www.switchbot.jp/products/switchbot-meter-plus), Thanks [@tikuwas](https://github.com/tikuwas) [#642](#642)

**Full Changelog**: <v2.6.0...v2.6.1>

## [Version 2.6.0](https://github.com/OpenWonderLabs/homebridge-switchbot/releases/tag/v2.6.0) (2023-04-15)

## What's Changed

- Add Support for [SwitchBot Hub 2](https://us.switch-bot.com/pages/switchbot-hub-2) Humidity and Temperature Sensor, Thanks [@Alvie](https://github.com/alvie). [#716](#716)
- Housekeeping and updated dependencies.

**Full Changelog**: <v2.5.3...v2.6.0>

## [Version 2.5.3](https://github.com/OpenWonderLabs/homebridge-switchbot/releases/tag/v2.5.3) (2023-04-08)

## What's Changed

- Removed unneeded async, Thanks [@dnicolson](https://github.com/dnicolson). [#699](#699)
- Removed inMotion condition, Thanks [@dnicolson](https://github.com/dnicolson). [#703](#703)
- Fix async method calls, Thanks [@dnicolson](https://github.com/dnicolson). [#690](#690)
- Improve curtain retry functionality, Thanks [@dnicolson](https://github.com/dnicolson). [#694](#694)
- Add Support for [SwitchBot Indoor/Outdoor Thermo-Hygrometer](https://www.switch-bot.com/products/switchbot-indoor-outdoor-thermo-hygrometer)
- Housekeeping and updated dependencies.
  - This release will end support for Node v14.

**Full Changelog**: <v2.5.2...v2.5.3>

## [Version 2.5.2](https://github.com/OpenWonderLabs/homebridge-switchbot/releases/tag/v2.5.2) (2023-02-10)

## What's Changed

- Fixes mappingMode not being read from the config directly, Thanks [@AndreasVerhoeven](https://github.com/AndreasVerhoeven). [#667](#667)
- Fixes only_up mode in settings configuration, Thanks [@AndreasVerhoeven](https://github.com/AndreasVerhoeven). [#669](#669)
- Removes runStatus check, fixes some logic, Thanks [@AndreasVerhoeven](https://github.com/AndreasVerhoeven). [#672](#672)
- Remove unneeded async, Thanks [@dnicolson](https://github.com/dnicolson). [#675](#675)
- Replace switchbot wait with utility function, Thanks [@dnicolson](https://github.com/dnicolson). [#674](#674)
- Remove incorrect warning message, Thanks [@dnicolson](https://github.com/dnicolson). [#673](#673)
- Housekeeping and updated dependencies.

**Full Changelog**: <v2.5.1...v2.5.2>

## [Version 2.5.1](https://github.com/OpenWonderLabs/homebridge-switchbot/releases/tag/v2.5.1) (2023-01-28)

## What's Changed

- Fix Blind Tilt Config.

**Full Changelog**: <v2.5.0...v2.5.1>

## [Version 2.5.0](https://github.com/OpenWonderLabs/homebridge-switchbot/releases/tag/v2.5.0) (2023-01-28)

## What's Changed

- Add Intial Support for Blind Tilt (OpenAPI Only), Thanks [@AndreasVerhoeven](https://github.com/AndreasVerhoeven). [#649](#649)
- Remove incorrect warning message, Thanks [@dnicolson](https://github.com/dnicolson). [#661](#661)
- Replace switchbot wait with utility function, Thanks [@dnicolson](https://github.com/dnicolson). [#633](#633)
- Enhancements to BLE functionality.
- Housekeeping and updated dependencies.

**Full Changelog**: <v2.4.0...v2.5.0>

## [Version 2.4.0](https://github.com/OpenWonderLabs/homebridge-switchbot/releases/tag/v2.4.0) (2022-12-27)

## What's Changed

- Added a new `Bot` Device Type `Multi-Press`, Thanks [@alvst](https://github.com/alvst). [#628](#628)
- Added `maxRetry` option for `Curtain`, `Celing Light`, `Celing Light Pro`, `Plug`, `Plug Mini (US)`, `Plug Mini (JP)`, `Robot Vacuum Cleaner S1 Plus`, `Robot Vacuum Cleaner S1`, `Color Bulb`, and `Strip Light` Device Types, Thanks [@dnicolson](https://github.com/dnicolson). [#631](#631)
- Fix max retry option for `Bot`, `Curtain`, `Celing Light`, `Celing Light Pro`, `Plug`, `Plug Mini (US)`, `Plug Mini (JP)`, `Robot Vacuum Cleaner S1 Plus`, `Robot Vacuum Cleaner S1`, `Color Bulb`, and `Strip Light` Device Types, Thanks [@dnicolson](https://github.com/dnicolson). [#630](#628)
- Moved `maxRetry` option from `Bot` level to overall `configDeviceType` level.
  - **If you had this set for your `Bot` you will have to update this config.**
- Housekeeping and updated dependencies.

**Full Changelog**: <v2.3.2...v2.4.0>

## [Version 2.3.2](https://github.com/OpenWonderLabs/homebridge-switchbot/releases/tag/v2.3.2) (2022-12-16)

## What's Changed

- Housekeeping and updated dependencies.

**Full Changelog**: <v2.3.1...v2.3.2>

## [Version 2.3.1](https://github.com/OpenWonderLabs/homebridge-switchbot/releases/tag/v2.3.1) (2022-12-11)

## What's Changed

- Fixed TypeError: Cannot read properties of undefined (reading 'setCharacteristic'). [#610](#610)
- Housekeeping and updated dependencies.

**Full Changelog**: <v2.3.0...v2.3.1>

## [Version 2.3.0](https://github.com/OpenWonderLabs/homebridge-switchbot/releases/tag/v2.3.0) (2022-12-08)

## What's Changed

- Added Support for SwitchBot Robot Vacuum Cleaner S1 & SwitchBot Robot Vacuum Cleaner S1 Plus
- Add Read-only BLE Support for Smart Lock.
- Added `disablePushDetail` config to IR Air Conditioners.
- Fixed issue where Meter did not parsing temperature. [#571](#571)
- Housekeeping and updated dependencies.

**Full Changelog**: <v2.2.2...v2.3.0>

## [Version 2.2.2](https://github.com/OpenWonderLabs/homebridge-switchbot/releases/tag/v2.2.2) (2022-10-22)

## What's Changed

- Changed from `allowPushOn` and `allowPushOff` configs to `disablePushOn` and `disablePushOff` config, so default is to push changes.
  - Removed `disable_power` config in favor of `disablePushOn` and `disablePushOff` config settings.
- Fixed Issue where IR Devices commands wouldn't send commands. [#551](#551), [#553](#553), [#545](#545)
- Issue where plugin would continue to crash homebridge. [#547](#547)
- Fix for node-switchbot showing not installed.
- Housekeeping and updated dependencies.

**Full Changelog**: <v2.2.1...v2.2.2>

## [Version 2.2.1](https://github.com/OpenWonderLabs/homebridge-switchbot/releases/tag/v2.2.1) (2022-10-18)

## What's Changed

- Fix for node-switchbot showing not installed.

**Full Changelog**: <v2.2.0...v2.2.1>

## [Version 2.2.0](https://github.com/OpenWonderLabs/homebridge-switchbot/releases/tag/v2.2.0) (2022-10-18)

## What's Changed

- Moved Air Conditioner config `PushOn` to be an overal IR Device config of `allowPushOn` and `allowPushOff`.
- Fixed Issue where Brightness characteristic received "NaN". [#518](#518)
- Fixed Issue where IR TVs would not default to External Device. [#520](#518)
- Housekeeping and updated dependencies.

**Full Changelog**: <v2.1.2...v2.2.0>

## [Version 2.1.2](https://github.com/OpenWonderLabs/homebridge-switchbot/releases/tag/v2.1.2) (2022-10-14)

## What's Changed

- Fix issue with IR Devices not having a default `ConnectionType`. [#527](#527)
- Housekeeping and updated dependencies.

**Full Changelog**: <v2.1.1...v2.1.2>

## [Version 2.1.1](https://github.com/OpenWonderLabs/homebridge-switchbot/releases/tag/v2.1.1) (2022-10-14)

## What's Changed

- Fixed issue were `CustomOff` would send incorrect commands. Also Resolves [#409](#409).
- Fixed issue were IR Commands were not sent from IR Devices, Thanks [@jonzhan](https://github.com/jonzhan). [#520](#520)
- Fixed issue with Curtain not refreshing moving status. [#517](#517)
- Fix issue with IR Devices not having a default `ConnectionType`. [#527](#527)
- Housekeeping and updated dependencies.

**Full Changelog**: <v2.1.0...v2.1.1>

## [Version 2.1.0](https://github.com/OpenWonderLabs/homebridge-switchbot/releases/tag/v2.1.0) (2022-10-13)

## What's Changed

- Added `pushRatePress` config to set how many seconds inbetween doublePresses.
  - Also if `doublePress` isn't set it will not wait to pushChanges.
- Added `customize` config option which will allow for custom On and off commands for IR Devices.
  - Added `customOn` & `customOff` to set custom commands for IR Devices.
- Removed `Other`: `commandOn` & `commandOff` you will have to change your commands to the new `customOn` & `customOff` config under the `customize` config.
- Fixed issue where devices are not exposed to Homekit. [#507](#507), [#508](#508), [#513](#513)
- Fixed issue with Non-group Curtains being removed or not displaying in Homekit. [#510](#510)
- Fixed issue were Plugin was waiting 15 seconds before sending command to SwitchBot API. [#509](#509)
- Housekeeping and updated dependencies.

**Full Changelog**: <v2.0.0...v2.1.0>

## [Version 2.0.0](https://github.com/OpenWonderLabs/homebridge-switchbot/releases/tag/v2.0.0) (2022-10-12)

## What's Changed

- Moved from v1.0 to v1.1 of [OpenAPI](https://github.com/OpenWonderLabs/SwitchBotAPI)
- Added Config that allows device(s) to be published as an external accessory.
- Added `connectionType` config, this replaces the `BLE` config.
  - You can now select Both Connections, Only OpenAPI, Only BLE, or Disable.
    - `Both` will use BLE as the default connection and will use OpenAPI as a backup connection.
    - `OpenAPI` will only allow connections through the OpenAPI.
    - `BLE` will only allow connections through Bluetooth (BLE), .
    - `Disable` will disable all connections. This will also allow you to disable commands and refreshes for a specific device but leave it in HomeKit.
- Added Support for Ceiling Light & Ceiling Light Pro
- Fixes Smart Lock Issues fixed in v1.1 of OpenAPI. [#462](#462)
= Fixes excesive logging from node-switchbot. [#435](#435), [#444](#444), [#446](#446)
- Housekeeping and updated dependencies.

**Full Changelog**: <v1.15.0...v2.0.0>

## [Version 1.15.0](https://github.com/OpenWonderLabs/homebridge-switchbot/releases/tag/v1.15.0) (2022-08-27)

## What's Changed

- Added BLE support for PlugMini (US) & PlugMini (JP)
- Housekeeping and updated dependencies.

**Full Changelog**: <v1.14.2...v1.15.0>

## [Version 1.14.2](https://github.com/OpenWonderLabs/homebridge-switchbot/releases/tag/v1.14.2) (2022-08-20)

## What's Changed

- Housekeeping and updated dependencies.

**Full Changelog**: <v1.14.1...v1.14.2>

## [Version 1.14.1](https://github.com/OpenWonderLabs/homebridge-switchbot/releases/tag/v1.14.1) (2022-06-28)

## What's Changed

- Fixed some logging.
- Housekeeping and updated dependencies.

**Full Changelog**: <v1.14.0...v1.14.1>

## [Version 1.14.0](https://github.com/OpenWonderLabs/homebridge-switchbot/releases/tag/v1.14.0) (2022-06-25)

## What's Changed

- Added support for Smart Lock commands over OpenAPI. Thanks [tom-todd](https://github.com/tom-todd) [#382](#337) & [#387](#337)
- Housekeeping and updated dependencies.

**Full Changelog**: <v1.13.0...v1.14.0>

## [Version 1.13.0](https://github.com/OpenWonderLabs/homebridge-switchbot/releases/tag/v1.13.0) (2022-05-04)

## What's Changed

- Added MQTT support for Meter and Curtain devices. Thanks [banboobee](#337)
- Added Eve history features for meter devices. Thanks [banboobee](https://github.com/banboobee) [#338](#338)
- Added Config `setOpenMode` and `setCloseMode` so that you can set mode to be Performance or Silent.
- Added Config to allow manually setting firmware version.
- Fixed Smart Lock Display state status.
  - Still unable to control Locks because of API limitations.
- Housekeeping and updated dependencies.

**Full Changelog**: <v1.12.8...v1.13.0>

## [Version 1.12.8](https://github.com/OpenWonderLabs/homebridge-switchbot/releases/tag/v1.12.8) (2022-03-19)

## What's Changed

- Housekeeping and updated dependencies.

**Full Changelog**: <v1.12.7...v1.12.8>

## [Version 1.12.7](https://github.com/OpenWonderLabs/homebridge-switchbot/releases/tag/v1.12.7) (2022-03-07)

## What's Changed

- Seperated Color Bulb and Strip Lights
  - Strip Lights no longer support Adaptive Lighting.
    - Adaptive Lighting requires Color Temperature, which Strip Lights do not support.
- Seperated Meter and Meter Plus for BLE purposes.
- Housekeeping and updated dependencies.

**Full Changelog**: <v1.12.6...v1.12.7>

## [Version 1.12.6](https://github.com/OpenWonderLabs/homebridge-switchbot/releases/tag/v1.12.6) (2022-03-04)

## What's Changed

- Fix for Curtain v3.3 and above, from v1.2.0 node-switchbot update.
- Housekeeping and updated dependencies.

**Full Changelog**: <v1.12.5...v1.12.6>

## [Version 1.12.5](https://github.com/OpenWonderLabs/homebridge-switchbot/releases/tag/v1.12.5) (2022-02-15)

## What's Changed

- Housekeeping and updated dependencies.

**Full Changelog**: <v1.12.4...v1.12.5>

## [Version 1.12.4](https://github.com/OpenWonderLabs/homebridge-switchbot/releases/tag/v1.12.4) (2022-02-12)

## What's Changed

- Fix support for Meter Plus
- Housekeeping and updated dependencies.

**Full Changelog**: <v1.12.3...v1.12.4>

## [Version 1.12.3](https://github.com/OpenWonderLabs/homebridge-switchbot/releases/tag/v1.12.3) (2022-02-05)

## What's Changed

- Housekeeping and updated dependencies.

**Full Changelog**: <v1.12.2...v1.12.3>

## [Version 1.12.2](https://github.com/OpenWonderLabs/homebridge-switchbot/releases/tag/v1.12.2) (2022-02-02)

## What's Changed

- Fix: Issue where `PositionState` was not being sent back to Home App. Fixes [#123](#123) Thanks [@dnicolson](https://github.com/dnicolson)!

**Full Changelog**: <v1.12.1...v1.12.2>

## [Version 1.12.1](https://github.com/OpenWonderLabs/homebridge-switchbot/releases/tag/v1.12.1) (2022-02-01)

## What's Changed

- Housekeeping and updated dependencies.

**Full Changelog**: <v1.12.0...v1.12.1>

## [Version 1.12.0](https://github.com/OpenWonderLabs/homebridge-switchbot/releases/tag/v1.12.0) (2022-01-29)

## What's Changed

- Add option `maxRetry` for bots so you can set the number of retries for sending on or off for Bot.

**Full Changelog**: <v1.11.2...v1.12.0>

## [Version 1.11.2](https://github.com/OpenWonderLabs/homebridge-switchbot/releases/tag/v1.11.2) (2022-01-29)

## What's Changed

- Fix: Use `updateRate` instead of `refreshRate` when overriding `scanDuration`.

**Full Changelog**: <v1.11.1...v1.11.2>

## [Version 1.11.1](https://github.com/OpenWonderLabs/homebridge-switchbot/releases/tag/v1.11.1) (2022-01-29)

## What's Changed

- Fix: `This plugin generated a warning from the characteristic 'Brightness': characteristic value expected valid finite number and received "undefined" (undefined)`.
- Fix: `This plugin generated a warning from the characteristic 'Color Temperature': characteristic value expected valid finite number and received "undefined" (undefined)`.
- Fix: `This plugin generated a warning from the characteristic 'Hue': characteristic value expected valid finite number and received "undefined" (undefined)`.
- Fix: `This plugin generated a warning from the characteristic 'Saturation': characteristic value expected valid finite number and received "undefined" (undefined)`.

**Full Changelog**: <v1.11.0...v1.11.1>

## [Version 1.11.0](https://github.com/OpenWonderLabs/homebridge-switchbot/releases/tag/v1.11.0) (2022-01-29)

## What's Changed

- Add Support for SwitchBot Smart Lock
- Add Support for SwitchBot Strip Light
- Add Support for SwitchBot Meter Plus (US)
- Add Support for SwitchBot Meter Plus (JP)
- Add Support for SwitchBot Plug Mini (US)
- Add Support for SwitchBot Plug Mini (US)
- Fixed: Curtain `set_min` and `set_max` options not work correctly with minimum and maximum curtain state. [#123](#123)
- Housekeeping and updated dependencies.

**Full Changelog**: <v1.10.1...v1.11.0>

## [Version 1.10.1](https://github.com/OpenWonderLabs/homebridge-switchbot/releases/tag/v1.10.1) (2022-01-26)

## What's Changed

- Fixed: Option `pushOn` was not push `On` commands.
- Housekeeping and updated dependencies.

**Full Changelog**: <v1.10.0...v1.10.1>

## [Version 1.10.0](https://github.com/OpenWonderLabs/homebridge-switchbot/releases/tag/v1.10.0) (2022-01-21)

## What's Changed

- Add option `pushOn`, this will allow the `On` commands to be sent along side `Status` change commands.
- Housekeeping and updated dependencies.

**Full Changelog**: <v1.9.0...v1.10.0>

## [Version 1.9.0](https://github.com/OpenWonderLabs/homebridge-switchbot/releases/tag/v1.9.0) (2022-01-20)

## What's Changed

- Add option `allowPush`, this will allow commands to be sent even if device state is already in state that is being pushed.
- Housekeeping and updated dependencies.

**Full Changelog**: <v1.8.2...v1.9.0>

## [Version 1.8.2](https://github.com/OpenWonderLabs/homebridge-switchbot/releases/tag/v1.8.2) (2022-01-15)

## What's Changed

- Fixed Bug: Only log config if it is set.

**Full Changelog**: <v1.8.1...v1.8.2>

## [Version 1.8.1](https://github.com/OpenWonderLabs/homebridge-switchbot/releases/tag/v1.8.1) (2022-01-15)

## What's Changed

- Fixed Bug: Cannot set properties of undefined (setting 'logging')

**Full Changelog**: <v1.8.0...v1.8.1>

## [Version 1.8.0](https://github.com/OpenWonderLabs/homebridge-switchbot/releases/tag/v1.8.0) (2022-01-14)

## What's Changed

- Added option to display Bot a Stateful Programmable Switch.
  - This will only Works in 3rd Party Home App, Like [Eve](https://apps.apple.com/us/app/eve-for-homekit/id917695792) or [Home+ 5](https://apps.apple.com/us/app/home-5/id995994352)
- Add option to Hide Motion Sensor's Light Sensor.
- Add option to Set Motion Sensor's Light Sensor `set_minLux` and `set_maxLux`.
- Fixed Bug: Where BLE config would show for devices that don't support BLE.
- Fixed Bug: Contact Sensors's Motion Sensor and Light Sensor showing undefined values.
- Fixed Bug: Motion Sensors's Light Sensor showing undefined values.
- Fixed Bug: Battery Service wouldn't be removed from Curtain, Contact Sensor, or Motion Sensor when switching from BLE to OpenAPI.
- Enhancments: Made some improvemnt on the switch from BLE to OpenAPI when BLE connection fails.
- Enhancments: Made Optional Switchbot Device Settings and Optional IR Device Settings more managable by using Tabs.
- Change: Changed Curtain `refreshRate` to `updateRate`.
  - You will have to update your config for it to pickup the new `updateRate`.
- Housekeeping and updated dependencies.

**Full Changelog**: <v1.7.0...v1.8.0>

## [Version 1.7.0](https://github.com/OpenWonderLabs/homebridge-switchbot/releases/tag/v1.7.0) (2022-01-05)

## What's Changed

- Added option to display Bot a Fan.
- Added option to display Bot a Door. [#179](#179)
- Added option to display Bot a Lock. [#179](#179)
- Added option to display Bot a Faucet.
- Added option to display Bot a Window.
- Added option to display Bot a WindowCovering.
- Added option to display Bot a Garage Door Opener. [#179](#179)

**Full Changelog**: <v1.6.3...v1.7.0>

## [Version 1.6.3](https://github.com/OpenWonderLabs/homebridge-switchbot/releases/tag/v1.6.3) (2022-01-03)

## What's Changed

- Quick Fix for for issue not tested in `v1.6.2`.

**Full Changelog**: <v1.6.2...v1.6.3>

## [Version 1.6.2](https://github.com/OpenWonderLabs/homebridge-switchbot/releases/tag/v1.6.2) (2022-01-03)

## What's Changed

- Fixed Bug: npm ERR! code 1. [#151](#151)
  - Made `node-switchbot` an optionalDependencies
  - So If `node-switchbot` doesn't get installed successfully then BLE will not work.
- Housekeeping and updated dependencies.

**Full Changelog**: <v1.6.1...v1.6.2>

## [Version 1.6.1](https://github.com/OpenWonderLabs/homebridge-switchbot/releases/tag/v1.6.1) (2022-01-02)

## What's Changed

- Fixed an issue where when `Adaptive Lighting Shift` was set to -1, Adaptive Lighting would not be removed.
- Fixed an issue with motion sensor refreshStatus that would cause plugin to cause Homebridge restart.
- Fixed Bug: npm ERR! code 1. [#151](#151)
  - Made `node-switchbot` an optionalDependencies
  - So If `node-switchbot` doesn't get installed successfully then BLE will not work.
- Housekeeping and updated dependencies.

**Full Changelog**: <v1.6.0...v1.6.1>

## [Version 1.6.0](https://github.com/OpenWonderLabs/homebridge-switchbot/releases/tag/v1.6.0) (2021-12-31)

## What's Changed

- Added `scanDuration` config option to set how long BLE scans, Scanning Duration is defaulted to 1 second.
- Now Setting `switch` as the default bot mode for Bots, to change to press, config must be set under `SwitchBot Device Settings` in the Plugin Settings.
- Fixed Bug: Contact Sensor talks about Curtain Light + Motion Sensor. [#164](#164)
- Fixed Bug: Reboot causes No Device Type Set Error. [#172](#172)
- Fixed Bug: Bot Status not working Correction with Switch and Press. [#105](#105), [#130](#130), [#132](#132), [#165](#165), [#174](#174)
- Fixed some issues with the New Logging Options release with v1.5.0, now logging when configured.

**Full Changelog**: <v1.5.0...v1.6.0>

## [Version 1.5.0](https://github.com/OpenWonderLabs/homebridge-switchbot/releases/tag/v1.5.0) (2021-12-27)

## What's Changed

### Major Change To `Logging`

- Added the following Logging Options:
  - `Standard`
  - `None`
  - `Debug`
- Removed Device Logging Option, which was pushed into new logging under debug.
- Added Device Logging Override for each Device, by using the Device Config.

### Major Changes to `refreshRate`

- Added an option to override `refreshRate` for each Device, by using the Device Config.

### Other Changes

- Fixed Bug: Air conditioner temperature not able to change. [#43](#43)
- Housekeeping and updated dependencies.

**Full Changelog**: <v1.4.0...v1.5.0>

## [Version 1.4.0](https://github.com/OpenWonderLabs/homebridge-switchbot/releases/tag/v1.4.0) (2021-12-15)

## What's Changed

- Added Status Messages to logs for discoverDevices request.
- Added Cached Status to IR device, Status will be saved to accessory context and restored on restart.
- Added Option `Offline as Off` to be able set the device as off, if API reports offline.
- Removed Meter Unit Config Option as it was confusing and probably never used.
- Housekeeping and updated dependencies.

**Full Changelog**: <v1.3.0...v1.4.0>

## [Version 1.3.0](https://github.com/OpenWonderLabs/homebridge-switchbot/releases/tag/v1.3.0) (2021-12-02)

## What's Changed

- Added Adpative Lighting to Color Bulb
- Added Option `Adaptive Lighting Shift` to be able us this value to increase the mired for the Adaptive Lighting update, making the light appear warmer.
- Fixed Bug: Color Bulb can't change color and is not dimmable. [#97](#97)

**Full Changelog**: <v1.2.5...v1.3.0>

## [Version 1.2.5](https://github.com/OpenWonderLabs/homebridge-switchbot/releases/tag/v1.2.5) (2021-11-25)

## What's Changed

- Fixed Bug: Where `set_minLux` & `set_maxLux` config settings not effecting OpenAPI Lux.

**Full Changelog**: <v1.2.4...v1.2.5>

## [Version 1.2.4](https://github.com/OpenWonderLabs/homebridge-switchbot/releases/tag/v1.2.4) (2021-11-24)

## What's Changed

- Fixed Bug: Cannot read properties of undefined (reading 'updateCharacteristic').

**Full Changelog**: <v1.2.3...v1.2.4>

## [Version 1.2.3](https://github.com/OpenWonderLabs/homebridge-switchbot/releases/tag/v1.2.3) (2021-11-24)

## What's Changed

- When BLE Connection isn't established, allow for OpenAPI to kick in if `openToken` is supplied.

**Full Changelog**: <v1.2.2...v1.2.3>

## [Version 1.2.2](https://github.com/OpenWonderLabs/homebridge-switchbot/releases/tag/v1.2.2) (2021-11-24)

## What's Changed

- Allow the `configDeviceName` to override `deviceName`.
- Added Logging when BLE Connection wasn't established.

**Full Changelog**: <v1.2.1...v1.2.2>

## [Version 1.2.1](https://github.com/OpenWonderLabs/homebridge-switchbot/releases/tag/v1.2.1) (2021-11-24)

## What's Changed

- Fixed Bug: Curtains alternate between open/close state. [#85](#85)
- Fixed Bug: Meter not working with BLE. [#110](#110)
- Housekeeping and updated dependencies.

**Full Changelog**: <v1.2.0...v1.2.1>

## [Version 1.2.0](https://github.com/OpenWonderLabs/homebridge-switchbot/releases/tag/v1.2.0) (2021-11-19)

## What's Changed

- Added option to be able to do Bluetooth Low Energy (BLE) Only Connection.
  - Must supply `Device ID` & `Device Name` to the Device Config
  - Must Check `Enable Bluetooth Low Energy (BLE) Connection`
- Fixed Bug: Air conditioner temperature not able to change. [#43](#43)
- Add option to set Min Lux and Max Lux for Curtain's Light Sensor.
- Add `updateHomeKitCharacteristics` to IR Devices to contain all `updateCharacteristics` in one spot.
- Add `Saturation` and `Hue` to Colorbulb.
- Housekeeping and updated dependencies.

**Full Changelog**: <v1.1.0...v1.2.0>

## [Version 1.1.0](https://github.com/OpenWonderLabs/homebridge-switchbot/releases/tag/v1.1.0) (2021-11-16)

## What's Changed

- Fixed Bug: Curtains alternate between open/close state. [#85](#85)
- Fixed Bug: IR Fan won't be hidden in Home app. [#90](#90)
- Fixed Bug: `hide_temperature` config option causing `Cannot read property 'updateCharacteristic' of undefined` for Humidifiers. [#89](#89)
- Add option to Hide Curtain's Light Sensor. [#91](#91)
- Add option to Hide Contact Sensor's Motion Sensor or Light Sensor.

**Full Changelog**: <v1.0.2...v1.1.0>

## [Version 1.0.2](https://github.com/OpenWonderLabs/homebridge-switchbot/releases/tag/v1.0.2) (2021-11-15)

## What's Changed

- Fixed Bug: `failed to discover devices. cannot read property 'touppercase' of undefined`. [#84](#84)
- Housekeeping and updated dependencies.

**Full Changelog**: <v1.0.1...v1.0.2>

## [Version 1.0.1](https://github.com/OpenWonderLabs/homebridge-switchbot/releases/tag/v1.0.1) (2021-11-14)

## What's Changed

- Fixed `Cannot read properties of undefined (reading 'updateCharacteristic')` on Bots. [#77](#77)
- Fixed Temperature not being retrieved for Switchbot Meter. [#78](#78)

**Full Changelog**: <v1.0.0...v1.0.1>

## [Version 1.0.0](https://github.com/OpenWonderLabs/homebridge-switchbot/releases/tag/v1.0.0) (2021-11-13)

## What's Changed

- Offical release of homebridge-Switchbot, which combines both BLE and OpenAPI into 1 plugin.
- Adds Light Sensors to Curtains
  - with iOS 15.1 you can set automations on light sensors.
- Adds Motion Sensor to Contact Sensors
- Adds Support Color Bulbs

**Full Changelog**: <v0.1.1...v1.0.0>

## [Version 0.1.1](https://github.com/OpenWonderLabs/homebridge-switchbot/releases/tag/v0.1.1) (2021-09-11)

## What's Changed

- Fix Contact Sensor adding as Motion Sensor instead of Contact Sensor

**Full Changelog**: <v0.1.0...v0.1.1>

## [Version 0.1.0](https://github.com/OpenWonderLabs/homebridge-switchbot/releases/tag/v0.1.0) (2021-09-10)

## What's Changed

- Initial release of homebridge-switchbot.
- Adds Support for Motion & Contact Sensors
- Adds Water Level to Humidifier
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

8 participants