@gohan I was never thinking like that. The startup time is about 1sec. Given I’m obsessed with a battery life and the device is only used occasionally, I could not come up with anything better than the switch.
@MiKa this is not supported by default by the library.
Using the indication callback however, it is possible.
Have a look at this project to get some inspiration: https://www.openhardware.io/view/349/MySensors-ESP8266-MQTT-gateway