Hi guys!
I’m trying to set up my KNX garage door in HA. I integrated the door as different switches and sensors and as well as a cover entity. I have a Button in my Lovelace and I want that the Garagedoor opens or closes if I hit the button. As there is no explicit “start” command, instead there are separate commands for open / close, I tried to send a 1 or 0 as payload dependent on to state of the door.
Okay figured it out by myself. It has to be a java Template, not a Jinja Template due to the custom button card. Now it works. Maybe aweful solution but works
I use the status object for the second line. Have a template in place. If status 100% it shows Closed, if its something between 1-99% it shows the exact percentage and if it’s 0 it shows open