How to add a Switch with two Flash Buttons

Currently, I’m using two switches in my config file:

switch:
  - platform: broadlink
    host: 192.168.178.109
    mac: 'XXXXXXXXXXXX'
    switches:
        onkyo:
            friendly_name: "Onkyo Verstärker"
            command_on: 'JgBYAAABJZQTEhI4EhISExI4EhISOBM3EhISExI4EjcTEhM3EjcSExM3EjcSExI4EhISExM3EjcSExITEjcSExM3EjgSEhITEgAFHAABJUsTAAxJAAElTBIADQU='
            command_off: 'JgBYAAABJZQTEhI4EhISExI4EhISOBM3EhISExI4EjcTEhM3EjcSExM3EjcSExI4EhISExM3EjcSExITEjcSExM3EjgSEhITEgAFHAABJUsTAAxJAAElTBIADQU='
  - platform: template
    switches:
        acer_projektor:
            friendly_name: "Acer Projektor"
            value_template: true
            turn_on:
                service: script.acer_beamer_ein
            turn_off:
                service: script.acer_beamer_aus

This results in this UI:

switches

Since the Broadlink IR Remote cannot determine, if the device is on or off, it does not show a real switch but two flash buttons instead for the Onkyo device. This is great.

For my other self defined device, the Acer, a usual switch appears. But in my case, I cannot find out, if the device is on or off as well. Thatswhy I just setted the value to “true”. How can I force home assistant, to show the two flash icons for the acer device instead of the switch?

Thanks,
Stefan

Add assumed_state: true to your customization section for this switch.

Thank you very much, this helped a lot!

I really didn’t find it although I spend half an hour searching the documentation. Maybe this would be easier to find, if it would be linked from Switch Components like https://home-assistant.io/components/switch.template/ .