homebridge-mi-acpartner icon indicating copy to clipboard operation
homebridge-mi-acpartner copied to clipboard

Mi Acpartner doesn't work with Homebridge any more with 1.3.x

Open Ugmaxie opened this issue 3 years ago • 3 comments

Describe The Bug: After updating to Homebridge v1.3.0, managing AC is broken. Plugin used: MiACPartner @latest

No errors. Apple HomeKit sees AC as expected but any actions doesn't manage AC.

To Reproduce: Update HB from 1.2.5 to 1.3.0.

Expected behavior: AC actions should work and manage AC device via Apple Home.

Homebridge Config:

{
            "name": "Config",
            "port": 8080,
            "auth": "form",
            "theme": "auto",
            "restart": "sudo -n systemctl restart homebridge",
            "tempUnits": "c",
            "lang": "auto",
            "sudo": true,
            "log": {
                "method": "systemd",
                "service": "homebridge"
            },
            "platform": "config",
            "sessionTimeout": 28800
        }
{
    "bridge": {
        "name": "RasBri",
        "username": "MAC",
        "port": 51826,
        "pin": "000-00-000",
        "advertiser": "ciao"
    },
    "description": "Homebridge",
    "platforms": [
        {
            "platform": "MiAqaraPlatform",
            "manage": {
                "port": 11128,
                "password": "1111111111"
            },
            "gateways": {
                "7c49eb7feba4": "apo6zi1dylght6h4"
            },
            "defaultValue": {
                "7c49eb7feba4": {
                    "AcPartner_LightSensor": {
                        "name": "gateway light sensor",
                        "disable": true
                    },
                    "AcPartner_Switch_JoinPermission": {
                        "name": "gateway join permission switch",
                        "disable": true
                    }
                }
            }
        },
        {
            "platform": "XiaoMiAcPartner",
            "devices": {
                "ipAddress": "deviceToken"
            },
            "accessories": [
                {
                    "name": "AC Partner",
                    "type": "climate",
                    "sensorSid": "lumi.158d0002272e48",
                    "breaker": false
                }
            ]
        },
        {
            "name": "Config",
            "port": 8080,
            "auth": "form",
            "theme": "auto",
            "restart": "sudo -n systemctl restart homebridge",
            "tempUnits": "c",
            "lang": "auto",
            "sudo": true,
            "log": {
                "method": "systemd",
                "service": "homebridge"
            },
            "platform": "config",
            "sessionTimeout": 28800
        }
    ],
    "accessories": [
        {
            "name": "Cleaner",
            "ip": "IP address",
            "token": "myToken",
            "waterBox": false,
            "pause": false,
            "dock": false,
            "accessory": "XiaomiRoborockVacuum"
        }
    ]
}

Screenshots:

Environment:

  • Node.js Version: v14.15.0
  • NPM Version: v6.14.8
  • Homebridge Version: 1.3.0
  • Operating System: Raspbian
  • Process Supervisor: don't know

Ugmaxie avatar Feb 23 '21 17:02 Ugmaxie

Unfortunately, v1.3.1 has the same issue as v1.3.0.

For both cases (works/doesn't work) Apple Home app works almost the same, but with v1.3.0 and v1.3.1 sometimes when I set an action like HEAT or COOL it automatically foes to off. Sometimes not... But anyway it doesn't manage AC device.

This is for v1.2.5. start Screenshot 2021-02-23 at 18 47 29

These are for 1.3.1 start Screenshot 2021-02-23 at 18 50 37 Screenshot 2021-02-23 at 18 50 45

Ugmaxie avatar Feb 23 '21 17:02 Ugmaxie

As far as I know, this project has ceased maintenance (ノへ ̄、)

Hcreak avatar Mar 26 '21 18:03 Hcreak

I encounter with the same problem like you, I update to 1.4.0, the ac partner just doesn't work like it was expected. Not much information in the pics you posted, if you have time, can you try to disable other devices for a test, just leave the ac partner on, and try to start homebridge with DEBUG=* homebridge -D, and try to interact with the ac partner in Home App. See what information it provides. If I can find the problem I might fix it.

Charliecheung2 avatar Apr 29 '22 01:04 Charliecheung2