openHAB - IO-16 Bricklet

This is the description of the openHAB API bindings for the IO-16 Bricklet. General information and technical specifications for the IO-16 Bricklet are summarized in its hardware description.

An installation guide for the openHAB API bindings is part of their general description.

Thing

UID:
  • tinkerforge:brickletio16:[UID]
Required firmware version:
  • 2.0.3
Firmware update supported:
  • yes
Channels:
Actions:
Parameters:
  • Pin Configuration 0/A0 – Type: Choice, Default: Input with pull-up
  • Configures the direction of pin 0/A0. Inputs without pull-up will be floating if nothing is connected. Outputs can have an initial state of low or high.
  • Options: Input with pull-up, Input without pull-up, Output (Initial high), Output (Initial low)

  • Pin Configuration 1/A1 – Type: Choice, Default: Input with pull-up
  • Configures the direction of pin 1/A1. Inputs without pull-up will be floating if nothing is connected. Outputs can have an initial state of low or high.
  • Options: Input with pull-up, Input without pull-up, Output (Initial high), Output (Initial low)

  • Pin Configuration 2/A2 – Type: Choice, Default: Input with pull-up
  • Configures the direction of pin 2/A2. Inputs without pull-up will be floating if nothing is connected. Outputs can have an initial state of low or high.
  • Options: Input with pull-up, Input without pull-up, Output (Initial high), Output (Initial low)

  • Pin Configuration 3/A3 – Type: Choice, Default: Input with pull-up
  • Configures the direction of pin 3/A3. Inputs without pull-up will be floating if nothing is connected. Outputs can have an initial state of low or high.
  • Options: Input with pull-up, Input without pull-up, Output (Initial high), Output (Initial low)

  • Pin Configuration 4/A4 – Type: Choice, Default: Input with pull-up
  • Configures the direction of pin 4/A4. Inputs without pull-up will be floating if nothing is connected. Outputs can have an initial state of low or high.
  • Options: Input with pull-up, Input without pull-up, Output (Initial high), Output (Initial low)

  • Pin Configuration 5/A5 – Type: Choice, Default: Input with pull-up
  • Configures the direction of pin 5/A5. Inputs without pull-up will be floating if nothing is connected. Outputs can have an initial state of low or high.
  • Options: Input with pull-up, Input without pull-up, Output (Initial high), Output (Initial low)

  • Pin Configuration 6/A6 – Type: Choice, Default: Input with pull-up
  • Configures the direction of pin 6/A6. Inputs without pull-up will be floating if nothing is connected. Outputs can have an initial state of low or high.
  • Options: Input with pull-up, Input without pull-up, Output (Initial high), Output (Initial low)

  • Pin Configuration 7/A7 – Type: Choice, Default: Input with pull-up
  • Configures the direction of pin 7/A7. Inputs without pull-up will be floating if nothing is connected. Outputs can have an initial state of low or high.
  • Options: Input with pull-up, Input without pull-up, Output (Initial high), Output (Initial low)

  • Pin Configuration 8/B0 – Type: Choice, Default: Input with pull-up
  • Configures the direction of pin 8/B0. Inputs without pull-up will be floating if nothing is connected. Outputs can have an initial state of low or high.
  • Options: Input with pull-up, Input without pull-up, Output (Initial high), Output (Initial low)

  • Pin Configuration 9/B1 – Type: Choice, Default: Input with pull-up
  • Configures the direction of pin 9/B1. Inputs without pull-up will be floating if nothing is connected. Outputs can have an initial state of low or high.
  • Options: Input with pull-up, Input without pull-up, Output (Initial high), Output (Initial low)

  • Pin Configuration 10/B2 – Type: Choice, Default: Input with pull-up
  • Configures the direction of pin 10/B2. Inputs without pull-up will be floating if nothing is connected. Outputs can have an initial state of low or high.
  • Options: Input with pull-up, Input without pull-up, Output (Initial high), Output (Initial low)

  • Pin Configuration 11/B3 – Type: Choice, Default: Input with pull-up
  • Configures the direction of pin 11/B3. Inputs without pull-up will be floating if nothing is connected. Outputs can have an initial state of low or high.
  • Options: Input with pull-up, Input without pull-up, Output (Initial high), Output (Initial low)

  • Pin Configuration 12/B4 – Type: Choice, Default: Input with pull-up
  • Configures the direction of pin 12/B4. Inputs without pull-up will be floating if nothing is connected. Outputs can have an initial state of low or high.
  • Options: Input with pull-up, Input without pull-up, Output (Initial high), Output (Initial low)

  • Pin Configuration 13/B5 – Type: Choice, Default: Input with pull-up
  • Configures the direction of pin 13/B5. Inputs without pull-up will be floating if nothing is connected. Outputs can have an initial state of low or high.
  • Options: Input with pull-up, Input without pull-up, Output (Initial high), Output (Initial low)

  • Pin Configuration 14/B6 – Type: Choice, Default: Input with pull-up
  • Configures the direction of pin 14/B6. Inputs without pull-up will be floating if nothing is connected. Outputs can have an initial state of low or high.
  • Options: Input with pull-up, Input without pull-up, Output (Initial high), Output (Initial low)

  • Pin Configuration 15/B7 – Type: Choice, Default: Input with pull-up
  • Configures the direction of pin 15/B7. Inputs without pull-up will be floating if nothing is connected. Outputs can have an initial state of low or high.
  • Options: Input with pull-up, Input without pull-up, Output (Initial high), Output (Initial low)

