The design goal for this project is to assign a LIFX Scene to each of the event types. As I stated earlier, I slightly changed my design goal based on this. The button supports three events: Single Click, Double Click and Long Click. From there you can respond to those events in numerous ways. When configured, the AWS IoT Button connects to the Amazon cloud via a wireless network and sends events to the Amazon cloud. They appear to be a simple device from the outside, but, in fact, are very powerful. I have several Dash buttons and use them quite a bit. If you have any Dash buttons from Amazon, then you are very familiar with the AWS IoT Button. I have decided to slightly alter this design based on precise knowledge of how the button works, as well as some experience with how it interacts with the LIFX API. With little knowledge of the AWS IoT Button, this design was based on the assumption that the button had a single click event. In my original idea post for this project I stated I would have the button behave like a three-way switch that would cycle through settings each time it was pushed. The LIFX API provides a rich set of methods for controlling the lights, including the ability to activate a scene. When the scene is activated each light in the scene is set to the prescribed color. A scene is a selection of one or more lights and the color of each light. The light allows the color or level of white to be set manually using the mobile application and also supports the creating of scenes. ![]() What originally drew me to these was a demonstration of the API at Microsoft Build using Windows 10 IoT Core as well as the vast amount of integration support with other services. ![]() The LIFX color, which can be used as an everyday bulb or for special purposes, is an LED based RGB bulb that supports multiple colors and brilliant whites. When I saw that Hackster.io was giving away some AWS IoT Buttons I thought this was the perfect opportunity to develop an easy switch for the lights. I find, however, that when I come into the room I sometimes just want to turn the lights on (or off when I leave) without needing to find my phone. I normally control them using the excellent application provided by LIFX on my iPhone and Windows 10 tablet. I currently have one in each of the two lamps next to my bed. I originally purchased one for another Hackster project and I liked it so much I purchased a few more.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |