Update a "label" text from appdaemon app?

Question: Is there a way to update text in a HADashboard “label” from an appdaemon app? Can’t seem to see how to.

Objective: I want to have an area on the dashboard to have a few lines of text which shows the latest status changes. The “label” seems ideal, however not quite sure how to update from within appdaemon app. Any other ideas re how to meet my objection welcome.

Note: “label” is good as I can have a few lines easily here using the HTML
tag to force CR/LF.

no you cant update the label from an app.

a few possible options:

  1. create a sensor in the app, update that from the app and show the sensor in the dashboard
  2. create a small html file in the app and use an iframe to show it
  3. edit the dashboard file with the app, but the you need to reload the dashboard to show the changes.

ok thanks Rene

re your suggestion 1 - when you say create a sensor do you mean create the sensor in the HA config file? That is so you would then:

  • create a senor in HA config
  • then access/use this sensor from your appdaemon app
  • then also view this HA sensor from the dashboard

Is this what you meant? Just checking you didn’t mean to create it directly in the appdaemon app, as in which case I’d have to do some more reading to see how to do this…

as soon as you use set_state(“sensor.blabla”,state=anything) a sensor will be created in HA
you can then update that sensor by the same set_state command.

no need to do anything in HA

Ok thanks. Didn’t know that