geraldholdsworth Posts: 59
I read with interest the couple of threads about integrating an Amazon Echo (Alexa) into an AMX system, but has anyone successfully integrated a smart plug (those things that an Echo uses to control lighting, etc.) into an AMX system...that is, without an Echo, or similar?
And, which one works best with AMX?
There are some interesting things possible through the Samsung SmartThings hub.
Am I right in thinking that Harman owns Samsung, or Samsung owns Harman?
I've been looking at the setup, see what I can find.
Are these things that provide a path to communicate bidirectionally with the hub from AMX Netlinx code?
I didn't see that hinted at before... and it's the context here of course.
There was a full day session at last year's developers conference leveraging the open API RESTful protocol of the bridge and then extending the SmartThings functionality with Groovy including NetLinx integration
Is there a copy of the notes from that session, for those that didn't make it along?
Incidentally, I asked Samsung about this, and got this response from the SmartThings Team:
"There isn't an official integration between SmartThings and AMX so it's a bit of an odd one getting them to work together. Your best bet at getting these to work together would be to check out the SmartThings Community. I've had a very quick look myself and managed to find this post: https://community.smartthings.com/t/direct-lan-communication-no-longer-working-local-http-port-39500-doesnt-work-anymore/95330. It's not the same query as yours but it could be a good place to start your own research."
The OP for that community post is the same Sean Cameron who led the session at the conference. It's all based on the SmarThings open API so ya, no "official" integration - it integrates like any other 3rd party device or service.
In general data in and out of the SmartThings environment is accomplished through a simple RESTful API through the Hub.
Up in the SmartThings cloud you create a SmartApp listener to actually handle the integration of all SmartThings Devices & Services, Apps ala NetLinx, Voice Agents, etc. This is the example Groovy code for a NetLinx relay. Access the Web IDE @ https://graph.api.smartthings.com/
On the NetLinx side set up a data event on an IP Server to receive the messages from SmartThings
And a mechanism to update SmartThings when the device status changes
The fnSendCommandToSt() function builds the http packet and sends it on its way - I would highly recommend the http library in David Vine's (of AVT fame) amx-util-library posted on Git Hub if you don't already have a well established methodology.
Spoiler alert - this is based on the API that was current last year. The full ramifications of the recently released v3 API https://smartthings.developer.samsung.com/ on what is shown here has not been completely vetted as of yet. Rumor is that the recent update does significantly change some things.
Wow, thank you Ian.
Can't wait to buy some SmartThings now and have a play.