mirror of
https://github.com/openhab/openhab-addons.git
synced 2025-01-10 15:11:59 +01:00
[lcn] Fix status message of RollerShutter inverting (#8735)
* [lcn] Fix status message of RollerShutter inverting The status of RollerShutter was not inverted when invertUpDown=true. Fixes #8680 Signed-off-by: Fabian Wolter <github@fabian-wolter.de>
This commit is contained in:
parent
5fe7cc5810
commit
ae1d59cf99
@ -112,7 +112,8 @@ public class LcnModuleHandler extends BaseThingHandler {
|
||||
for (Channel channel : thing.getChannels()) {
|
||||
Object unitObject = channel.getConfiguration().get("unit");
|
||||
Object parameterObject = channel.getConfiguration().get("parameter");
|
||||
Object invertConfig = channel.getConfiguration().get("invertState");
|
||||
Object invertState = channel.getConfiguration().get("invertState");
|
||||
Object invertUpDown = channel.getConfiguration().get("invertUpDown");
|
||||
|
||||
// Initialize value converters
|
||||
if (unitObject instanceof String) {
|
||||
@ -130,7 +131,7 @@ public class LcnModuleHandler extends BaseThingHandler {
|
||||
}
|
||||
|
||||
// Initialize inversion converter
|
||||
if (invertConfig instanceof Boolean && invertConfig.equals(true)) {
|
||||
if (Boolean.TRUE.equals(invertState) || Boolean.TRUE.equals(invertUpDown)) {
|
||||
converters.put(channel.getUID(), INVERSION_CONVERTER);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user