Xiaomi door/window sensor
Installation via Domoticz:
To be able to use this sensor in Domoticz you must first connect the Gateway. You can read how to do this in this guide.
First, add the button to the Xiaomi Gateway (see above). It will then automatically appear in Domoticz next to devices and you don't have to do anything else.
As soon as the door is opened, I want the lamp in the hall to go on.