Rollershutter item over ITGW-433

Hello,

I want to control different Intertechno switches and rollershutter controllers with OH over the intertechno Gateway ITGW-433. The gateway is listening for UDP command. Therefore, I have created different Switch Items, which are working fine:

Switch RLKueche "RL Kueche" {udp=">[ON:10.2.11.229:49880:'0,0,6,0,256,67,0,1,10,1,5,1,1,1,5,1,1,1,5,1,1,1,5,1,1,1,1,1,5,1,5,1,1,1,1,1,5,1,5,1,1,1,1,1,5,1,5,1,1,1,1,1,5,1,1,1,5,1,1,1,5,1,1,1,5,1,1,1,5,1,1,1,5,1,1,1,5,1,1,1,5,1,1,1,5,1,1,1,5,1,1,1,5,1,5,1,1,1,1,1,5,1,1,1,5,1,1,1,5,1,5,1,1,1,1,1,5,1,5,1,1,1,1,1,5,1,5,1,1,1,1,1,5,1,5,1,1,1,39,0'], >[OFF:10.2.11.229:49880:'0,0,6,0,256,67,0,1,10,1,5,1,1,1,5,1,1,1,5,1,1,1,5,1,1,1,1,1,5,1,5,1,1,1,1,1,5,1,5,1,1,1,1,1,5,1,5,1,1,1,1,1,5,1,1,1,5,1,1,1,5,1,1,1,5,1,1,1,5,1,1,1,5,1,1,1,5,1,1,1,5,1,1,1,5,1,1,1,5,1,1,1,5,1,5,1,1,1,1,1,5,1,1,1,5,1,1,1,5,1,5,1,1,1,1,1,5,1,1,1,5,1,1,1,5,1,5,1,1,1,1,1,5,1,5,1,1,1,39,0']"}

Defining the rollershutter as a switch item is working. But now I would like to use the item rollershutter to control my rollershutter. In the following way:

  • Up: UDP packet with UP-command is send
  • Down: UDP packet with the DOWN-command is send
  • Stop: if the shutter is going down, another UPD-Down command will stop it. If the shutter is going up, another UPD-up command will stop it.

The aim is to close a rollershutter only for 60%.

My first trial (where stop will just send a down command so it will only work when shutter is going down) is unfortunately not working:

Rollershutter RLKueche {udp=">[UP:10.2.11.229:49880:'0,0,6,0,256,67,0,1,10,1,5,1,1,1,5,1,1,1,5,1,1,1,5,1,1,1,1,1,5,1,5,1,1,1,1,1,5,1,5,1,1,1,1,1,5,1,5,1,1,1,1,1,5,1,1,1,5,1,1,1,5,1,1,1,5,1,1,1,5,1,1,1,5,1,1,1,5,1,1,1,5,1,1,1,5,1,1,1,5,1,1,1,5,1,5,1,1,1,1,1,5,1,1,1,5,1,1,1,5,1,5,1,1,1,1,1,5,1,5,1,1,1,1,1,5,1,5,1,1,1,1,1,5,1,5,1,1,1,39,0'], >[STOP:10.2.11.229:49880:'0,0,6,0,256,67,0,1,10,1,5,1,1,1,5,1,1,1,5,1,1,1,5,1,1,1,1,1,5,1,5,1,1,1,1,1,5,1,5,1,1,1,1,1,5,1,5,1,1,1,1,1,5,1,1,1,5,1,1,1,5,1,1,1,5,1,1,1,5,1,1,1,5,1,1,1,5,1,1,1,5,1,1,1,5,1,1,1,5,1,1,1,5,1,5,1,1,1,1,1,5,1,1,1,5,1,1,1,5,1,5,1,1,1,1,1,5,1,5,1,1,1,1,1,5,1,5,1,1,1,1,1,5,1,5,1,1,1,39,0'], >[DOWN:10.2.11.229:49880:'0,0,6,0,256,67,0,1,10,1,5,1,1,1,5,1,1,1,5,1,1,1,5,1,1,1,1,1,5,1,5,1,1,1,1,1,5,1,5,1,1,1,1,1,5,1,5,1,1,1,1,1,5,1,1,1,5,1,1,1,5,1,1,1,5,1,1,1,5,1,1,1,5,1,1,1,5,1,1,1,5,1,1,1,5,1,1,1,5,1,1,1,5,1,5,1,1,1,1,1,5,1,1,1,5,1,1,1,5,1,5,1,1,1,1,1,5,1,1,1,5,1,1,1,5,1,5,1,1,1,1,1,5,1,5,1,1,1,39,0']"}

Now I have two questions:

  1. Any idea, why my sitemap is not working?
    error message: Configuration model ‘home.sitemap’ has errors, therefore ignoring it: [16,9]: required (…)+ loop did not match anything at input ‘Rollershutter’
    [18,1]: extraneous input ‘}’ expecting EOF

  2. How could I solve the Stop event which should be dependend on the current direction of the shutter?

Thanks a lot for all your ideas
Christoph

  1. You don’t post your sitemap line that is generating the error, but the error makes it clear you are trying to use “Rollershutter” as a sitemap element type. There is no such element. See https://www.openhab.org/docs/configuration/sitemaps.html#element-types for the supported elements. People usually use a Slider or a Setpoint for Rollershutter controls.

  2. It won’t be easy. You will need to have proxy Items and Rules that remember the previous command to know what direction the rollershutter is going and issue the appropriate command.

One thing to note is that if you cannot send a %value to the rollershutter to make it open to a certain percent, you will have to rely on timing which will not be super exact but might be close enough. There have been at least two examples posted on the forum.