Channels

Input Value Pin 0/A0

The logic level that is currently measured on the pin.

Type:
  • Switch
UID:
  • tinkerforge:brickletio16:[UID]:BrickletIO16InputPin0
Read only:
  • No
Predicate:
  • This channel will only be available if Pin Configuration 0/A0 is one of Input with pull-up, Input without pull-up.
Input Value Pin 1/A1

The logic level that is currently measured on the pin.

Type:
  • Switch
UID:
  • tinkerforge:brickletio16:[UID]:BrickletIO16InputPin1
Read only:
  • No
Predicate:
  • This channel will only be available if Pin Configuration 1/A1 is one of Input with pull-up, Input without pull-up.
Input Value Pin 2/A2

The logic level that is currently measured on the pin.

Type:
  • Switch
UID:
  • tinkerforge:brickletio16:[UID]:BrickletIO16InputPin2
Read only:
  • No
Predicate:
  • This channel will only be available if Pin Configuration 2/A2 is one of Input with pull-up, Input without pull-up.
Input Value Pin 3/A3

The logic level that is currently measured on the pin.

Type:
  • Switch
UID:
  • tinkerforge:brickletio16:[UID]:BrickletIO16InputPin3
Read only:
  • No
Predicate:
  • This channel will only be available if Pin Configuration 3/A3 is one of Input with pull-up, Input without pull-up.
Input Value Pin 4/A4

The logic level that is currently measured on the pin.

Type:
  • Switch
UID:
  • tinkerforge:brickletio16:[UID]:BrickletIO16InputPin4
Read only:
  • No
Predicate:
  • This channel will only be available if Pin Configuration 4/A4 is one of Input with pull-up, Input without pull-up.
Input Value Pin 5/A5

The logic level that is currently measured on the pin.

Type:
  • Switch
UID:
  • tinkerforge:brickletio16:[UID]:BrickletIO16InputPin5
Read only:
  • No
Predicate:
  • This channel will only be available if Pin Configuration 5/A5 is one of Input with pull-up, Input without pull-up.
Input Value Pin 6/A6

The logic level that is currently measured on the pin.

Type:
  • Switch
UID:
  • tinkerforge:brickletio16:[UID]:BrickletIO16InputPin6
Read only:
  • No
Predicate:
  • This channel will only be available if Pin Configuration 6/A6 is one of Input with pull-up, Input without pull-up.
Input Value Pin 7/A7

The logic level that is currently measured on the pin.

Type:
  • Switch
UID:
  • tinkerforge:brickletio16:[UID]:BrickletIO16InputPin7
Read only:
  • No
Predicate:
  • This channel will only be available if Pin Configuration 7/A7 is one of Input with pull-up, Input without pull-up.
Input Value Pin 8/B0

The logic level that is currently measured on the pin.

Type:
  • Switch
UID:
  • tinkerforge:brickletio16:[UID]:BrickletIO16InputPin8
Read only:
  • No
Predicate:
  • This channel will only be available if Pin Configuration 8/B0 is one of Input with pull-up, Input without pull-up.
Input Value Pin 9/B1

The logic level that is currently measured on the pin.

Type:
  • Switch
UID:
  • tinkerforge:brickletio16:[UID]:BrickletIO16InputPin9
Read only:
  • No
Predicate:
  • This channel will only be available if Pin Configuration 9/B1 is one of Input with pull-up, Input without pull-up.
Input Value Pin 10/B2

The logic level that is currently measured on the pin.

Type:
  • Switch
UID:
  • tinkerforge:brickletio16:[UID]:BrickletIO16InputPin10
Read only:
  • No
Predicate:
  • This channel will only be available if Pin Configuration 10/B2 is one of Input with pull-up, Input without pull-up.
