iklein99 / homebridge-smartthings

This is a plugin to Homebridge to connect your Smartthings network into Apple Home Kit.
Apache License 2.0
160 stars 55 forks source link

When A/C is changed to auto mode, shows device is off in HB and Apple Home #269

Open FLYEMOJ1 opened 2 months ago

FLYEMOJ1 commented 2 months ago

Describe The Bug: First thing, English is not my main language so my describe may not clear enough. sorry ._. When my A/C change to auto mode, showing my device is off in HB & Apple Home App. Even my A/C is on. But normal Cool mode seems like works fine.

To Reproduce: Change A/C to Auto mode in Apple Home App / HB

Expected behavior: When the air conditioner is set to auto mode, Homebridge and Apple Home App should correctly display the A/C's on status.

Logs:

Oops, Debug mode makes my log too long so sad https://pastebin.com/5kxVRkvZ

Plugin Config:

{
    "bridge": {
        "name": "Homebridge C5FB",
        "username": ">_<",
        "port": 51740,
        "pin": ">_<",
        "advertiser": "avahi",
        "bind": [
            "eth0"
        ]
    },
    "accessories": [],
    "platforms": [
        {
            "name": "Config",
            "port": 8581,
            "platform": "config"
        },
        {
            "devices": [
                {
                    "name": "Mi Air Purifier 3C",
                    "ip": "192.168.50.>_<",
                    "token": ">_<",
                    "deviceId": ">_<",
                    "model": "zhimi.airpurifier.mb4",
                    "pollingInterval": 10,
                    "deepDebugLog": false,
                    "silentLog": false,
                    "deviceEnabled": true,
                    "micloud": {
                        "username": ">_<",
                        "password": ">_<",
                        "country": "tw"
                    },
                    "buzzerControl": true,
                    "ledControl": true,
                    "childLockControl": true,
                    "modeControl": true,
                    "screenControl": true
                }
            ],
            "platform": "miot"
        },
        {
            "name": "Smartthings Plug (IK)",
            "BaseURL": "https://api.smartthings.com/v1/",
            "AccessToken": ">_<",
            "GarageDoorMaxPoll": 40,
            "PollLocksSeconds": 10,
            "PollDoorsSeconds": 10,
            "PollSensorsSeconds": 5,
            "PollSwitchesAndLightsSeconds": 10,
            "PollWindowShadesSeconds": 20,
            "ExposeHumiditySensorForAirConditioners": true,
            "OptionalModeForAirConditioners": "None",
            "IgnoreDevices": [
                "[TV] Samsung 6 Series (43)",
                "Samsung TV 6022",
                "Samsung 8 Series (55)"
            ],
            "platform": "HomeBridgeSmartThings"
        },
        {
            "name": "homebridge-samsung-air-conditioner-smart-things",
            "token": ">_<",
            "temperatureUnit": "C",
            "showHumidity": true,
            "windFreeSupported": true,
            "platform": "HomebridgeSamsungACSmartThings"
        },
        {
            "name": "Samsung WindFree AC",
            "BaseURL": "https://api.smartthings.com/v1/",
            "AccessToken": ">_<",
            "OptionalWindFreeSwitch": true,
            "OptionalDisplaySwitch": false,
            "platform": "Homebridge Samsung WindFree AC"
        }
    ],
    "disabledPlugins": [
        "homebridge-samsung-air-conditioner-smart-things",
        "homebridge-samsung-windfree-ac"
    ]
}

Screenshots: 5976643427464496360_121 5976643427464496361_121

Environment:

FLYEMOJ1 commented 2 months ago

Looks like my A/C's Auto mode is called "aIComfort" in SmartThings API I can change to auto mode but still not showing is it on or off in HB / Apple Home App