01.04.2020, 09:04
Is there a code for sensibo on LM?
https://support.sensibo.com/l/en/article...i-overview
https://support.sensibo.com/l/en/article...i-overview
Sensibo APi
|
01.04.2020, 09:04
Is there a code for sensibo on LM?
https://support.sensibo.com/l/en/article...i-overview
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: 123456789101112 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)
Tnx. is there a simple way to write and read all these values on the bus?
02.04.2020, 06:08
To get current status you need a resident script that sends GET request to https://home.sensibo.com/api/v2/pods/{de...}/acStates, then parses the result and writes to objects. For control you need event scripts that send changed values via POST.
|
« Next Oldest | Next Newest »
|