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'