Shelly Plus 2PM as shutter - no rollerPos channel?

Hi,
I’m on OH 4.2.2 and am using several Shelly 25 as rollershutter.
One of them got broke and I had to change it with the new Shelly Plus 2PM.

In the binding docu, there is a rollerPos channel documented which I used for several rules with the Shelly 25 working as intended.
With the new one, I got an error msg in OH, that the channel is not provided. If I add the Shelly thing via WebUI instead of PaperUI, the channel indeed is not listed. Only control can be used.

At the end I need an item for the shelly which gives we mathematically the information of 100-value of #control-channel.

Any help appreciated!
And happy father’s day :wink:

The 2PM should have the roller#control channel. You can send commands like UP, DOWN or a position as numeric. It always holds the position as a numeric value.

Hi,

thank you for your reply - yes. control is provided - as I also wrote in my OP.
But the former #rollerPos had an “inverted” position value, eg if I opened the shutter by 10% #rollerPos was 10 and control 90.
If #rollerPos is no longer supported (although documentation says it is I’m looking for a way to created a virtual item that provides the calculated value #rollerPos has provided with the shelly 2.5!

That’s can be realized nicely with a profile

  • create an additional item under the control-channel
  • choose ecmaScript as profile
  • enter in the field Thing To Item Transformation:
    |100-parseFloat(input)
  • change the type of the item to numeric