Skip to content
This repository has been archived by the owner on May 17, 2021. It is now read-only.

Flic via Tasker

Christoph Wempe edited this page Nov 24, 2015 · 3 revisions

#Flic (Bluetooth Buttons) via Tasker (Android)# You can connect your Flic Bluetooth Buttons via Tasker to openHAB.

##openHAB configuration## ###items### flic.items

Group gFlic
Group gFlic01	(gFlic)

Switch		Flic01click		"Flic01 Click"	{ autoupdate="false"}
Switch		Flic01double	"Flic01 Double Click"	{ autoupdate="false"}
Switch		Flic01hold		"Flic01 Hold"	{ autoupdate="false"}
Switch		Flic01down		"Flic01 Down"

The items are defined as push buttons via {autoupdate="false"}. You can use a Flic as a normal button by using the "up" and "down" function. (follow the Flic01down item in this guide)

###sitemap### flic.sitemap

sitemap flic label="Flic"
{	
	Frame label="Flic 01" {
		Switch		item=Flic01click
		Switch		item=Flic01double
		Switch		item=Flic01hold
		Switch		item=Flic01down
	}
}

###rules### flic.rules

rule "Flic01 Click"
	when 
		Item Flic01click received command
	then
		logInfo("Flic", "Flic01 Click")
end

rule "Flic01 Double Click"
	when 
		Item Flic01double received command
	then
		logInfo("Flic", "Flic01 Double Click")
end

rule "Flic01 Hold"
	when 
		Item Flic01hold received command
	then
		logInfo("Flic", "Flic01 Hold")
end

rule "Flic01 Down"
	when 
		Item Flic01down changed from OFF to ON
	then
		logInfo("Flic", "Flic01 Down")
end

rule "Flic01 Up"
	when 
		Item Flic01down changed from ON to OFF
	then
		logInfo("Flic", "Flic01 Up")
end

##configure your android device## ###Flic app### Install the Flic app and connect and name your Flic devices.

###Tasker### Install the Tasker app on your android device.

You can importthis Tasker project via an xml file (download XML).

Or you can create the profiles and Tasks manually.

I am using the global variables %OHSERVER and OHPORT to specify my openHAB server. This way I can easily change the openHAB IP or port for all my tasks at once.

btw: There might be a linux library in the works, so you can connect the buttons directly to your openHAB server via a bluetooth dongle. http://www.hardill.me.uk/wordpress/2015/10/10/flic-io-button-finally-arrived/#comment-109834

Installation


User Interfaces


Community

(link to openHAB forum)

Development



Misc


Samples

A good source of inspiration and tips from users gathered over the years. Be aware that things may have changed since they were written and some examples might not work correctly.

Please update the wiki if you do come across any out of date information.

Use case examples

Collections of Rules on a single page

Single Rules

Scripts


Release Notes

Clone this wiki locally