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

pilight Binding

idserda edited this page Dec 29, 2014 · 6 revisions

Documentation for the pilight binding

Introduction

This page describes the pilight binding, which allows openhab to communicate with a pilight instance:

pilight is a free open source full fledge domotica solution that runs on a Raspberry Pi, HummingBoard, BananaPi, Radxa, but also on *BSD and various linuxes (tested on Arch, Ubuntu and Debian). It's open source and freely available for anyone. pilight works with a great deal of devices and is frequency independent. Therefor, it can control devices working at 315Mhz, 433Mhz, 868Mhz etc. Support for these devices are dependent on community, because we as developers don't own them all.

pilight is a cheap way to control 'Click On Click Off' devices. You can do this for example by using a Raspberry Pi and a cheap 433Mhz transceiver off eBay, plus an optional band pass filter.

Currently, switches, dimmers and string and number items are supported by this binding.

Installation

  • Copy the pilight binding jar to your openhab addons directory
  • Configure the pilight daemon in openhab.cfg
  • Add controlable items to openhab .items file
  • Use items in sitemap

Configuration openhab.cfg

This binding supports multiple pilight instances. You must set the .host and .port values.

#
# pilight:<instance name>.<parameter>=<value>
#
# IP address of the pilight daemon 
#pilight:kaku.host=192.168.1.22
#
# Port of the pilight daemon
#pilight:kaku.port=5000
#
# Optional delay (in millisecond) between consecutive commands. 
# Recommended value without band pass filter: 1000 
# Recommended value with band pass filter: somewhere between 200-500 
#pilight:kaku.delay=1000

Item configuration

Item configuration follows this format:

pilight="<instance>#<room>:<device>"

Room and device are the same as specified in your pilight config.json.

Examples:

Switch  KakuDeskLamp    "Desk lamp"             (Lamps)         {pilight="kaku#study:desklamp"}
Switch  KakuFloorLamp   "Floor lamp"            (Lamps)         {pilight="kaku#study:floorlamp"}

Dimmer  KakuCeiling     "Ceiling"               (Lamps)         {pilight="kaku#living:ceiling"}

Usage in sitemap

Switch item=KakuDeskLamp
Switch item=KakuFloorLamp
Slider item=KakuCeiling

Additional info

For more information/questions:

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