Flick

Flick the switch on wifi controllers

This app allows the user to control Wifi enabled controllers, e.g. smart plugs, smart switches, and smart power strips. (Currenty the app only controls TpLink devices but Wemo support is under development.)

When the app is invoked for the first time it shows a screen with the message Tap to scan. Tapping this screen starts an enumeration process to identify all devices that are available. This enumeration takes a few seconds before the app then identifies the current on/off state of all those devices. The app flashes the device name as its state is determined to let you know that progress is being made. When the enumeration is done then a menu is displayed showing the state of every device found.

Subsequent invocations of the app bypasses this enumeration process and immediately shows a device menu with the devices from the last enumeration and the last known state of each device. The icons for each device will have a grey background to indicate that the on/off status of the device is out of date. (Although out of date the status will probably be correct, only a timer or a manual operation could have changed the device.)

After all of the devices have been found the app will then show a device menu list of all those devices. Each row of the device menu list shows a device name and an icon to indicate the state (on, off, offline) of the device. The states are:
On Off Offline
Outlet
Switch
Strip
Tapping on a device (or using the select button on watches without a touch screen) causes the app to explicitly get the current, correct on/off state of the device and brings up one of these two displays:

showing the state (one of the 9 icons above) of that device, the left image shows an on device while the right image shows an off device. Tapping on that screen will change the state of the device, from off to on, or from on to off.

The name of the device is shown above the icon while the type of device is shown below the icons (currently tplink is the only device type but that will hopefully change in the future.)

Tapping the Back button will return back to the device menu list display.

Tapping the Back button on the device menu list display will return the app to the start where it will show the message Tap to find devices. If you tap the screen (or hit the select button) at this time the app will find devices again and bring up a device menu list of those devices. If you hit the back button from this screen the app will terminate.

Source

Flick is licensed under the GPL V3.0. The latest source tree is available for browsing here and tarballs for the latest and older versions are located at the following links:

Configuration

The app is configured from the phone. The important configurable items are: