@sdetweil Thank you. That helped me unterstanding a bit more.
But it still seems a little bit far away for me for the moment:-)
Maybe I just found an alternative method. I played around with MMM-Touch a little.
The module has a possiblity to change the notification to send, the next time the button is pressed.
So if the button is pressed an light is turned on, than the notification send next time when the button is pressed can change to “turn off”.
MMM-Touch - on notification
Unfortunately it seems like the module only works with one button.
What is your opinion on this module?
Could you please have a look if I am right with one button only?
Will it be possible to install multiple instances like MMM-Touch1, 2, 3 … or even add some buttons customizing the code?
Thanks again.