Input Value Pin 11/B3

The logic level that is currently measured on the pin.

Type:
  • Switch
UID:
  • tinkerforge:brickletio16:[UID]:BrickletIO16InputPin11
Read only:
  • No
Predicate:
  • This channel will only be available if Pin Configuration 11/B3 is one of Input with pull-up, Input without pull-up.
Input Value Pin 12/B4

The logic level that is currently measured on the pin.

Type:
  • Switch
UID:
  • tinkerforge:brickletio16:[UID]:BrickletIO16InputPin12
Read only:
  • No
Predicate:
  • This channel will only be available if Pin Configuration 12/B4 is one of Input with pull-up, Input without pull-up.
Input Value Pin 13/B5

The logic level that is currently measured on the pin.

Type:
  • Switch
UID:
  • tinkerforge:brickletio16:[UID]:BrickletIO16InputPin13
Read only:
  • No
Predicate:
  • This channel will only be available if Pin Configuration 13/B5 is one of Input with pull-up, Input without pull-up.
Input Value Pin 14/B6

The logic level that is currently measured on the pin.

Type:
  • Switch
UID:
  • tinkerforge:brickletio16:[UID]:BrickletIO16InputPin14
Read only:
  • No
Predicate:
  • This channel will only be available if Pin Configuration 14/B6 is one of Input with pull-up, Input without pull-up.
Input Value Pin 15/B7

The logic level that is currently measured on the pin.

Type:
  • Switch
UID:
  • tinkerforge:brickletio16:[UID]:BrickletIO16InputPin15
Read only:
  • No
Predicate:
  • This channel will only be available if Pin Configuration 15/B7 is one of Input with pull-up, Input without pull-up.
Output Value Pin 0/A0

The logic level that is currently set on the pin.

Type:
  • Switch
UID:
  • tinkerforge:brickletio16:[UID]:BrickletIO16OutputPin0
Read only:
  • No
Predicate:
  • This channel will only be available if Pin Configuration 0/A0 is one of Output (Initial high), Output (Initial low).
Output Value Pin 1/A1

The logic level that is currently set on the pin.

Type:
  • Switch
UID:
  • tinkerforge:brickletio16:[UID]:BrickletIO16OutputPin1
Read only:
  • No
Predicate:
  • This channel will only be available if Pin Configuration 1/A1 is one of Output (Initial high), Output (Initial low).
Output Value Pin 2/A2

The logic level that is currently set on the pin.

Type:
  • Switch
UID:
  • tinkerforge:brickletio16:[UID]:BrickletIO16OutputPin2
Read only:
  • No
Predicate:
  • This channel will only be available if Pin Configuration 2/A2 is one of Output (Initial high), Output (Initial low).
Output Value Pin 3/A3

The logic level that is currently set on the pin.

Type:
  • Switch
UID:
  • tinkerforge:brickletio16:[UID]:BrickletIO16OutputPin3
Read only:
  • No
Predicate:
  • This channel will only be available if Pin Configuration 3/A3 is one of Output (Initial high), Output (Initial low).
Output Value Pin 4/A4

The logic level that is currently set on the pin.

Type:
  • Switch
UID:
  • tinkerforge:brickletio16:[UID]:BrickletIO16OutputPin4
Read only:
  • No
Predicate:
  • This channel will only be available if Pin Configuration 4/A4 is one of Output (Initial high), Output (Initial low).
Output Value Pin 5/A5

The logic level that is currently set on the pin.

Type:
  • Switch
UID:
  • tinkerforge:brickletio16:[UID]:BrickletIO16OutputPin5
Read only:
  • No
Predicate:
  • This channel will only be available if Pin Configuration 5/A5 is one of Output (Initial high), Output (Initial low).
Output Value Pin 6/A6

The logic level that is currently set on the pin.

Type:
  • Switch
UID:
  • tinkerforge:brickletio16:[UID]:BrickletIO16OutputPin6
Read only:
  • No
Predicate:
  • This channel will only be available if Pin Configuration 6/A6 is one of Output (Initial high), Output (Initial low).
Output Value Pin 7/A7

The logic level that is currently set on the pin.

Type:
  • Switch
UID:
  • tinkerforge:brickletio16:[UID]:BrickletIO16OutputPin7
Read only:
  • No
Predicate:
  • This channel will only be available if Pin Configuration 7/A7 is one of Output (Initial high), Output (Initial low).
Output Value Pin 8/B0

The logic level that is currently set on the pin.

Type:
  • Switch
UID:
  • tinkerforge:brickletio16:[UID]:BrickletIO16OutputPin8
Read only:
  • No
