Skip to content

HassanElDessouki/Homebridge-ConnectLifeAC

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 

Repository files navigation

Homebridge-ConnectLifeAC

This Repository contains a draft (but working!) code for integrating a ConnectLife AC that utilzies the AEH-W4G2 WiFi Module

  • This has been tested on a ClassPro AC only so far

You will need to install homebridge-http-advanced-accessory plugin in Homebridge

Place the following in the plugin settings:

{
    "accessory": "HttpAdvancedAccessory",
    "service": "HeaterCooler",
    "name": "AEH-W4G2 AC",
    "forceRefreshDelay": 10,
    "optionCharacteristic": [
        "CoolingThresholdTemperature",
        "TemperatureDisplayUnits",
        "RotationSpeed",
        "SwingMode"
    ],
    "debug": false,
    "urls": {
        "getCurrentTemperature": {
            "url": "localhost:9999/currentRoomTemp"
        },
        "getCurrentHeater-CoolerState": {
            "url": "localhost:9999/currentState"
        },
        "getTargetHeater-CoolerState": {
            "url": "localhost:9999/currentMode"
        },
        "setTargetHeater-CoolerState": {
            "url": "localhost:9999/setMode?mode={value}"
        },
        "getCoolingThresholdTemperature": {
            "url": "localhost:9999/currentSetTemp"
        },
        "setCoolingThresholdTemperature": {
            "url": "localhost:9999/setTemp?temperature={value}"
        },
        "getTemperatureDisplayUnits": {
            "url": "localhost:9999/getTempUnits"
        },
        "setTemperatureDisplayUnits": {
            "url": "localhost:9999/setTempUnits?unit={value}"
        },
        "getRotationSpeed": {
            "url": "localhost:9999/getFanSpeed"
        },
        "setRotationSpeed": {
            "url": "localhost:9999/setFanSpeed?speed={value}"
        },
        "getActive": {
            "url": "localhost:9999/active"
        },
        "setActive": {
            "url": "localhost:9999/setActive?power={value}"
        },
        "getSwingMode": 0
    }
}

Now, download both the - index.js- and - package.json - files in the same folder. run npm install to install the required dependencies.

Then, edit the following in the index.JS file

Finally, you can now run node index.js or nodemon to run the node server in the background.

Restart Homebridge and you will find the AC in your Apple Home devices

About

AEH-W4G2 AC that utilizes the ConnectLife App

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published