30.10.2019, 12:51
From JS code it looks like you don't have to pass user/password via URL but send a login request via WS.
Each request is encoded using JSON:
For On/Off and fan control try this (change deviceactive value as needed):
Either fanlevel or fanpower value is needed, AEROPAC probably uses fanlevel.
Each request is encoded using JSON:
Code:
login = json.encode({
command = 'login',
user = user,
password = password,
long_life = false,
})
For On/Off and fan control try this (change deviceactive value as needed):
Code:
req = json.encode({
command = 'setDeviceParams',
params = {
devicestate = { deviceactive = true },
fanlevel = 3, -- 0..7
fanpower = 50, -- 0..100
}
})