Hello,
- Platform information:
- Hardware: RaspberryPi 4
- OS: Docker Image
- Java Runtime Environment: Docker Image for 4.3
- openHAB version: 4.3
- Please post configurations (if applicable):
- Item: Number OfficeBlind_angle
- Binding: GitHub - docbender/openHAB-Simatic: openHAB binding for Siemens Simatic S7 PLC
I have a simple item (type: Number) which is linked to Simatic thing channel. Channel type is chNumber (uint32). Link profile is default. No unit.
When I change value in PLC => item is updated in OpenHab.
When I change value on item (directly in semantic model UI) or in Widget (oh-button Action:command) => value in PLC is not updated. Only value in item itself is changed. What am I missing?
I have also another item with linked channel, but the type is Rollershutter. This works.
I checked source code for the binding and ThingHandler has a override for method handleCommand. First line is a debug message:
public void handleCommand(ChannelUID channelUID, Command command) {
logger.debug("{} - Command {}({}) for channel {}", thing.getLabel(), command, command.getClass(), channelUID);
If this method is not called from OpenHab, no data will be written to PLC.
When I control Rollershutter in OpenHab, I can see this debug message in the OpenHab Log.
But when I try to change my item of type Number. The message is not there.
Why Number item does not send update to Binding?
I already tried to change item dimensions or add “Setpoint” tag or set Auto-Update to true/false but with no success.
Thanks for help.