openHAB - IO-16 Bricklet

Bemerkung

Die openHAB-Dokumentation ist nur auf Englisch verfügbar.

Warnung

The openHAB bindings are still in beta, but the development was stopped.

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 – Type: Choice, Default: Input with pull-up
  • Configures pin 0 as input or output. 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 – Type: Choice, Default: Input with pull-up
  • Configures pin 1 as input or output. 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 – Type: Choice, Default: Input with pull-up
  • Configures pin 2 as input or output. 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 – Type: Choice, Default: Input with pull-up
  • Configures pin 3 as input or output. 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 – Type: Choice, Default: Input with pull-up
  • Configures pin 4 as input or output. 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 – Type: Choice, Default: Input with pull-up
  • Configures pin 5 as input or output. 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 – Type: Choice, Default: Input with pull-up
  • Configures pin 6 as input or output. 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 – Type: Choice, Default: Input with pull-up
  • Configures pin 7 as input or output. 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 – Type: Choice, Default: Input with pull-up
  • Configures pin 8 as input or output. 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 – Type: Choice, Default: Input with pull-up
  • Configures pin 9 as input or output. 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 – Type: Choice, Default: Input with pull-up
  • Configures pin 10 as input or output. 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 – Type: Choice, Default: Input with pull-up
  • Configures pin 11 as input or output. 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 – Type: Choice, Default: Input with pull-up
  • Configures pin 12 as input or output. 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 – Type: Choice, Default: Input with pull-up
  • Configures pin 13 as input or output. 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 – Type: Choice, Default: Input with pull-up
  • Configures pin 14 as input or output. 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 – Type: Choice, Default: Input with pull-up
  • Configures pin 15 as input or output. 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 0

The logic level that is currently measured on the pin.

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

The logic level that is currently measured on the pin.

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

The logic level that is currently measured on the pin.

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

The logic level that is currently measured on the pin.

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

The logic level that is currently measured on the pin.

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

The logic level that is currently measured on the pin.

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

The logic level that is currently measured on the pin.

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

The logic level that is currently measured on the pin.

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

The logic level that is currently measured on the pin.

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

The logic level that is currently measured on the pin.

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

The logic level that is currently measured on the pin.

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

The logic level that is currently measured on the pin.

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

The logic level that is currently measured on the pin.

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

The logic level that is currently measured on the pin.

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

The logic level that is currently measured on the pin.

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

The logic level that is currently measured on the pin.

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

The logic level that is currently set on the pin.

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

The logic level that is currently set on the pin.

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

The logic level that is currently set on the pin.

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

The logic level that is currently set on the pin.

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

The logic level that is currently set on the pin.

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

The logic level that is currently set on the pin.

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

The logic level that is currently set on the pin.

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

The logic level that is currently set on the pin.

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

The logic level that is currently set on the pin.

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

The logic level that is currently set on the pin.

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

The logic level that is currently set on the pin.

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

The logic level that is currently set on the pin.

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

The logic level that is currently set on the pin.

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

The logic level that is currently set on the pin.

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

The logic level that is currently set on the pin.

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

The logic level that is currently set on the pin.

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

Triggers a monoflop as configured.

Type:
  • Commands (String)
UID:
  • tinkerforge:brickletio16:[UID]:BrickletIO16Monoflop0
Read only:
  • No
Predicate:
  • This channel will only be available if Pin Configuration 0 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 that the pin should hold the configured value.

  • Monoflop Value – Type: boolean, Default: true
  • The desired value of the pin.
Monoflop 1

Triggers a monoflop as configured.

Type:
  • Commands (String)
UID:
  • tinkerforge:brickletio16:[UID]:BrickletIO16Monoflop1
Read only:
  • No
Predicate:
  • This channel will only be available if Pin Configuration 1 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 that the pin should hold the configured value.

  • Monoflop Value – Type: boolean, Default: true
  • The desired value of the pin.
Monoflop 2

Triggers a monoflop as configured.

Type:
  • Commands (String)
UID:
  • tinkerforge:brickletio16:[UID]:BrickletIO16Monoflop2
Read only:
  • No
Predicate:
  • This channel will only be available if Pin Configuration 2 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 that the pin should hold the configured value.

  • Monoflop Value – Type: boolean, Default: true
  • The desired value of the pin.
Monoflop 3

Triggers a monoflop as configured.

Type:
  • Commands (String)
UID:
  • tinkerforge:brickletio16:[UID]:BrickletIO16Monoflop3
Read only:
  • No
Predicate:
  • This channel will only be available if Pin Configuration 3 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 that the pin should hold the configured value.

  • Monoflop Value – Type: boolean, Default: true
  • The desired value of the pin.
Monoflop 4

Triggers a monoflop as configured.

Type:
  • Commands (String)
UID:
  • tinkerforge:brickletio16:[UID]:BrickletIO16Monoflop4
Read only:
  • No
Predicate:
  • This channel will only be available if Pin Configuration 4 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 that the pin should hold the configured value.

  • Monoflop Value – Type: boolean, Default: true
  • The desired value of the pin.
Monoflop 5

Triggers a monoflop as configured.

Type:
  • Commands (String)
UID:
  • tinkerforge:brickletio16:[UID]:BrickletIO16Monoflop5
Read only:
  • No
Predicate:
  • This channel will only be available if Pin Configuration 5 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 that the pin should hold the configured value.

  • Monoflop Value – Type: boolean, Default: true
  • The desired value of the pin.
