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 Accelerometer Bricklet. General information and technical specifications for the Accelerometer Bricklet are summarized in its hardware description.
An installation guide for the openHAB API bindings is part of their general description.
UID:
- tinkerforge:brickletaccelerometer:[UID]
Required firmware version:
- 2.0.0
Firmware update supported:
- yes
Channels: Actions: Parameters:
- Data Rate – Type: Choice, Default: 100Hz
- The data rate of 0Hz to 1600Hz. Decreasing data rate or full scale range will also decrease the noise on the data.
- Options: Off, 3Hz, 6Hz, 12Hz, 25Hz, 50Hz, 100Hz, 400Hz, 800Hz, 1600Hz
- Full Scale Range – Type: Choice, Default: 4g
- Full scale range of ±2gₙ up to ±16gₙ. Decreasing data rate or full scale range will also decrease the noise on the data.
- Options: 2g, 4g, 6g, 8g, 16g
- Filter Bandwidth – Type: Choice, Default: 200Hz
- Filter bandwidth between 50Hz and 800Hz.
- Options: 800Hz, 400Hz, 200Hz, 50Hz
- Acceleration Update Interval – Type: integer, Default: 1000, Unit: ms, Min: 0, Max: 4294967295
- Specifies the update interval for the acceleration in milliseconds. A value of 0 disables automatic updates.
Acceleration X
¶The acceleration in g (1g = 9.80665m/s²), not to be confused with grams.
Type:
- Number:Acceleration
UID:
- tinkerforge:brickletaccelerometer:[UID]:BrickletAccelerometerAccelerationX
Read only:
- Yes
Unit:
- Standard Gravity
Acceleration Y
¶The acceleration in g (1g = 9.80665m/s²), not to be confused with grams.
Type:
- Number:Acceleration
UID:
- tinkerforge:brickletaccelerometer:[UID]:BrickletAccelerometerAccelerationY
Read only:
- Yes
Unit:
- Standard Gravity
Acceleration Z
¶The acceleration in g (1g = 9.80665m/s²), not to be confused with grams.
Type:
- Number:Acceleration
UID:
- tinkerforge:brickletaccelerometer:[UID]:BrickletAccelerometerAccelerationZ
Read only:
- Yes
Unit:
- Standard Gravity
Temperature
¶The temperature of the accelerometer
This channel will only update after the configured update interval, not on changed values.
Type:
- Number:Temperature
UID:
- tinkerforge:brickletaccelerometer:[UID]:BrickletAccelerometerTemperature
Read only:
- Yes
Unit:
- Celsius
Range:
- -103 Celsius to 152 Celsius (Step 1 Celsius)
Parameters:
- Update Interval – Type: integer, Default: 1000, Unit: ms
- Specifies the update interval in milliseconds. A value of 0 disables automatic updates.
LED
¶Enables/Disables the LED on the Bricklet.
Type:
- Switch
UID:
- tinkerforge:brickletaccelerometer:[UID]:BrickletAccelerometerLED
Read only:
- No
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:brickletaccelerometer:[UID]")
val hwVersion = actions.brickletAccelerometerGetIdentity().get("hardwareVersion") as short[]
logInfo("Example", "Hardware version: " + hwVersion.get(0) + "." + hwVersion.get(1) + "." + hwVersion.get(2))
brickletAccelerometerGetAcceleration
()¶Return Map: |
|
---|
Returns the acceleration in x, y and z direction. The values are given in gₙ/1000 (1gₙ = 9.80665m/s²). The range is configured with the thing configuration.
If you want to get the acceleration periodically, it is recommended
to use the Acceleration X
channel and set the period with
the thing configuration.
brickletAccelerometerGetTemperature
()¶Return Map: |
|
---|
Returns the temperature of the accelerometer.
brickletAccelerometerLEDOn
()¶Enables the LED on the Bricklet.
brickletAccelerometerLEDOff
()¶Disables the LED on the Bricklet.
brickletAccelerometerIsLEDOn
()¶Return Map: |
|
---|
Returns true if the LED is enabled, false otherwise.
brickletAccelerometerGetConfiguration
()¶Return Map: |
|
---|
Returns the configuration as set by the thing configuration.
The following constants are available for this function:
For dataRate:
For fullScale:
For filterBandwidth:
brickletAccelerometerGetIdentity
()¶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.