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: Issues with turning on AC device with Hub Mini #1057

Open
JrodbTG opened this issue Sep 19, 2024 · 0 comments
Open

Bug: Issues with turning on AC device with Hub Mini #1057

JrodbTG opened this issue Sep 19, 2024 · 0 comments
Assignees
Labels
bug Something isn't working

Comments

@JrodbTG
Copy link

JrodbTG commented Sep 19, 2024

Describe the Bug

For a few weeks now, activating the AC via Siri has stopped working.
When I say "turn on the AC" Siri will make a confirmation that it does something, and the AC will beep since it recieved a command, yet it doesn't turn on.

When toggling the AC button via Apple Home or even control center, it does work. In this scenario the AC beeps twice, like it receives two commands, one after another.

Here is the log for turning on the AC via Siri with voice command "Turn on the Air Conditioner":

[20/09/2024, 01:04:14] [SwitchBot] Air Conditioner: Air Conditioner Sending request to SwitchBot API, body: {"command":"setAll","parameter":"24,2,1,off","commandType":"command"},
[20/09/2024, 01:04:14] [SwitchBot] Air Conditioner: Air Conditioner request to SwitchBot API, body: {"command":"setAll","parameter":"24,2,1,off","commandType":"command"} sent successfully

Here is the log for turn on the AC via toggle (in apple home):

[20/09/2024, 01:05:21] [SwitchBot] Air Conditioner: Air Conditioner Sending request to SwitchBot API, body: {"command":"On","parameter":"default","commandType":"customize"},
[20/09/2024, 01:05:21] [SwitchBot] Air Conditioner: Air Conditioner request to SwitchBot API, body: {"command":"On","parameter":"default","commandType":"customize"} sent successfully

Clearly it is sending the wrong command when triggered via Siri (but not clear why)

Just for reference, this is the command sent when I turn off the air conditioner both via siri or via toggle:

[20/09/2024, 01:06:30] [SwitchBot] Air Conditioner: Air Conditioner Sending request to SwitchBot API, body: {"command":"turnOff","parameter":"default","commandType":"customize"}, [20/09/2024, 01:06:31] [SwitchBot] Curtain3: Bedroom Curtains Checking Status ... [20/09/2024, 01:06:31] [SwitchBot] Air Conditioner: Air Conditioner request to SwitchBot API, body: {"command":"turnOff","parameter":"default","commandType":"customize"} sent successfully

To Reproduce

Turning on the air conditioner via Siri with switchbot hub mini

Expected Behavior

Turns on the AC

Relevant Log Output

[20/09/2024, 01:04:14] [SwitchBot] Air Conditioner: Air Conditioner Sending request to SwitchBot API, body: {"command":"setAll","parameter":"24,2,1,off","commandType":"command"},
[20/09/2024, 01:04:14] [SwitchBot] Air Conditioner: Air Conditioner request to SwitchBot API, body: {"command":"setAll","parameter":"24,2,1,off","commandType":"command"} sent successfully


### Config for homebridge-switchbot

```shell
{
    "name": "SwitchBot",
    "credentials": {
        "token": "",
        "secret": "",
        "notice": "Keep your Token & Secret a secret!"
    },
    "options": {
        "devices": [
            {
                "deviceId": "F03A***FA6",
                "configDeviceName": "Bathroom Heater",
                "configDeviceType": "Bot",
                "connectionType": "OpenAPI",
                "bot": {
                    "mode": "switch",
                    "deviceType": "switch"
                },
                "external": false
            },
            {
                "deviceId": "F8A2***6C9E",
                "configDeviceName": "Bedroom Curtains",
                "configDeviceType": "Curtain3",
                "connectionType": "OpenAPI"
            },
            {
                "deviceId": "E58***B3F",
                "configDeviceName": "Living Room Curtains",
                "configDeviceType": "Curtain",
                "connectionType": "OpenAPI"
            },
            {
                "deviceId": "F0***FD",
                "configDeviceName": "Unused Bot",
                "hide_device": true,
                "configDeviceType": "Bot",
                "connectionType": "Disabled",
                "bot": {
                    "deviceType": "switch"
                }
            }
        ],
        "irdevices": [
            {
                "deviceId": "02-***-33***95",
                "configDeviceName": "Air Conditioner",
                "configRemoteType": "Air Conditioner",
                "connectionType": "OpenAPI",
                "customize": true,
                "customOn": "On",
                "irair": {
                    "hide_automode": false
                }
            },
            {
                "deviceId": "02-2***9279",
                "configDeviceName": "Sony Speaker",
                "configRemoteType": "Speaker",
                "connectionType": "OpenAPI"
            }
        ]
    },
    "platform": "SwitchBot"

Screenshots

No response

Device and Model

Switchbot Hub Mini

Node.js Version

v20.14.0

NPM Version

10.7

Homebridge Version

v1.8.4

Homebridge Switchbot Plugin Version

v3.8.2

Homebridge Config UI X Plugin Version

v4.58.0

Operating System

Raspbian

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

6 participants