Predicate:
  • This channel will only be available if Pin Configuration 8/B0 is one of Output (Initial high), Output (Initial low).
Output Value Pin 9/B1

The logic level that is currently set on the pin.

Type:
  • Switch
UID:
  • tinkerforge:brickletio16:[UID]:BrickletIO16OutputPin9
Read only:
  • No
Predicate:
  • This channel will only be available if Pin Configuration 9/B1 is one of Output (Initial high), Output (Initial low).
Output Value Pin 10/B2

The logic level that is currently set on the pin.

Type:
  • Switch
UID:
  • tinkerforge:brickletio16:[UID]:BrickletIO16OutputPin10
Read only:
  • No
Predicate:
  • This channel will only be available if Pin Configuration 10/B2 is one of Output (Initial high), Output (Initial low).
Output Value Pin 11/B3

The logic level that is currently set on the pin.

Type:
  • Switch
UID:
  • tinkerforge:brickletio16:[UID]:BrickletIO16OutputPin11
Read only:
  • No
Predicate:
  • This channel will only be available if Pin Configuration 11/B3 is one of Output (Initial high), Output (Initial low).
Output Value Pin 12/B4

The logic level that is currently set on the pin.

Type:
  • Switch
UID:
  • tinkerforge:brickletio16:[UID]:BrickletIO16OutputPin12
Read only:
  • No
Predicate:
  • This channel will only be available if Pin Configuration 12/B4 is one of Output (Initial high), Output (Initial low).
Output Value Pin 13/B5

The logic level that is currently set on the pin.

Type:
  • Switch
UID:
  • tinkerforge:brickletio16:[UID]:BrickletIO16OutputPin13
Read only:
  • No
Predicate:
  • This channel will only be available if Pin Configuration 13/B5 is one of Output (Initial high), Output (Initial low).
Output Value Pin 14/B6

The logic level that is currently set on the pin.

Type:
  • Switch
UID:
  • tinkerforge:brickletio16:[UID]:BrickletIO16OutputPin14
Read only:
  • No
Predicate:
  • This channel will only be available if Pin Configuration 14/B6 is one of Output (Initial high), Output (Initial low).
Output Value Pin 15/B7

The logic level that is currently set on the pin.

Type:
  • Switch
UID:
  • tinkerforge:brickletio16:[UID]:BrickletIO16OutputPin15
Read only:
  • No
Predicate:
  • This channel will only be available if Pin Configuration 15/B7 is one of Output (Initial high), Output (Initial low).
Monoflop Pin 0/A0

Triggers a monoflop as configured

Type:
  • Commands (String)
UID:
  • tinkerforge:brickletio16:[UID]:BrickletIO16MonoflopPin0
Read only:
  • No
Predicate:
  • This channel will only be available if Pin Configuration 0/A0 is one of Output (Initial high), Output (Initial low).
Commands:
  • Accepts any string
Parameters:
  • Monoflop Duration – Type: integer, Default: 1000, Unit: ms, Min: 0, Max: 4294967295
  • The time (in ms) that the pin should hold the configured value.

  • Monoflop Value – Type: boolean, Default: true
  • The desired value of the specified channel. Activated means relay closed and Deactivated means relay open.
Monoflop Pin 1/A1

Triggers a monoflop as configured

Type:
  • Commands (String)
UID:
  • tinkerforge:brickletio16:[UID]:BrickletIO16MonoflopPin1
Read only:
  • No
Predicate:
  • This channel will only be available if Pin Configuration 1/A1 is one of Output (Initial high), Output (Initial low).
Commands:
  • Accepts any string
Parameters:
  • Monoflop Duration – Type: integer, Default: 1000, Unit: ms, Min: 0, Max: 4294967295
  • The time (in ms) that the pin should hold the configured value.

  • Monoflop Value – Type: boolean, Default: true
  • The desired value of the specified channel. Activated means relay closed and Deactivated means relay open.
Monoflop Pin 2/A2

Triggers a monoflop as configured

Type:
  • Commands (String)
UID:
  • tinkerforge:brickletio16:[UID]:BrickletIO16MonoflopPin2
Read only:
  • No
Predicate:
  • This channel will only be available if Pin Configuration 2/A2 is one of Output (Initial high), Output (Initial low).
Commands:
  • Accepts any string
Parameters:
  • Monoflop Duration – Type: integer, Default: 1000, Unit: ms, Min: 0, Max: 4294967295
  • The time (in ms) that the pin should hold the configured value.

  • Monoflop Value – Type: boolean, Default: true
  • The desired value of the specified channel. Activated means relay closed and Deactivated means relay open.
