Entity state alias?

Rather than my robot vacuum bin reporting as on or off, if like it to present as full or empty. Is there a way to achieve this?

Thanks,
Matt

For example

template:
  - sensor:
      - name: "Sun State"
        state: >
          {% if is_state('sun.sun', 'above_horizon') %}
            up
          {% else %}
            down
          {% endif %}

That looks ideal, thanks. Will have a go and report back.

Thanks.

Worked a charm - thanks