Can I change the state to custom?

I have door sesnor that I changed to weight sensor so the states is Open/Close , can I change it to seat/no seat or something else?

Thank you!!

You can rewrite it with a sensor template.

sensor chairs:
  - platform: template
    sensors:
      chair_1:
        friendly_name: "Chair 1 presence detection"
        value_template: >-
          {% if (states('sensor.chair1') >= 50) %}
              no seat
          {% else %}
              seat
          {% endif %}
        icon_template: >-
          {% if (states('sensor.chair1') >= 50) %}
              mdi:block-helper
          {% else %}
              mdi:mdi-chair-rolling
          {% endif %}
1 Like