How to create separate on/off buttons?

Want to create a switch with separate on off buttons like below. Using

Using a switch template below only gives me an input boolean toggle. Any help?

switch:
  - platform: template
    switches:
      sharpacon:
        friendly_name: "Sharp AC"
        value_template: "{{ is_state_attr('switch.sharpacon', 'on') }}"
        turn_on:
          service: remote.send_command
          entity_id: 'remote.xiaomi_ir'
          data:
             command:
             - 'sharpac_on'
        turn_off:
          service: remote.send_command
          entity_id: 'remote.xiaomi_ir'
          data:
             command:
             - 'sharpac_off'

Check here https://home-assistant.io/docs/configuration/customizing-devices/ for assumed_state

yes, thank you, works now =D

Does the following part work for you?

I got errors when using this in 0.66.

Is it possible to change the icons that are shown there? I use assumed_state: true with a lightbulb icon but the on/off-buttons are still flashes. Actually I’d prefer a little box like [on] [off] …