Switch entity show under "Configuration"

I have a template switch inside esphome that allows me to enable/disable certain feature. When it is visible in the HA, it pops up under Controls section.

Config is pretty dumb/simple:

switch:
  - id: switch_toggle_output_when_api_disconncted_${id}
    platform: template
    name: "Output toggle #${id} on disconnect"
    restore_mode: RESTORE_DEFAULT_OFF
    optimistic: true

And that’s what I have:

How can I move it under Configuration section, like it is the case in Alexa Media Player extension?

https://esphome.io/components/switch/

image

switch:
  - id: switch_toggle_output_when_api_disconncted_${id}
    platform: template
    name: "Output toggle #${id} on disconnect"
    restore_mode: RESTORE_DEFAULT_OFF
    optimistic: true
    entity_category: CONFIG
3 Likes

If switch remains in same category in HA after changed in ESPHome - delete device in HA and add it again.

1 Like