Hello all,
with openHAB 2 I used a nanoCUL USB device with the Intertechno Binding to control several power outlets from DUEWI and other manufacturers successfully. Now I migrated my installation to openHAB 3.1.0 Release Build, where the Intertechno binding is no longer available. So I installed the serial binding and it is initialized and seems to be running:
2021-08-29 18:20:48.138 [DEBUG] [internal.handler.SerialBridgeHandler] - Serial port '/dev/ttyUSB0' charset 'ISO-8859-1' set
When I send the IT code from the shell to the device, the outlet is switching as expected:
Code:
echo is00000F0FFFFF > /dev/ttyUSB0
events.log:
2021-08-29 20:34:46.964 [INFO ] [openhab.event.ChannelTriggeredEvent ] - serial:serialBridge:nanoCUL866:data triggered PRESSED
2021-08-29 20:34:46.966 [INFO ] [openhab.event.ItemCommandEvent ] - Item 'SerialBridge_EinfacheTaste' received command ON
2021-08-29 20:34:46.966 [INFO ] [openhab.event.ItemStateChangedEvent ] - Item 'SerialBridge_StringData' changed from is00000F0FFFF0
to is00000F0FFFFF
2021-08-29 20:34:46.967 [INFO ] [openhab.event.ItemStateChangedEvent ] - Item 'SerialBridge_BinaryData' changed from data:application/octet-stream;base64,aXMwMDAwMEYwRkZGRjANCg== to data:application/octet-stream;base64,aXMwMDAwMEYwRkZGRkYNCg==
2021-08-29 20:34:46.967 [INFO ] [penhab.event.ItemStatePredictedEvent] - Item 'SerialBridge_EinfacheTaste' predicted to become ON
I created a switch item linked to the switch channel:
When I press the switch I see these entries in the logs:
events.log:
2021-08-29 20:34:46.964 [INFO ] [openhab.event.ChannelTriggeredEvent ] - serial:serialBridge:nanoCUL866:data triggered PRESSED
2021-08-29 20:34:46.966 [INFO ] [openhab.event.ItemCommandEvent ] - Item 'SerialBridge_EinfacheTaste' received command ON
2021-08-29 20:34:46.966 [INFO ] [openhab.event.ItemStateChangedEvent ] - Item 'SerialBridge_StringData' changed from is00000F0FFFF0
to is00000F0FFFFF
openhab.log:
2021-08-29 20:36:30.142 [DEBUG] [erial.internal.channel.DeviceChannel] - Mapped command is 'is00000F0FFFFF'
2021-08-29 20:36:30.151 [DEBUG] [internal.handler.SerialBridgeHandler] - Writing 'is00000F0FFFFF' to serial port /dev/ttyUSB0
The outlet is not switched on or off. I also tried the UTF-8 encoding in the Serial Bridge without any change.
What is the trick to get this running?
Regards Christoph



