This forum uses cookies
This forum makes use of cookies to store your login information if you are registered, and your last visit if you are not. Cookies are small text documents stored on your computer; the cookies set by this forum can only be used on this website and pose no security risk. Cookies on this forum also track the specific topics you have read and when you last read them. Please confirm that you accept these cookies being set.

Siegenia AEROPAC
#5
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:
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  
  }
})
Either fanlevel or fanpower value is needed, AEROPAC probably uses fanlevel.
Reply


Messages In This Thread
Siegenia AEROPAC - by gjniewenhuijse - 04.10.2019, 12:43
RE: Siegenia AEROPAC - by admin - 04.10.2019, 13:18
RE: Siegenia AEROPAC - by gjniewenhuijse - 29.10.2019, 15:17
RE: Siegenia AEROPAC - by gjniewenhuijse - 30.10.2019, 09:47
RE: Siegenia AEROPAC - by admin - 30.10.2019, 12:51
RE: Siegenia AEROPAC - by admin - 30.10.2019, 14:40
RE: Siegenia AEROPAC - by gjniewenhuijse - 30.10.2019, 14:50

Forum Jump: