Skip to content

Raspberry Pi RC Switch Binding

Thomas Eichstädt-Engelen edited this page Mar 21, 2016 · 3 revisions

Introduction

This binding enables the management of remote controlled (RC) switches via a 433-MHz transmitter connected to a Raspberry Pi.

The binding can be used with a 433-MHz transmitter connected to a Raspberry Pi as described in the following assembly instruction: https://www.raspberrypi.org/forums/viewtopic.php?f=37&t=66946

Configuration in openhab.cfg

In the openHAB configuration you have to configure the GPIO port from which the RC transmitter receives its data.

If the RC transmitter is connected to the GPIO port 0, add the following line to the configuration file:

rpircswitch:gpioPin=0

Items

The rpircswitch binding only supports SwitchItems which can be configured with the following syntax:

Switch name { rpircswitch="groupAddress:deviceAddress" }

with

  • name - an arbitrary name
  • groupAddress - the ID of the switch group
  • deviceAddress - the ID of the switch within the group

Group and device address can usually be configured in the RC switch device by adjusting DIP switches.

Example:

Switch	SleepingRoom	{rpircswitch="11111:4"}
Switch	LivingRoom		{rpircswitch="11111:1"}

Sitemap

To add the two sample switches to your sitemap, you can add the following lines to the sitemap configuration:

Switch item=SleepingRoom label="Sleeping Room"
Switch item=LivingRoom label="Living Room"

feature overview

Installation

Setup intro

Linux and OS X

Windows

FreeBSD


Configuration

Automation*

User Interfaces

Persistence


Community

(link to openHAB forum)

Development


Bindings


Application Integration

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.

Binding configurations

Use case examples

Item definition examples

Sitemap definition examples

Collections of Rules on a single page

Single Rules

Scripts

Syntax highlighting for external editors


Release Notes

Clone this wiki locally
You can’t perform that action at this time.