Combining Bluetooth sensor and command into a toggle switch

switch:
  - platform: template
    switches:
      mobile_bluetooth:
        friendly_name: "Phone"
        turn_on:
          service: notify.mobile_app_phone
          data:
            message: "command_bluetooth"
            data:
              command: "turn_on"
        turn_off:
          service: notify.mobile_app_phone
          data:
            message: "command_bluetooth"
            data:
              command: "turn_off"

I have the above available, but it cannot tell the current state, so there are 2 buttons, 1 to on and 1 to off
How do I incorporate binary_sensor.app_phone_bluetooth_state into it and turn it into a toggle switch??

And is there a way to shorten all these? The above looks incredibly long for such a simple feature

Add these 2 magical lines after friendly_name

value_template: "{{ is_state('binary_sensor.phone_bluetooth_state', 'on') }}"
icon_template: "{{ state_attr('binary_sensor.phone_bluetooth_state', 'icon') }}"