ESPHome sensor to report App status

I am using a status_led component to visibly indicate the status on my device. But I would like to see the same thing remotely (via MQTT.)

Is there some type of sensor that I can add to my YAML to report the App status?

I searched through all the component sources and it seems that only the status_led component calls App.get_app_state().

Use a template sensor with lambda.

The status binary sensor and status_led report different things.

@clydebarrow
Of course! Brilliant, thanks.
MV

@clydebarrow
It seems a template sensor can only report a float value, not text.

So use a template text sensor!

Yes, just found it.

There are template versions of all kinds of entities.