I have an input_text that I update with data. What is the simplest way to display this data in the UI but make it read-only and still have an icon next to it?
My current method you can edit the input_text in the UI which I do not want.
I have an input_text that I update with data. What is the simplest way to display this data in the UI but make it read-only and still have an icon next to it?
My current method you can edit the input_text in the UI which I do not want.
Create a Template Sensor that derives its value from the input_text.
template:
- sensor:
- name: "Runtime Remaining"
state: "{{ states('input_text.runtime_remaining') }}"
icon: "mdi:timer-sand"