homebridge-switchbot: Bug: IR Devices do not send signals

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

About this issue

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

Commits related to this issue

Most upvoted comments

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