tomeko12 / pyelectroluxconnect

A python module to communicate with Elecrolux Connectivity Platform
Apache License 2.0
25 stars 9 forks source link

Are Air Conditoners Supported? #15

Closed kript closed 1 year ago

kript commented 1 year ago

Does anyone know if the AEG Comfort 6000 models are able to be controlled this way?

I'm in the UK, and have the AEG app working (so presumably emea?) to controll the aircon.

When I try using this code, the only region that recognises my account is emea, however, ses.getAppliances() returns an empty dictionary.

my quickly hacked example code;

import pyelectroluxconnect

def connect(region):

    username = "my@email"
    password = "my_password"

    ses = pyelectroluxconnect.Session(username=username, password=password, tokenFileName = ".electrolux-token", region=region)
    print(region)
    try:
        ses.login()
    except :
        print("no account")
        return
    appllist = ses.getAppliances()
    print(appllist)

regions = ["emea", "apac", "na", "latam", "frigidaire"]

for region in regions:
    connect(region)

returns;

emea
{}
apac
API token error ECP0105: Session key not found
Getting new auth token
API response error AER0802: No Consumer with this email: my@email
No Consumer with this email:my@email(AER0802)
no account
na
API token error ECP0105: Session key not found
Getting new auth token
User is not valid: my@email(ECP0108)
no account
latam
API token error ECP0105: Session key not found
Getting new auth token
authentication_failed (AER0802)
no account
frigidaire
API token error ECP0105: Session key not found
Getting new auth token
User is not valid: my@email (ECP0108)
no account
tomeko12 commented 1 year ago

Hi. This library is not compatibile with Your device. I've updated README with information about compatibility.