Monoflop Pin 3/A3

Triggers a monoflop as configured

Type:
  • Commands (String)
UID:
  • tinkerforge:brickletio16:[UID]:BrickletIO16MonoflopPin3
Read only:
  • No
Predicate:
  • This channel will only be available if Pin Configuration 3/A3 is one of Output (Initial high), Output (Initial low).
Commands:
  • Accepts any string
Parameters:
  • Monoflop Duration – Type: integer, Default: 1000, Unit: ms, Min: 0, Max: 4294967295
  • The time (in ms) that the pin should hold the configured value.

  • Monoflop Value – Type: boolean, Default: true
  • The desired value of the specified channel. Activated means relay closed and Deactivated means relay open.
Monoflop Pin 4/A4

Triggers a monoflop as configured

Type:
  • Commands (String)
UID:
  • tinkerforge:brickletio16:[UID]:BrickletIO16MonoflopPin4
Read only:
  • No
Predicate:
  • This channel will only be available if Pin Configuration 4/A4 is one of Output (Initial high), Output (Initial low).
Commands:
  • Accepts any string
Parameters:
  • Monoflop Duration – Type: integer, Default: 1000, Unit: ms, Min: 0, Max: 4294967295
  • The time (in ms) that the pin should hold the configured value.

  • Monoflop Value – Type: boolean, Default: true
  • The desired value of the specified channel. Activated means relay closed and Deactivated means relay open.
Monoflop Pin 5/A5

Triggers a monoflop as configured

Type:
  • Commands (String)
UID:
  • tinkerforge:brickletio16:[UID]:BrickletIO16MonoflopPin5
Read only:
  • No
Predicate:
  • This channel will only be available if Pin Configuration 5/A5 is one of Output (Initial high), Output (Initial low).
Commands:
  • Accepts any string
Parameters:
  • Monoflop Duration – Type: integer, Default: 1000, Unit: ms, Min: 0, Max: 4294967295
  • The time (in ms) that the pin should hold the configured value.

  • Monoflop Value – Type: boolean, Default: true
  • The desired value of the specified channel. Activated means relay closed and Deactivated means relay open.
Monoflop Pin 6/A6

Triggers a monoflop as configured

Type:
  • Commands (String)
UID:
  • tinkerforge:brickletio16:[UID]:BrickletIO16MonoflopPin6
Read only:
  • No
Predicate:
  • This channel will only be available if Pin Configuration 6/A6 is one of Output (Initial high), Output (Initial low).
Commands:
  • Accepts any string
Parameters:
  • Monoflop Duration – Type: integer, Default: 1000, Unit: ms, Min: 0, Max: 4294967295
  • The time (in ms) that the pin should hold the configured value.

  • Monoflop Value – Type: boolean, Default: true
  • The desired value of the specified channel. Activated means relay closed and Deactivated means relay open.
Monoflop Pin 7/A7

Triggers a monoflop as configured

Type:
  • Commands (String)
UID:
  • tinkerforge:brickletio16:[UID]:BrickletIO16MonoflopPin7
Read only:
  • No
Predicate:
  • This channel will only be available if Pin Configuration 7/A7 is one of Output (Initial high), Output (Initial low).
Commands:
  • Accepts any string
Parameters:
  • Monoflop Duration – Type: integer, Default: 1000, Unit: ms, Min: 0, Max: 4294967295
  • The time (in ms) that the pin should hold the configured value.

  • Monoflop Value – Type: boolean, Default: true
  • The desired value of the specified channel. Activated means relay closed and Deactivated means relay open.
Monoflop Pin 8/B0

Triggers a monoflop as configured

Type:
  • Commands (String)
UID:
  • tinkerforge:brickletio16:[UID]:BrickletIO16MonoflopPin8
Read only:
  • No
Predicate:
  • This channel will only be available if Pin Configuration 8/B0 is one of Output (Initial high), Output (Initial low).
Commands:
  • Accepts any string
Parameters:
  • Monoflop Duration – Type: integer, Default: 1000, Unit: ms, Min: 0, Max: 4294967295
  • The time (in ms) that the pin should hold the configured value.

  • Monoflop Value – Type: boolean, Default: true
  • The desired value of the specified channel. Activated means relay closed and Deactivated means relay open.
Monoflop Pin 9/B1

Triggers a monoflop as configured

Type:
  • Commands (String)
UID:
  • tinkerforge:brickletio16:[UID]:BrickletIO16MonoflopPin9
Read only:
  • No
Predicate:
  • This channel will only be available if Pin Configuration 9/B1 is one of Output (Initial high), Output (Initial low).
Commands:
  • Accepts any string
