How do I create a virtual on off switch?

expose the boolean as a switch. Keep in mind there are caveats that are annoying when doing this. Like, turning the switch on when the boolean is on will be suppressed because it’s already on.

cloud:
  alexa:
    entity_config:
      input_boolean.xyz:
        name: "Foo"
        display_categories: SWITCH

I don’t know if you can change the display_category from the UI. I would assume you can. If you’re using the smart home skill and not cloud, the configuration is similar

alexa:
  smart_home:
    entity_config:
      input_boolean.xyz:
        name: "Foo"
        display_categories: SWITCH
1 Like