Hi MihaiC,
It is possible to have both physical switch and Home assistant switch to seamlessly work together. With only 1 communication method in place. In the Logo I have a network input and output on the same address, so whenever a physical switch is used, the output changes on HA as well, and vice versa.
I have used the mechanism from this post in my logo program and it works quite well: link to post