Modbus binding of rollershutter

Hi,

Sorry for my late reply but currently I only have limited time for this topic.

  1. When you have a look at ModbusGenericBindingProvider.java::validateItemType(...) you will see that RollershutterItem.class is not supported. That means whatever you do with Rollershutter items and Modbus binding will not work.

  2. So I took the decision to implement the modbus Rollershutter binding by my own.

  3. How does it work: The Modbus binding needs to be configured as follows:
    { modbus:slave1:>readReg:<writeReg) }

    readReg: Percent: 0-100 state of rollershutter set by MODBUS controller
    writeReg: UP/DOWN cmd (UP value++ / DOWN value–)
    writeReg+1: STOP cmd (value=1, must be reset by MODBUS controller)

As you can see I need 2 consecutive writeReg to control the rollershutter. This was the only way to have a quick and simple implementation inside the modus-binding module.
Furthermore it is important to know that both writeReg needs to be cleared with ZERO after the command has been processed by the modus controller.

  1. I have to check how I can deploy my code to the github-repository. Or am I allowed to upload my SNAPSHOT version directly here in this post?

Cheers.