Xiaomi switches as light switches

I want to “convert” few xiaomi switches to a light switch
configuration.yaml:

- platform: switch
    name: lampka w salonie
    entity_id: binary_sensor.switch_158d0001d62ab9

and I have got an error:

Invalid config for [light.switch]: Entity ID 'binary_sensor.switch_158d0001d62ab9' does not belong to domain 'switch' for dictionary value @ data['entity_id']. Got 'binary_sensor.switch_158d0001d62ab9'. (See ?, line ?). Please check the docs at https://home-assistant.io/components/light.switch/

Can You move all xiaomi switches to domain “switch”? Why are they in binary_sensor domain?

the xiaomi switch is a switch sensor - it is either set to on or off. (eg read only)

Rather than a light switch that can be set to on or off (read/write)