How do you extract state status from MQTT Cover?

I’ve got an MQTT Cover from which I’d like to extract state status to show basic open/closed verbiage.

cover:
  - platform: mqtt
    name: Garage Door
    friendly_name: Garage
    state_topic: "garage/door/status"
    command_topic: "garage/door/control"
    payload_open: "OPEN"
    payload_close: "OPEN"
    # payload_stop: "OPEN"
    state_open: "OPENED"
    state_closed: "CLOSED"
    optimistic: false
    retain: true
    value_template: '{{ value }}'

How do I do this?

I did it through a template sensor like so:
image

Looks like this
image

Nice, thanks!

How do you have the dark theme applied?

Hi,

Maybe you can use the option mqtt statestream, published in version 0.54.0

https://home-assistant.io/components/mqtt_statestream/

In your configuration use the frontend: tool
image

then I just searched in the themes area of this forum to find some setups other folks have created. This is the one you see:

Never knew you could theme your HA…there goes more time spent in HA

Can you paste your frontend.yaml, or its code as code instead of a screenshot?

My mostly updated Home Assistant. Feel free to peruse and use anything you like.

I have the same basic question. To which topic does the value_template section apply? I set a value for the value_template hoping it would extract into the state but it appears to have extracted into the availability.