Working MIMOlite Device Type with Sensor

This is my code for MIMOlite as a smoke sensor/alarm trigger. It works in my application. All you would need is to change some wording and icons. Let me know how far you get.

Simulator will be your best friend, the console helps a lot with debugging.