How to trace what triggers an event?

image

I have this awning managed by an esphome cover entity that used to work just fine for the longest while. Now it started automatically opening the instant I close it, and I can see ZERO reasons for this to happen, which is driving me f***in nuts. How can I figure out what exactly calls the open_cover service???

Anything I can do with the event context maybe?

Event 63 fired 11:06 AM:
{
    "event_type": "state_changed",
    "data": {
        "entity_id": "cover.cover",
        "old_state": {
            "entity_id": "cover.cover",
            "state": "closed",
            "attributes": {
                "current_position": 0,
                "friendly_name": "Cover",
                "assumed_state": true,
                "supported_features": 15,
                "device_class": ""
            },
            "last_changed": "2020-08-16T08:06:06.441768+00:00",
            "last_updated": "2020-08-16T08:06:06.441768+00:00",
            "context": {
                "id": "56049146df9711eaa1fe3100b3b7c42e",
                "parent_id": null,
                "user_id": null
            }
        },
        "new_state": {
            "entity_id": "cover.cover",
            "state": "opening",
            "attributes": {
                "current_position": 0,
                "friendly_name": "Cover",
                "assumed_state": true,
                "supported_features": 15,
                "device_class": ""
            },
            "last_changed": "2020-08-16T08:06:14.913520+00:00",
            "last_updated": "2020-08-16T08:06:14.913520+00:00",
            "context": {
                "id": "5b114128df9711eabdddc13214e23cfb",
                "parent_id": null,
                "user_id": null
            }
        }
    },
    "origin": "LOCAL",
    "time_fired": "2020-08-16T08:06:14.913557+00:00",
    "context": {
        "id": "5b114128df9711eabdddc13214e23cfb",
        "parent_id": null,
        "user_id": null
    }
}

Thanks for any pointers you might have!

And here’s the debug level log entries when the cover_open event is being fired: https://pastebin.com/ksBmtBS9