Warning
The openHAB bindings are still in beta, but the development was stopped.
This is the description of the openHAB API bindings for the Analog Out Bricklet. General information and technical specifications for the Analog Out Bricklet are summarized in its hardware description.
An installation guide for the openHAB API bindings is part of their general description.
UID:
- tinkerforge:brickletanalogout:[UID]
Required firmware version:
- 2.0.0
Firmware update supported:
- yes
Channels: Actions:
Voltage
¶The output voltage. The possible range is 0V to 5V. Sending a command to this channel will set the Mode to Analog Value.
Type:
- Number:ElectricPotential
UID:
- tinkerforge:brickletanalogout:[UID]:BrickletAnalogOutVoltage
Read only:
- No
Unit:
- Volt
Range:
- 0 Volt to 5 Volt (Step 0.001 Volt)
Mode
¶The mode of the output. Setting the mode to Analog Value will result in an output voltage of 0. You can jump to a higher output voltage directly by sending a command to the Voltage Channel.
Type:
- Choice
UID:
- tinkerforge:brickletanalogout:[UID]:BrickletAnalogOutMode
Read only:
- No
Options:
- Analog Value, 1k To Ground, 100k To Ground, 500k To Ground
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:brickletanalogout:[UID]")
val hwVersion = actions.brickletAnalogOutGetIdentity().get("hardwareVersion") as short[]
logInfo("Example", "Hardware version: " + hwVersion.get(0) + "." + hwVersion.get(1) + "." + hwVersion.get(2))
brickletAnalogOutSetVoltage
(int voltage)¶Parameters: |
|
---|
Sets the voltage. Calling this function will set
the mode to 0 (see Mode
).
brickletAnalogOutGetVoltage
()¶Return Map: |
|
---|
Returns the voltage as set by Voltage
.
brickletAnalogOutSetMode
(short mode)¶Parameters: |
|
---|
Sets the mode of the analog value. Possible modes:
Voltage
is applied)Setting the mode to 0 will result in an output voltage of 0 V. You can jump
to a higher output voltage directly by calling Voltage
.
The following constants are available for this function:
For mode:
brickletAnalogOutGetIdentity
()¶Return Map: |
|
---|
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.