Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
[TUTO] Domotiser sa climatisation
#6
Pour l'api du sensibo, tu peux faire avec un script LUA:
Code:
calaos:requestUrl(“url”, “POST DATA”) : Permet d'appler une URL avec des données en POST

Donc:

Code:
local url = "https://home.sensibo.com/api/v2/pods/IDPOD/acStates?apiKey=123456789"
local data = '{"acState": {"on": true, "targetTemperature": 21, "mode": "cool", "fanLevel": "Auto"}}'

calaos:requestUrl(url, data)
Raoul,
Calaos Core Dev.
Calaos git sur NUC NUC5PPYH | Wago 750-849 | DALI RGB | Sondes NTC sur 750-464 | Sondes 1Wire DS18B20 avec adaptateur USB DS9490R | Nodes MySensors avec gateway USB | Ecran tactile ELO avec adaptateur USB/RS232 | Squeezebox Duet et Radio | Logitech Harmony Ultimate | Ampli Pioneer VSX921
Reply


Messages In This Thread
[TUTO] Domotiser sa climatisation - by Fred - 05-10-2017, 04:21 PM
RE: [TUTO] Domotiser sa climatisation - by raoulh - 05-10-2017, 09:22 PM
RE: [TUTO] Domotiser sa climatisation - by Fred - 05-11-2017, 09:07 AM
RE: [TUTO] Domotiser sa climatisation - by raoulh - 05-11-2017, 09:12 AM
RE: [TUTO] Domotiser sa climatisation - by Fred - 05-11-2017, 10:08 AM
RE: [TUTO] Domotiser sa climatisation - by raoulh - 05-11-2017, 10:44 AM
RE: [TUTO] Domotiser sa climatisation - by Fred - 05-11-2017, 01:16 PM

Forum Jump:


Users browsing this thread: 1 Guest(s)