SpaceLogic KNX Forum
Schneider Electric SpaceLogic KNX forum to get support and share knowledge including selection, installation and troubleshooting for spaceLYnk, Wiser for KNX, eConfigure KNX, SpaceLogic KNX Hybrid module and other topics.
Link copied. Please paste this link to share this article on your social media post.
If you are trying to connect Wiser to SmartThings please write below this post. I am now connected to the refrigerator. API is pretty stable.
https = require('ssl.https')
json = require('json')
ltn12 = require('ltn12')
token = 'YOUR PERSONAL TOKEN'
tbl = {}
res, code = https.request({
url = 'https://api.smartthings.com/v1/devices/YOUR DEVICE ID/status',
method = 'GET',
headers = {
['authorization'] = 'Bearer ' .. token,
['content-type'] = 'application/json',
},
sink = ltn12.sink.table(tbl),
})
if res and code == 200 then
resp = table.concat(tbl)
resp = json.pdecode(resp)
-- Found a value in table with setpoint here:
local FridgeTemp = resp["components"].cooler.temperatureMeasurement.temperature.value
local FreezerTemp = resp["components"].freezer.temperatureMeasurement.temperature.value
local FridgeDoor = resp["components"].cooler.contactSensor.contact.value
local FreezerDoor = resp["components"].freezer.contactSensor.contact.value
grp.checkupdate('33/1/11', FridgeTemp )
grp.checkupdate('33/1/12', FreezerTemp )
grp.checkupdate('33/1/16', FridgeDoor )
grp.checkupdate('33/1/17', FreezerDoor)
Link copied. Please paste this link to share this article on your social media post.
Hello Ozturker,
many THANKS for sharing the script with the community!
Really appreciated! 🙂
Link copied. Please paste this link to share this article on your social media post.
Link copied. Please paste this link to share this article on your social media post.
Hello Ozturker,
I was thinking on your post ... we will make it more comfortable for you 😉
Just working on the certification.
Link copied. Please paste this link to share this article on your social media post.
Create your free account or log in to subscribe to the board - and gain access to more than 10,000+ support articles along with insights from experts and peers.