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.

Sensibo APi
#1
Is there a code for sensibo on LM?
https://support.sensibo.com/l/en/article...i-overview
Reply
#2
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)
Reply
#3
Tnx. is there a simple way to write and read all these values on the bus?
Reply
#4
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.
Reply


Forum Jump: