mvuille
(Martin Vuille)
1
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.
mvuille
(Martin Vuille)
5
@clydebarrow
Of course! Brilliant, thanks.
MV
mvuille
(Martin Vuille)
6
@clydebarrow
It seems a template sensor can only report a float value, not text.
So use a template text sensor!
There are template versions of all kinds of entities.