So I’ve have successfully written my first Device Type. Basically it is just querying a server via REST for some data, and then parsing and displaying.
It’s working great! I’m really happy that I’ve integrated SmartThings with my existing homebrew home automation system which includes a data server, Raspberry Pi, and Beaglebone Black devices. And I love Groovy also!
The JSON I am sending back contains 4 temperature readings from the various connected Raspberry Pi and Beaglebone Black devices throughout my house.
I have added the ‘Temperature Measurement’ Capability to my Device Type, as well as 3 other attributes to handle the 4 temperature values.
I have found if I want to integrate my Device Type with a SmartApp like the ‘ActiON Dashboard 4’ the only value that is available is the ‘Temperature Measurement’. I assume this is because it is a Capability.
Can I create custom Capabilities? Can I have more than 1 of the same Capability? Can I access the Attributes from the SmartApp?