Can I have my aqara switch in Lovelace?

Hello and happy new year to all of you.

I’ve installed a wired Aqara swich without neutral in my basement to control the three lightbulbs in there. Now i’d like to see the switch in Lovelace, to be able to check and turn off the light from my tablet. And I’d like to do automation to turn the switch on when the basement door is opened and turn it off when the door close.
The switch is controlled by Deconz, I had to “add a light” to have it detected. It show a “1002” event when I click on it, so it works well in Home Assistant, but that’s how far it goes.

Can someone give me some help about this please ?

So no entity in home assistant? (you may need to restart HA after registering it with deconz)

Thanks a lot, i restarted HA and the switch was there.

Sorry for jumping on an old thread, I have the same switch but even after a restart it doesnt appear in HA any ideas? I can see the event when I manually press the switch

Event 0 fired 15:38:
{
    "event_type": "deconz_event",
    "data": {
        "id": "transmitter",
        "unique_id": "00:15:8d:00:04:84:92:a3",
        "event": 2002,
        "device_id": "35c175a0ff0b1b3cb36033b512ebbf27"
    },
    "origin": "LOCAL",
    "time_fired": "2021-04-26T14:38:41.174937+00:00",
    "context": {
        "id": "c81bb20f293176e598f58d963b448997",
        "parent_id": null,
        "user_id": null
    }