In my dashboards I often have the need to show a value of an entity without allowing it to be changed on the dashboard. As far as I know, the only work-around / solution is to use a template to create a read-only version of the same entity.
It would be great if there were an option to make the entity read only on the dashboard which would eliminate the need to create a template.
In the example below, the due dates are calculated automatically therefore I used templates to make them display only. It would also be important for the read only / display only option to display the status without, in the case of the date, the huge gray box around it. In other words, it should just render the state of the entity.
EDIT: @tom_l describes a YAML based solution in a post below that appears to do what I was requesting, however as @reef-actor suggested, it would be awesome for this feature to be exposed as a simple checkbox in the UI, and made available on all entities where it makes sense (probably anything that has a state.)
@KruseLuds - I just realized the title was way off after posting, so I adjusted it. I think what you are saying is what I was suggesting. Add toggle to make the entity R/W or just R. If R then display as text without all the controls, box, etc.
@tom_l Thank you, I will test this asap but it looks like it will do what I want. Would be nice for it to be exposed as a checkbox as suggested by @reef-actor below so I updated the FR accordingly.
Thanks for updating it. Only observation is that to know what it means, you need to know what simple-entity is.
Maybe something like âAdd dashboard type option âsimple-entityâ to UI to make entity read-only on dashboardâ would make it easier for others to find this FR and vote for it.