Log.trace " Executing lock() for device $" Here's the code for the commands lock and unlock you can send to it via the API: /** What you can do with the device is defined by this "driver". which is brokering your instructions onto the little device itself.įor example, adding a Yale Smart Lock means it could be assigned this "driver": Īll of these are in the public Github repo and written in Apache Groovy, which is a more fun version of Java. Your code is talking to the cloud driver, which in turn is talking to the device. SmartThings chooses this for the device and calls it a "device type handler" (DTH). When you connect and register a new device to your SmartThings hub - for example, a smart lock - it is linked/associated with a "cloud driver". NB: This isn't the most technically accurate way to describe the way SmartThings actually works, but it's a useful means to conceptualise it when developing. There's some truth to that, but the honest perspective is you're just going to get even more confused. Understanding Cloud DriversĪsk anyone who has been in this mess for a while, and they'll tell you the best way to understand SmartThings is to understand the "Classic" version, as it's become mixed up with the new one. Then go and do something else involving alcohol. A web-based console/studio (for debugging, publishing handlers etc)įirst things first, get a Samsung account. A Github repo of public open source cloud drivers:Ħ. The 2 REST APIs (for device status and commands)ĥ. The documentation and community forums (for sanity)Ĥ. Your developer workspace (for creating, debugging, and publishing apps)ģ. Your Samsung account (personal or group/company)Ģ. Yes, that's why you need to get the language straight in your head. It's a bunch of things for SmartThings which add smartness to your things. The idea: you talk to the hub it talks to the appliances.įrom thereon in, it's a real mess. It does that through an Ethernet or Wifi connection. The Samsung SmartThings hub is a radio transmitter/receiver for these two protocols you can put in your house which aims to coordinate all your devices, and connect them to the Internet. Hence, Zigbee is a low-power, low data rate, and close proximity (i.e., personal area) wireless ad hoc network." "Zigbee is an IEEE 802.15.4-based specification for a suite of high-level communication protocols used to create personal area networks with small, low-power digital radios, such as for home automation, medical device data collection, and other low-power low-bandwidth needs, designed for small scale projects which need wireless connection. It is a mesh network using low-energy radio waves to communicate from appliance to appliance, allowing for wireless control of residential appliances and other devices, such as lighting control, security systems, thermostats, windows, locks, swimming pools and garage door openers."Īnd. "Z-Wave is a wireless communications protocol used primarily for home automation. Internet of Things devices are formalising around 2 lightweight mesh network radio communications standards: Z-Wave (, 1999) and Zigbee (, 2004). It's that mega-company's attempt to rule, like Sauron in Lord of the Rings. SmartThings is one mega-company's realisation that the next logical step in the web's ascendancy is that ordinary devices and appliances need to be Internet-connected: the fridge, the coffee machine, your car radio, the lights, your blinds, everything. You're like every other SmartThings developer. You even gave it your own name to try and make it make sense. Then you came back round and had to study it again. You've even drawn it out on a few whiteboards. You've re-read the same page multiple times.
0 Comments
Leave a Reply. |
Details
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |