Siegenia AEROPAC - Printable Version +- Logic Machine Forum (https://forum.logicmachine.net) +-- Forum: LogicMachine eco-system (https://forum.logicmachine.net/forumdisplay.php?fid=1) +--- Forum: Gateway (https://forum.logicmachine.net/forumdisplay.php?fid=10) +--- Thread: Siegenia AEROPAC (/showthread.php?tid=2265) |
Siegenia AEROPAC - gjniewenhuijse - 04.10.2019 Next device to control: the Siegenia AEROPAC Smart There is one product on the web that supports this device, iobroker: https://github.com/Apollon77/ioBroker.siegenia Is it easy to control them with a LM/HL? I see they use a websocket in: https://github.com/Apollon77/ioBroker.siegenia/blob/master/lib/siegenia.js RE: Siegenia AEROPAC - admin - 04.10.2019 See this thread for websocket library: https://forum.logicmachine.net/showthread.php?tid=1294&pid=7823#pid7823 RE: Siegenia AEROPAC - gjniewenhuijse - 29.10.2019 mmm i only receive a 1006 error Code: * arg: 1 Code: iIp = '192.168.x.x' Anyone a suggestion how to find a detailed error? 30-10-2019: change the protocol from ws to wss gives no error 1006, but how to control the box? RE: Siegenia AEROPAC - gjniewenhuijse - 30.10.2019 i like to turn this device on/off and set my fanlevel. Who can help me? RE: Siegenia AEROPAC - admin - 30.10.2019 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({ For On/Off and fan control try this (change deviceactive value as needed): Code: req = json.encode({ RE: Siegenia AEROPAC - admin - 30.10.2019 There's missing id parameter in my example. Use this helper function to send requests: Code: function send(data) If you want to keep the connection open then you should send keep-alive every 10 seconds or so: Code: send({ RE: Siegenia AEROPAC - gjniewenhuijse - 30.10.2019 (30.10.2019, 14:40)admin Wrote: There's missing id parameter in my example. Use this helper function to send requests: Many thanks, it works great.. |