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
- Fixes #520 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. Th... — committed to jonzhan/homebridge-switchbot by jonzhan 2 years ago
- Merge pull request #2 from jonzhan/520-other-IR-openAPI-fix Fixes #520 — committed to jonzhan/homebridge-switchbot by jonzhan 2 years ago
- Fixes #520 (#521) — committed to OpenWonderLabs/homebridge-switchbot by jonzhan 2 years ago
- Fixed issue were IR Commands were not sent from IR Devices Fixed issue were IR Commands were not sent from IR Devices, Thanks [@jonzhan](https://github.com/jonzhan). [#520](https://github.com/OpenWon... — committed to OpenWonderLabs/homebridge-switchbot by donavanbecker 2 years ago
- v2.1.1 ## [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. Al... — committed to OpenWonderLabs/homebridge-switchbot by donavanbecker 2 years ago
- v2.1.1 (#522) ## [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 c... — committed to OpenWonderLabs/homebridge-switchbot by donavanbecker 2 years ago
- v2.2.0 ## [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 Devic... — committed to OpenWonderLabs/homebridge-switchbot by donavanbecker 2 years ago
- v2.2.0 (#540) ## [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 over... — committed to OpenWonderLabs/homebridge-switchbot by donavanbecker 2 years ago
- v2.11.0 # 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/OpenWond... — committed to OpenWonderLabs/homebridge-switchbot by donavanbecker 8 months ago
I have deleted the old device. New device is working.