Show dynamic text in frontend

Hi everyone,

What is the best way to show a dynamic text in front end. I’m looking for something like a component that you can change it’s text value using appdaemon scripts. Something like input_text comes to mind but with read-only attribute and preferably ability to change icon. can we implement anything like this with current components?

thanks

1 Like

You should be able to set the state of a sensor, which allows both text and icons. I believe that if you change the icon and then change the state the front end will reload both.

(EDIT: I don’t use AppDaemon, but I could do it by just making a POST request to /api/states/sensor.my_sensor )

thanks for the reply, I’m kind of new in this area and trying to figure out things. What kind of sensor do you use? I mean should use a particular platform?

I’m saying you can just create one via the REST call or the corresponding AppDaemon call. You don’t have to set one up in the config. It is just a generic sensor and will display whatever the current state is set to.