How do i change a device categorized from 'cover' to 'switch'

Hi Guys

New here and just configured Home Assistant. I was successful in enabling emulated hue in the config and Alexa was able to discover all my switches discovered by Home Assistant.
The only device I am unable to control is my Xiaomi curtain motor as it is listed as a ‘Cover’ in Home Assistant. Home Assistant is able to control it just fine.

Is there a way to get my curtain motor to be categorized as a ‘Switch’ instead of a ‘Cover’ so alexa will discover it as an emulated hue too? I only want my curtain to fully open or close (turn on and off). No need to adjust the % of the curtain opening.

Thanks in advance!

You can set up a template switch and expose that to emulated_hue.

Old topic, but I got here looking for the same solution, thus posting. “Toldo” is my cover

switch:
 - platform: template
   switches:
    toldo:
      turn_on:
        service: cover.close_cover
        target:
          entity_id: cover.toldo
      turn_off:
        service: cover.open_cover
        target:
          entity_id: cover.toldo
1 Like