Parameters:
  • Monoflop Duration – Type: integer, Default: 1000, Unit: ms, Min: 0, Max: 4294967295
  • The time (in ms) that the pin should hold the configured value.

  • Monoflop Value – Type: boolean, Default: true
  • The desired value of the specified channel. Activated means relay closed and Deactivated means relay open.
Monoflop Pin 10/B2

Triggers a monoflop as configured

Type:
  • Commands (String)
UID:
  • tinkerforge:brickletio16:[UID]:BrickletIO16MonoflopPin10
Read only:
  • No
Predicate:
  • This channel will only be available if Pin Configuration 10/B2 is one of Output (Initial high), Output (Initial low).
Commands:
  • Accepts any string
Parameters:
  • Monoflop Duration – Type: integer, Default: 1000, Unit: ms, Min: 0, Max: 4294967295
  • The time (in ms) that the pin should hold the configured value.

  • Monoflop Value – Type: boolean, Default: true
  • The desired value of the specified channel. Activated means relay closed and Deactivated means relay open.
Monoflop Pin 11/B3

Triggers a monoflop as configured

Type:
  • Commands (String)
UID:
  • tinkerforge:brickletio16:[UID]:BrickletIO16MonoflopPin11
Read only:
  • No
Predicate:
  • This channel will only be available if Pin Configuration 11/B3 is one of Output (Initial high), Output (Initial low).
Commands:
  • Accepts any string
Parameters:
  • Monoflop Duration – Type: integer, Default: 1000, Unit: ms, Min: 0, Max: 4294967295
  • The time (in ms) that the pin should hold the configured value.

  • Monoflop Value – Type: boolean, Default: true
  • The desired value of the specified channel. Activated means relay closed and Deactivated means relay open.
Monoflop Pin 12/B4

Triggers a monoflop as configured

Type:
  • Commands (String)
UID:
  • tinkerforge:brickletio16:[UID]:BrickletIO16MonoflopPin12
Read only:
  • No
Predicate:
  • This channel will only be available if Pin Configuration 12/B4 is one of Output (Initial high), Output (Initial low).
Commands:
  • Accepts any string
Parameters:
  • Monoflop Duration – Type: integer, Default: 1000, Unit: ms, Min: 0, Max: 4294967295
  • The time (in ms) that the pin should hold the configured value.

  • Monoflop Value – Type: boolean, Default: true
  • The desired value of the specified channel. Activated means relay closed and Deactivated means relay open.
Monoflop Pin 13/B5

Triggers a monoflop as configured

Type:
  • Commands (String)
UID:
  • tinkerforge:brickletio16:[UID]:BrickletIO16MonoflopPin13
Read only:
  • No
Predicate:
  • This channel will only be available if Pin Configuration 13/B5 is one of Output (Initial high), Output (Initial low).
Commands:
  • Accepts any string
Parameters:
  • Monoflop Duration – Type: integer, Default: 1000, Unit: ms, Min: 0, Max: 4294967295
  • The time (in ms) that the pin should hold the configured value.

  • Monoflop Value – Type: boolean, Default: true
  • The desired value of the specified channel. Activated means relay closed and Deactivated means relay open.
Monoflop Pin 14/B6

Triggers a monoflop as configured

Type:
  • Commands (String)
UID:
  • tinkerforge:brickletio16:[UID]:BrickletIO16MonoflopPin14
Read only:
  • No
Predicate:
  • This channel will only be available if Pin Configuration 14/B6 is one of Output (Initial high), Output (Initial low).
Commands:
  • Accepts any string
Parameters:
  • Monoflop Duration – Type: integer, Default: 1000, Unit: ms, Min: 0, Max: 4294967295
  • The time (in ms) that the pin should hold the configured value.

  • Monoflop Value – Type: boolean, Default: true
  • The desired value of the specified channel. Activated means relay closed and Deactivated means relay open.
Monoflop Pin 15/B7

Triggers a monoflop as configured

Type:
  • Commands (String)
UID:
  • tinkerforge:brickletio16:[UID]:BrickletIO16MonoflopPin15
Read only:
  • No
Predicate:
  • This channel will only be available if Pin Configuration 15/B7 is one of Output (Initial high), Output (Initial low).
Commands:
  • Accepts any string
Parameters:
  • Monoflop Duration – Type: integer, Default: 1000, Unit: ms, Min: 0, Max: 4294967295
  • The time (in ms) that the pin should hold the configured value.

  • Monoflop Value – Type: boolean, Default: true
  • The desired value of the specified channel. Activated means relay closed and Deactivated means relay open.
Edge Count Pin 0/A0

