Hey guys.
I would to build a Button in my view that sends a 0 and 1 to a group adress in KNX and the state of the button should be like the current value of the KNX group adress.
For sending and reading a KNX Value I found something:
https://www.home-assistant.io/integrations/knx/#services
I could also find the way how to build a toggle switch
https://www.home-assistant.io/integrations/switch.template/#toggle-switch
But I have not found the solution to set the state of this switch by the read KNX value.
Does anyone have an idea, how to do this? Or am I wrong by using a switch for ths scenario?
Thank you for your help