01.04.2020, 11:32
This API is really simple, just send HTTP GET/POST requests. Change key and device_id for this example to work:
Code:
key = '12345'
https = require('ssl.https')
-- GET
res, err = https.request('https://home.sensibo.com/api/v2/users/me/pods?fields=*&apiKey=' .. key)
log(res, err)
-- POST
data = '{"acState":{"on":true}}'
device_id = '456'
res, err = https.request('https://home.sensibo.com/api/v2/pods/' .. device_id .. '/acStates?apiKey=' .. key, data)
log(res, err)