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

endpoints

hephaisto edited this page Sep 29, 2015 · 1 revision

The endpoints section in the config file defines the physical endpoints.

Common properties

name

The name of the endpoint as referred to in scripts and in web-interface [groups].

type

The type of the endpoint. The following endpoints are currently supported:

  • fake: An endpoint that just prints status updates to the log
  • raspi: GPIO-Pins using wiringPi
  • multiplex: When set to a specific value, all multiplexed endpoints are set to this value, too

range

The data type of the endpoint:

  • u1: boolean value, represented as a switch
  • u8, u16, u32: unsigned integers, represented as a slider
  • s8, s16, s32, s64: signed integers, represented as a slider

input

Whether this endpoint is an input or an output value.

description

default: empty

Documentation string that is shown on the web interface.

Type-specific properties

raspi

pin

Pin number using the wiringPi numbering scheme.

invert

default: false

If set to false, HIGH voltage level will be interpreted as 1, LOW as 0. If set to true, this mapping is reversed.

pull

default: off

  • up: activate pullup resistors
  • down: activate pulldown resistors
  • off: deactivate pull resistors

multiplex

endpoints

List of endpoint names that should be multiplexed. All endpoints in this list have to be already defined earlier in the config.

Example

light_0 "raspi"
{
	description "raspi endpoint using wiringPi"
	range u1
	input false
	pin 0
	invert false
}
Clone this wiki locally