The current value of the edge counter for the selected channel

This channel will only update after the configured update interval, not on changed values.

Type:
  • Number:Dimensionless
UID:
  • tinkerforge:brickletio16:[UID]:BrickletIO16EdgeCountPin0
Read only:
  • Yes
Predicate:
  • This channel will only be available if Pin Configuration 0/A0 is one of Input with pull-up, Input without pull-up.
Parameters:
  • Edge Type – Type: Choice, Default: Rising
  • The edge type parameter configures if rising edges, falling edges or both are counted.
  • Options: Rising, Falling, Both

  • Debounce Time – Type: integer, Default: 100, Min: 0, Max: 4294967295
  • The debounce time in ms.

  • Reset Edge Count On Update – Type: boolean, Default: false
  • Enabling this will reset the edge counter after OpenHAB reads its value. Use this if you want relative edge counts per update.

  • Update Interval – Type: integer, Default: 1000, Unit: ms
  • Specifies the update interval in milliseconds. A value of 0 disables automatic updates.
Edge Count Pin 1/A1

The current value of the edge counter for the selected channel

This channel will only update after the configured update interval, not on changed values.

Type:
  • Number:Dimensionless
UID:
  • tinkerforge:brickletio16:[UID]:BrickletIO16EdgeCountPin1
Read only:
  • Yes
Predicate:
  • This channel will only be available if Pin Configuration 1/A1 is one of Input with pull-up, Input without pull-up.
Parameters:
  • Edge Type – Type: Choice, Default: Rising
  • The edge type parameter configures if rising edges, falling edges or both are counted.
  • Options: Rising, Falling, Both

  • Debounce Time – Type: integer, Default: 100, Min: 0, Max: 4294967295
  • The debounce time in ms.

  • Reset Edge Count On Update – Type: boolean, Default: false
  • Enabling this will reset the edge counter after OpenHAB reads its value. Use this if you want relative edge counts per update.

  • Update Interval – Type: integer, Default: 1000, Unit: ms
  • Specifies the update interval in milliseconds. A value of 0 disables automatic updates.

Actions

Actions can be used in rules by creating an action object. All actions return a Map<String, Object>. Returned values can be accessed by name, sometimes the type deduction needs some hints, as shown below:

val actions = getActions("tinkerforge", "tinkerforge:brickletio16:[UID]")
val hwVersion = actions.brickletIO16GetIdentity().get("hardwareVersion") as short[]
logInfo("Example", "Hardware version: " + hwVersion.get(0) + "." + hwVersion.get(1) + "." + hwVersion.get(2))

Basic Actions

brickletIO16SetPort(char port, short valueMask)
Parameters:
  • port – Type: char, Range: ['a' to 'b']
  • valueMask – Type: short, Range: [0 to 255]

Sets the output value (high or low) for a port ("a" or "b") with a bitmask (8bit). A 1 in the bitmask means high and a 0 in the bitmask means low.

For example: The value 15 or 0b00001111 will turn the pins 0-3 high and the pins 4-7 low for the specified port.

All running monoflop timers of the given port will be aborted if this function is called.

Note

This function does nothing for pins that are configured as input. Pull-up resistors can be switched on with the thing configuration.

brickletIO16GetPort(char port)
Parameters:
  • port – Type: char, Range: ['a' to 'b']
Return Map:
  • valueMask – Type: short, Range: [0 to 255]

Returns a bitmask of the values that are currently measured on the specified port. This function works if the pin is configured to input as well as if it is configured to output.

brickletIO16GetPortConfiguration(char port)
Parameters:
  • port – Type: char, Range: ['a' to 'b']
Return Map:
  • directionMask – Type: short, Range: [0 to 255]
  • valueMask – Type: short, Range: [0 to 255]

Returns a direction bitmask and a value bitmask for the specified port. A 1 in the direction bitmask means input and a 0 in the bitmask means output.

For example: A return value of (15, 51) or (0b00001111, 0b00110011) for direction and value means that:

  • pins 0 and 1 are configured as input pull-up,
  • pins 2 and 3 are configured as input default,
  • pins 4 and 5 are configured as output high
  • and pins 6 and 7 are configured as output low.
brickletIO16GetEdgeCount(short pin, boolean resetCounter)
Parameters:
  • pin – Type: short, Range: [0 to 1]
  • resetCounter – Type: boolean
Return Map:
  • count – Type: long, Range: [0 to 232 - 1]

Returns the current value of the edge counter for the selected pin on port A. You can configure the edges that are counted with the configuration of Edge Count Pin 0/A0.

If you set the reset counter to true, the count is set back to 0 directly after it is read.

