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:
-
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 -
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