What's turning on my device?!


I have a Sonoff Basic flashed with ESPHome that is controlling a contactor. Something is turning on the device and I can’t figure out what. I have disabled all automations that include the device but it’s still turning on, turning me a bit crazy.

The only thing I can understand by the logbook is that the device is “turned on triggered by service Home Assistant Core Integration: Generic turn on” but not WHAT is turning on the device. Is it an automation? A script?

Is it somehow possible to track what’s turning the device on?

Are you using the ESPHome API or MQTT?

I’m using ESPHome.