New in version 2.0.3 (Plugin).

Advanced Actions

brickletIO16SetSelectedValues(char port, short selectionMask, short valueMask)
Parameters:
  • port – Type: char, Range: ['a' to 'b']
  • selectionMask – Type: short, Range: [0 to 255]
  • valueMask – Type: short, Range: [0 to 255]

Sets the output value (high or low) for a port ("a" or "b" with a bitmask, according to the selection mask. The bitmask is 8 bit long and a 1 in the bitmask means high and a 0 in the bitmask means low.

For example: The parameters ('a', 192, 128) or ('a', 0b11000000, 0b10000000) will turn pin 7 high and pin 6 low on port A, pins 0-6 will remain untouched.

Running monoflop timers for the selected pins will be aborted if this function is called.

Note

This function does nothing for pins that are configured as input. Pull-up resistors can be switched on with the thing configuration.

brickletIO16SetPortMonoflop(char port, short selectionMask, short valueMask, long time)
Parameters:
  • port – Type: char, Range: ['a' to 'b']
  • selectionMask – Type: short, Range: [0 to 255]
  • valueMask – Type: short, Range: [0 to 255]
  • time – Type: long, Unit: 1 ms, Range: [0 to 232 - 1]

Configures a monoflop of the pins specified by the second parameter as 8 bit long bitmask. The specified pins must be configured for output. Non-output pins will be ignored.

The third parameter is a bitmask with the desired value of the specified output pins. A 1 in the bitmask means high and a 0 in the bitmask means low.

The forth parameter indicates the time that the pins should hold the value.

If this function is called with the parameters ('a', 9, 1, 1500) or ('a', 0b00001001, 0b00000001, 1500): Pin 0 will get high and pin 3 will get low on port 'a'. In 1.5s pin 0 will get low and pin 3 will get high again.

A monoflop can be used as a fail-safe mechanism. For example: Lets assume you have a RS485 bus and an IO-16 Bricklet connected to one of the slave stacks. You can now call this function every second, with a time parameter of two seconds and pin 0 set to high. Pin 0 will be high all the time. If now the RS485 connection is lost, then pin 0 will get low in at most two seconds.

brickletIO16GetPortMonoflop(char port, short pin)
Parameters:
  • port – Type: char, Range: ['a' to 'b']
  • pin – Type: short, Range: [0 to 7]
Return Map:
  • value – Type: short, Range: [0 to 255]
  • time – Type: long, Unit: 1 ms, Range: [0 to 232 - 1]
  • timeRemaining – Type: long, Unit: 1 ms, Range: [0 to 232 - 1]

Returns (for the given pin) the current value and the time as set by Monoflop Pin 0/A0 as well as the remaining time until the value flips.

If the timer is not running currently, the remaining time will be returned as 0.

brickletIO16GetEdgeCountConfig(short pin)
Parameters:
  • pin – Type: short, Range: [0 to 1]
Return Map:
  • edgeType – Type: short, Range: See constants, Default: 0
  • debounce – Type: short, Unit: 1 ms, Range: [0 to 255], Default: 100

Returns the edge type and debounce time for the selected pin of port A as set by the configuration of Edge Count Pin 0/A0.

The following constants are available for this function:

For edgeType:

  • val EDGE_TYPE_RISING = 0
  • val EDGE_TYPE_FALLING = 1
  • val EDGE_TYPE_BOTH = 2

New in version 2.0.3 (Plugin).

brickletIO16GetIdentity()
Return Map:
  • uid – Type: String, Length: up to 8
  • connectedUid – Type: String, Length: up to 8
  • position – Type: char, Range: ['a' to 'h', 'i', 'z']
  • hardwareVersion – Type: short[], Length: 3
    • 0: major – Type: short, Range: [0 to 255]
    • 1: minor – Type: short, Range: [0 to 255]
    • 2: revision – Type: short, Range: [0 to 255]
  • firmwareVersion – Type: short[], Length: 3
    • 0: major – Type: short, Range: [0 to 255]
    • 1: minor – Type: short, Range: [0 to 255]
    • 2: revision – Type: short, Range: [0 to 255]
  • deviceIdentifier – Type: int, Range: [0 to 216 - 1]

Returns the UID, the UID where the Bricklet is connected to, the position, the hardware and firmware version as well as the device identifier.

The position can be 'a', 'b', 'c', 'd', 'e', 'f', 'g' or 'h' (Bricklet Port). The Raspberry Pi HAT (Zero) Brick is always at position 'i' and the Bricklet connected to an Isolator Bricklet is always as position 'z'.

The device identifier numbers can be found here