2 garage door items, 1 rollershutter card?

Hi,

I have an issue with my garage door opener

  • There is one item for up/stop (a KNX device with a relay triggering for 1 second)
  • There is one item for down/stop (a KNX device with a relay triggering for 1 second)
  • There is one sensor representing the door status

Is it possible to merge them into one, let´s say, one rollershutter card?

The rollershutter component only accepts a single item, so, no you can’t give it arbitrary items for up and down and status.

The easiest thing to do is probably to build your own card that mimics the rollershutter but with different buttons for your different items.

Other than that, you may be able to use profiles to link all of the different KNX devices into a single item that works as a rollershutter and then use that in a card.

But you can still use a rollershutter item, you just have to process the commands in a rule.
I have a rollershutter item that is not connected to anything and two rules that catch the open and close commands to this item and trigger the corresponding relays.

1 Like

That seems to be the easiest solution for me.
Added an empty String item and a Javascript rule

console.log (items.Garage_item.state)

switch (items.Garage_item.state){
  case "UP":
    console.log("Garagentor HOCH");
    items.KNX_Garage_Garagentor_Taster_Hoch.sendCommand("ON")    
    break;
    
  case "DOWN":
    console.log("Garagentor RUNTER");
    items.KNX_Garage_Garagentor_Taster_Runter.sendCommand("ON")
    break;
    
  case "STOP":
    console.log("Garagentor STOP (oder runter");
    items.KNX_Garage_Garagentor_Taster_Runter.sendCommand("ON")
    break;
    
  default:
    break;
}

but why do you use a string item and not a rollershutter item?
With a rollershutter item you can make use of the widgets.

I thought, by using a String item, the switch case would be easier.
Is it “just” the rollershutter item that you suggest to replace and the script stays the same?
Maybe I didn´t see the advantage. Or you could show me an example…

My page looks like this (with a rollershutter)

yes, create an empty rollershutter item and process the commands it receives from the component widget in a rule just like yours.