Switch Aqara sensor to switch

Hi Guys,

I’m just beginning on HASS.

At this moment I find how to include some integrations like Xiaomi Open/Close, Temp, NAS etc…
But with my new Aqara Switch (wxkg11lm) i have some issues :frowning:

I’m using phoscon to integrate all my zigbee component and no problem with this switch. But on HASS it’s put like a “sensor” (sensor.int_1_battery_level) and not like a switch.

Can you help me to change maybe the entity from battery to switch ?

For now, i’m not using configuration.yaml and all coding.

Thanks for your help :slight_smile: