"convert" button to sensor

I have a Lock entity which shows as a button. However this button is only for status indication and is not operatable. I would like it to show as a sensor on the frontend instead. Is this possible?

Template Sensor

1 Like

Done :slight_smile: thanks

  - platform: template
    sensors:
      doors_locked:
        friendly_name: "Doors"
        value_template: >-
          {% if is_state('Lock.doors_locked', 'locked') %}
            Locked
          {% else %}
            Open
          {% endif %}