Ask our Experts
Didn't find what you are looking for? Ask our experts!
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.
Search in
Link copied. Please paste this link to share this article on your social media post.
Dears,
Can someone explain how can we integrate Samsung SmartThings with Wiser for KNX ? and if there is Integration Guide PDF or not,
Kind Regards,
Link copied. Please paste this link to share this article on your social media post.
Yes it’s possible, i have a rudimentary script that communicates with my SmartThings but it has to be finalized further, there is no integration guide for this..
I can share the script later this week as I’m traveling..
Link copied. Please paste this link to share this article on your social media post.
Here is a sample of the userlib for a get request:
https = require('ssl.https')
json = require('json')
ltn12 = require('ltn12')
--https://account.smartthings.com/tokens
token = 'put here your token from above URL'
function GetRequest(req)
tbl = {}
res, code = https.request({
url = 'https://api.smartthings.com/v1/' .. req,
method = 'GET',
headers = {
['authorization'] = 'Bearer ' .. token,
['content-type'] = 'application/json',
},
sink = ltn12.sink.table(tbl),
})
if res and code == 200 then
return json.pdecode(table.concat(tbl))
end
end
And with event/resident script you can request your devices or the status of a device:
require('user.smartthings')
log(GetRequest('devices'))
log(GetRequest('devices/602311d8-6a34-3d7d-af34-9d0cf2a70597/status'))
Link copied. Please paste this link to share this article on your social media post.
Hello TechWhiz123!
Is this topic solved?
If so ... please mark the answer from Erwin as solved
You’ve reached the end of your document
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.