I'm completely new to world of IoT so it could be the case that my question has been asked a couple of times. However, I didn't manage to find a working answer.
I have a Raspberry Pi running Openhab2 and an ESP with ESPEasy. For Testing I connected a Button to the ESP. It works perfectly and I can see that it is toggling on the Openhab Web interface.
Unfortunately pressing the switch on the web interface causes trouble. When I press the button connected to the ESP again, it won't toggle the first time (It sends a 1 or 0 but the value has changed before by the Openhab UI).
I had the idea to trigger an event everytime you press the switch on the web interface so that the ESP thinks it gets pressed.
I found a method called inputswitchstate but it didn't have any effect.
Anyone who solved the problem?
Thanks in advance and sorry if the description is not precise enough
