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 Industrial Analog Out Bricklet. General information and technical specifications for the Industrial 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:brickletindustrialanalogout:[UID]
Required firmware version:
- 2.0.0
Firmware update supported:
- yes
Channels: Actions: Parameters:
- Output Configuration – Type: Choice, Default: Voltage
- Sets the output configuration. As the output voltage and current level depend on each other, only one can be controlled at the same time.
- Options: Current, Voltage
- Voltage Range – Type: Choice, Default: 0 To 10V
- Configures the voltage range. The resolution will always be 12 bit. This means, that the precision is higher with a smaller range.
- Options: 0 To 5V, 0 To 10V
- Current Range – Type: Choice, Default: 4 To 20mA
- Configures the current range. The resolution will always be 12 bit. This means, that the precision is higher with a smaller range.
- Options: 4 To 20mA, 0 To 20mA, 0 To 24mA
Output
¶Enables/disables the output of voltage and current.
Type:
- Switch
UID:
- tinkerforge:brickletindustrialanalogout:[UID]:BrickletIndustrialAnalogOutEnabled
Read only:
- No
Output Current
¶The output current. The output current and output voltage are linked. Changing the output current also changes the output voltage.
Type:
- Number:ElectricCurrent
UID:
- tinkerforge:brickletindustrialanalogout:[UID]:BrickletIndustrialAnalogOutCurrent
Read only:
- No
Predicate:
- This channel will only be available if Output Configuration is Current.
Unit:
- Ampere
Range:
- 0 Ampere to 0.024 Ampere (Step 1e-06 Ampere)
Output Voltage
¶The output voltage. The output voltage and output current are linked. Changing the output voltage also changes the output current.
Type:
- Number:ElectricPotential
UID:
- tinkerforge:brickletindustrialanalogout:[UID]:BrickletIndustrialAnalogOutVoltage
Read only:
- No
Predicate:
- This channel will only be available if Output Configuration is Voltage.
Unit:
- Volt
Range:
- 0 Volt to 10 Volt (Step 0.001 Volt)
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:brickletindustrialanalogout:[UID]")
val hwVersion = actions.brickletIndustrialAnalogOutGetIdentity().get("hardwareVersion") as short[]
logInfo("Example", "Hardware version: " + hwVersion.get(0) + "." + hwVersion.get(1) + "." + hwVersion.get(2))
brickletIndustrialAnalogOutEnable
()¶Enables the output of voltage and current.
The default is disabled.
brickletIndustrialAnalogOutDisable
()¶Disables the output of voltage and current.
The default is disabled.
brickletIndustrialAnalogOutIsEnabled
()¶Return Map: |
|
---|
Returns true if output of voltage and current is enabled, false otherwise.
brickletIndustrialAnalogOutGetVoltage
()¶Return Map: |
|
---|
Returns the voltage as set by Output Voltage
.
brickletIndustrialAnalogOutGetCurrent
()¶Return Map: |
|
---|
Returns the current as set by Output Current
.
brickletIndustrialAnalogOutGetConfiguration
()¶Return Map: |
|
---|
Returns the configuration as set by the thing configuration.
The following constants are available for this function:
For voltageRange:
For currentRange:
brickletIndustrialAnalogOutGetIdentity
()¶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.