Flick

Flick the switch on wifi controllers

This app allows the user to control Wifi enabled controllers, e.g. smart plugs, smart switches, smart power strips, and sauna heaters. (Currenty the app only controls TpLink devices, Shelly devices, and Humm sauna heaters. Wemo support is discontinued (before it was truly started) since Belkin, in their infinte wisdom, has decided to drop all cloud support for Wemo devices - this means I will never be buying a Belkin product in the future and I encourage anyone reading this guide to do the same.)

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
Sauna
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, e.g TpLink, Shelly, or Huum.

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.

Sauna Heaters

Sauna heaters are a little different from outlet switches but the main concept is the same, you can get the state of the heater (is it on or off) and you can turn the heater on or off.

The problem for sauna heaters is the temperature setting. We need to know the current temperature of the sauna and, to turn the heater on, what temperature to set it to. There are a couple of subtle changes to a sauna heater device that deal with this issue:

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: