Read the statement by Michael Teeuw here.
SmartThings
-
Yeah, The framework of it can get confusing. From what Iāve gathered you make requests for devices based on their capabilities (i.e. presenceSensor, lock, switch, temperature sensor, etc). Or if you have the device, you can then list what its capable of and get variables of those properties.
-
Well if I could even get that far Iād be happy LOL
Is there an easier guide or example that you can think of that would help?
-
Hey up Amigoā¦
I use ST, along with WebCoRE, Automateit, Broadlink RM Pro and Mini (Blackbean) and a host of Alexa devicesā¦ and TinyCam Pro as the transcoder for my CCTV to display on Action Tilesā¦ which I have on a 10" Tablet - as a control panel for all my Automation kit that controls about 90% of my home.
Not sure if I can be of any help though, as Im sure you just want to use/utilise/grab the data onto/into MM? Much like what ActionTiles does with ST equipment eh?
I thought you had already set up your whole automation as Tiles on your PCā¦ iirc?
That would be something else if you managed to get this onto MMā¦ coupled with the TouchScreen overlay.
The only 2 household items I have on MM are Sonos, and Hiveā¦ Sonos still works goodā¦ purely a visual obviously, but Hive is not so good, so kinda gave up on that on MM.
At least with using ActionTiles (on a Touch screen), I have full control over everything, as well as using Alexa too of course, but having the Central control panel comes to itās own for when guests are here and obviously do not know the voice commands - They simply use the Tablet.
As said, not sure I can help out on grabbing the ST data for MM, but if you want any info on the above kit I use, then I am only too willing to tell you what I can.
-
A johnnyboy sighting is like seeing Bigfoot. :-)
-
šššā¦ Hey up Amigoā¦ Howās tricks?
Iām always lurking here ā¦ from time to time, to keep up with what you guys are up to š
Whenever our other Amigo posts a question like that, I can hear his brain cells clicking away, knowing something good is being worked on š
-
Cool, nice to see you. Yeah, CBD is always working on something. I canāt keep up with him.
-
@cowboysdude
When working in the IDE, remember that there are locations, usually a TestHub and Home, I have an additional smartthings in my shop, so you need to select the correct location before creating new device handlers and smart apps.Iād start with deviceHandlers. I typically find the code on github for the device Iām looking to implement a handler for, then on the API IDE Iāll create the new handler from code (see: https://www.thesmartesthouse.com/blogs/the-smartest-blog/how-to-install-a-custom-device-handler-in-smartthings). Once youāve published the handler for yourself, you can either setup a new device or if you want to modify a device (such as changing a door sensor, that has wire contacts, to act as a smoke alarm) you update itās Type field to be the new handler. In your mobile app. you should see it change from a door sensor to a smoke sensor.
There are handlers that work in conjunction with smart apps also. Typically I copy the code for the new smart app the same way, and publish them to work for myself.
So as far as writing my first MM module, I was looking at this node library (https://github.com/hijha/smartthings-node) to act as the client for getting device data from ST. It requires a key to be generated. That key you will generate from the token generation page here: https://account.smartthings.com/tokens
I was hoping to get this created this weekend and play with it, but life got in the way, so hopefully Iāll get something working this week.
-
@buzzkc I know how that feels!! I donāt even think I can look at ST until almost winter in reality. Currently Iām working on a job that should take 4 monthsā¦they gave me 2 LOL After that the list is longggggggggggggggggg stillā¦ so Iām really busy.
IF you need anyone to test or help let me know!
-
@johnnyboy tryingā¦ trying LOL Great to see you!!!
-
@cowboysdude said in SmartThings:
@johnnyboy tryingā¦ trying LOL Great to see you!!!
As @buzzkc has stated about Device Handlers, and Im sure you have (Must have?) already done thisā¦ these can be found in the IDE, which are C&P from github.
There is a constantly updated list of DHās on the ST Forum, so worth checking that out to compare with the devices you have, and wish to manipulate.Me personaly, I use WebCoRE to do my manipulationā¦ and If I need to add anything that is not the āNormā then I would simply create a Virtual switch on the IDE, and then point towards that, with my chosen manipulationā¦ and if you have used WebCoRE before, then you know it has limitless possibilities. Bad comparason, but I look at WebCoRE as IFTTT on Steroids :-)
Some things I do, requires using several itemsā¦ like my door sensor for example - It opens (Trigger ) and it then informs STā¦ which then informs WebCoRE, whitch then informs EchoSpeaks to then go through Amazon, to speak my chosen text, on my chosen Amazon devices - āWarning, Side door has been openedā¦ Alarm sequence will initiate in T-Minus 20 secondsā
I also added in another āThenā which will turn my chosen lights on @ 100%, until door is closedā¦ and also to turn on my smart plug, which has a Siren attached, to activate after the 20 second time, also to start recording on CCTV in that location.The lag on this is about 2 secondsā¦ so not a real concern given the hoops it has to jump through beforehand.
I have only ever needed to slightly alter a DH once, for a Hive Sensorā¦ but that was to simply change a 6second delay to a 12 second delayā¦ purely because the original usage would be going through 1 loop, and I was going through 4, so need to extend the timeout.
I also have my Hive Heating controllable through ST of sorts, using ActionTiles and placing Hive on the screen there.IF my MM was Touchscreen, and I had the time to work it out, I would have loved to be able to place several icons/Tiles (Virtual Switches) onto it, and control numerous ST devices from thereā¦ But I found it far far quicker, and easier, to simply use a Tabletā¦ with the benefit that I can add several other tablets throughout the house, each with either control of that zone only, or the ability to swipe to another zone from the same screenā¦ by creating a Link tile in every window to go to a chosen zone.
You could also create Media Tilesā¦ showing a constant stream of several camerasā¦ and make that Tile as small or as big as you likeā¦ I have Netflix/Amazon/Kodi/IPTV as tiles too, so one click, and it pops up for me.
And, as mentioned, it will aslo link to any app you have on the device you are using, by creating a link tile to itā¦ which will open up for you directly in that screen/tileā¦ and I find this usefull when playing music through my Sonos system, and can bring up the full library to choose from, and be able to control the speakers too.
Iām not sure by your OP that you are wanting to manipulate the data to then create something to use on the MM framework, or whether you simply want to manipulate the data just to alter things to your own suiting?
But if you have read anything above that you need any more info on, then ask awayā¦