Monoflop 6

Triggers a monoflop as configured.

Type:
  • Commands (String)
UID:
  • tinkerforge:brickletio16:[UID]:BrickletIO16Monoflop6
Read only:
  • No
Predicate:
  • This channel will only be available if Pin Configuration 6 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 that the pin should hold the configured value.

  • Monoflop Value – Type: boolean, Default: true
  • The desired value of the pin.
Monoflop 7

Triggers a monoflop as configured.

Type:
  • Commands (String)
UID:
  • tinkerforge:brickletio16:[UID]:BrickletIO16Monoflop7
Read only:
  • No
Predicate:
  • This channel will only be available if Pin Configuration 7 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 that the pin should hold the configured value.

  • Monoflop Value – Type: boolean, Default: true
  • The desired value of the pin.
Monoflop 8

Triggers a monoflop as configured.

Type:
  • Commands (String)
UID:
  • tinkerforge:brickletio16:[UID]:BrickletIO16Monoflop8
Read only:
  • No
Predicate:
  • This channel will only be available if Pin Configuration 8 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 that the pin should hold the configured value.

  • Monoflop Value – Type: boolean, Default: true
  • The desired value of the pin.
Monoflop 9

Triggers a monoflop as configured.

Type:
  • Commands (String)
UID:
  • tinkerforge:brickletio16:[UID]:BrickletIO16Monoflop9
Read only:
  • No
Predicate:
  • This channel will only be available if Pin Configuration 9 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 that the pin should hold the configured value.

  • Monoflop Value – Type: boolean, Default: true
  • The desired value of the pin.
Monoflop 10

Triggers a monoflop as configured.

Type:
  • Commands (String)
UID:
  • tinkerforge:brickletio16:[UID]:BrickletIO16Monoflop10
Read only:
  • No
Predicate:
  • This channel will only be available if Pin Configuration 10 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 that the pin should hold the configured value.

  • Monoflop Value – Type: boolean, Default: true
  • The desired value of the pin.
Monoflop 11

Triggers a monoflop as configured.

Type:
  • Commands (String)
UID:
  • tinkerforge:brickletio16:[UID]:BrickletIO16Monoflop11
Read only:
  • No
Predicate:
  • This channel will only be available if Pin Configuration 11 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 that the pin should hold the configured value.

  • Monoflop Value – Type: boolean, Default: true
  • The desired value of the pin.
Monoflop 12

Triggers a monoflop as configured.

Type:
  • Commands (String)
UID:
  • tinkerforge:brickletio16:[UID]:BrickletIO16Monoflop12
Read only:
  • No
Predicate:
  • This channel will only be available if Pin Configuration 12 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 that the pin should hold the configured value.

  • Monoflop Value – Type: boolean, Default: true
  • The desired value of the pin.
Monoflop 13

Triggers a monoflop as configured.

Type:
  • Commands (String)
UID:
  • tinkerforge:brickletio16:[UID]:BrickletIO16Monoflop13
Read only:
  • No
Predicate:
  • This channel will only be available if Pin Configuration 13 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 that the pin should hold the configured value.

  • Monoflop Value – Type: boolean, Default: true
  • The desired value of the pin.
Monoflop 14

Triggers a monoflop as configured.

Type:
  • Commands (String)
UID:
  • tinkerforge:brickletio16:[UID]:BrickletIO16Monoflop14
Read only:
  • No
Predicate:
  • This channel will only be available if Pin Configuration 14 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 that the pin should hold the configured value.

  • Monoflop Value – Type: boolean, Default: true
  • The desired value of the pin.
Monoflop 15

Triggers a monoflop as configured.

Type:
  • Commands (String)
UID:
  • tinkerforge:brickletio16:[UID]:BrickletIO16Monoflop15
Read only:
  • No
Predicate:
  • This channel will only be available if Pin Configuration 15 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 that the pin should hold the configured value.

  • Monoflop Value – Type: boolean, Default: true
  • The desired value of the pin.
Edge Count 0

The current value of the edge counter of the pin.

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

Type:
  • Number:Dimensionless
UID:
  • tinkerforge:brickletio16:[UID]:BrickletIO16EdgeCount0
Read only:
  • Yes
Predicate:
  • This channel will only be available if Pin Configuration 0 is one of Input with pull-up, Input without pull-up.
Parameters:
  • Edge Type – Type: Choice, Default: Rising
  • 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 is the minimum time between two count increments.

  • Reset Edge Counter On Update – Type: boolean, Default: false
  • Enabling this will reset the edge counter after openHAB reads its value. Use this if you want relative 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 1

The current value of the edge counter of the pin.

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

Type:
  • Number:Dimensionless
UID:
  • tinkerforge:brickletio16:[UID]:BrickletIO16EdgeCount1
Read only:
  • Yes
Predicate:
  • This channel will only be available if Pin Configuration 1 is one of Input with pull-up, Input without pull-up.
Parameters:
  • Edge Type – Type: Choice, Default: Rising
  • 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 is the minimum time between two count increments.

  • Reset Edge Counter On Update – Type: boolean, Default: false
  • Enabling this will reset the edge counter after openHAB reads its value. Use this if you want relative 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.

Bemerkung

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 0.

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

Neu 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.

Bemerkung

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 0 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 0.

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

Neu 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', '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). A Bricklet connected to an Isolator Bricklet is always at position 'z'.

The device identifier numbers can be found here