All Projects → pfink → Openhab2 Flicbutton

pfink / Openhab2 Flicbutton

Licence: epl-2.0
openhab2 binding for flicbutton

Programming Languages

java
68154 projects - #9 most used programming language

Labels

Projects that are alternatives of or similar to Openhab2 Flicbutton

habpanelviewer
An openHAB integrated kiosk browser
Stars: ✭ 68 (+353.33%)
Mutual labels:  openhab
ComfoAirQ-Homie
Homie4 for Zehnder ComfoAirQ
Stars: ✭ 14 (-6.67%)
Mutual labels:  openhab
Openhab Android
openHAB client for Android
Stars: ✭ 457 (+2946.67%)
Mutual labels:  openhab
org.openhab.binding.rflink
RFLink binding for OpenHAB 2.0
Stars: ✭ 23 (+53.33%)
Mutual labels:  openhab
addons
SmartHome/J addons for openHAB
Stars: ✭ 27 (+80%)
Mutual labels:  openhab
SuperLEDstrip
No description or website provided.
Stars: ✭ 13 (-13.33%)
Mutual labels:  openhab
nuimo-openhab-python
Use your Nuimo as a UI for openHAB!
Stars: ✭ 16 (+6.67%)
Mutual labels:  openhab
Amazon Dash
Hack your Amazon Dash to run what you want.
Stars: ✭ 703 (+4586.67%)
Mutual labels:  openhab
openHAB-Simatic
openHAB binding for Siemens Simatic S7 PLC
Stars: ✭ 15 (+0%)
Mutual labels:  openhab
Miflora Mqtt Daemon
Linux service to collect and transfer Xiaomi Mi Flora plant sensor data via MQTT to your smart home system, with cluster support 🌱🌼🥀🏡🌳
Stars: ✭ 409 (+2626.67%)
Mutual labels:  openhab
HABApp
Easy home automation with MQTT and/or openHAB
Stars: ✭ 35 (+133.33%)
Mutual labels:  openhab
zwave-core
Flexible Z-Wave Service Server - Access your Z-Wave nodes fast and independent - Planned/supported: REST-API, Browser UI, MQTT* - Perfect for maintaining big node-numbers, drop-in ozwcp replacement!
Stars: ✭ 19 (+26.67%)
Mutual labels:  openhab
Config
Armbian configuration utility
Stars: ✭ 317 (+2013.33%)
Mutual labels:  openhab
CometVisu
Repository for the CometVisu building automation visualisation.
Stars: ✭ 60 (+300%)
Mutual labels:  openhab
Openhab Core
Core framework of openHAB
Stars: ✭ 472 (+3046.67%)
Mutual labels:  openhab
esp32-motorized-roller-blinds
Control your motorized blinds with Web interface/ MQTT. Easy integration with automation systems like Home Assistant and OpenHab. 3d printing model for Leroy Merlin blinds.
Stars: ✭ 51 (+240%)
Mutual labels:  openhab
openhab2 pub 001
openhab2_pub_001
Stars: ✭ 29 (+93.33%)
Mutual labels:  openhab
Dimswitch
Arduino library to control dimmable ballasts for fluorescent light tubes
Stars: ✭ 17 (+13.33%)
Mutual labels:  openhab
Openhabian
openHABian - empowering the smart home, for Raspberry Pi and Debian systems
Stars: ✭ 635 (+4133.33%)
Mutual labels:  openhab
Heatpump
Arduino library to control Mitsubishi Heat Pumps via connector cn105
Stars: ✭ 327 (+2080%)
Mutual labels:  openhab

openHAB 2 Flic Button Binding

Project Status: Active – The project has reached a stable, usable state and is being actively developed. Build Status codebeat badge

openHAB 2 binding for fliclib-linux-hci using the java clientlib by Shortcut Labs. When you use this binding, please share your expierences here and create issues at this repository for feature requests and bug reports.

Supported Things

  • flicd-bridge - The bridge representing a running instance of fliclib-linux-hci (flicd) on the server .
  • button - The Flic button (supports Flic 1 buttons as well as Flic 2 buttons)

Discovery

  • There is no automatic discovery for flicd-bridges available.
  • After flicd-bridge is (manually) configured, buttons will be automatically discovered as soon as they're addded with simpleclient via background discovery. If they're already attached to the flicd-bridge before configuring this binding, they can be discovered by triggering an active scan.

Thing Configuration

flicd-bridge

The bridge should be added to a *.things file. Example:

Bridge flicbutton:flicd-bridge:mybridge

The default host is localhost:5551 (this should be sufficient if flicd is running with default settings on the same server as openHAB). If your flicd service is running somewhere else, specify it like this:

Bridge flicbutton:flicd-bridge:mybridge [ hostname="<YOUR_HOSTNAME>",  port="<YOUR_PORT>"]

If flicd is running on a remote host, please do not forget to start it with the parameter -s 0.0.0.0, otherwise it won't be accessible for openHAB (more details on fliclib-linux-hci).

button

There are no configuration parameters for buttons available and normally no textual configuration is necessary as buttons are autodiscovered as soon as the bridge is configured. If you want to use textual configuration anyway, you can do it like this:

Bridge flicbutton:flicd-bridge:mybridge [ hostname="<YOUR_HOSTNAME>",  port="<YOUR_PORT>"] {
    Thing button <MAC_ADDRESS> "<YOUR_LABEL>"
    Thing button <MAC_ADDRESS> "<YOUR_LABEL>"
    ...
}

You can lookup the MAC addresses of your buttons within the inbox of Paper UI. You're free to choose any label you like for your button.

Channels

Getting Started

  1. Setup and run flicd as described in fliclib-linux-hci. Please consider that you need a seperate Bluetooth adapter. Shared usage with other Bluetooth services (e.g. Bluez) is not possible.
  2. Connect your buttons to flicd using the simpleclient as described in fliclib-linux-hci. Flicd has to run in background the whole time, simpleclient can be killed after you successfully tested the button connection.
  3. Add a flicd-bridge via PaperUI or Textual Configuration. Please consider that flicd does only accept connections from localhost by default, to enable remote connections from openHAB you have to use the --server-addr parameter as described in fliclib-linux-hci.
  4. When the bridge is online, buttons newly added via simpleclient will automatically get discovered via background Discovery. To discover buttons that were set up before the Binding setup, please run an active scan.
  5. Profiles are the recommended way to use this binding. But it's also possible to setup Rules, e.g. like this:
    rule "Button rule using the button channel"
    
    when
        Channel "flicbutton:button:1:80-e4-da-71-12-34:button" triggered SHORT_PRESSED
    then
        logInfo("Flic", "Flic 'short pressed' triggered")
    end
    
    rule "Button rule directly using the rawbutton channel"
    
    when
        Channel "flicbutton:button:1:80-e4-da-71-12-34:rawbutton" triggered
    then
        logInfo("Flic", "Flic pressed: " + receivedEvent.event)
    end
    
Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].