Replies: 2 comments 1 reply
|
Just for my curiosity, why would polling be required here? |
1 reply
|
Ah, I see. That’s a general Problem with template calculations in home assistant. |
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Hi,
It would be great to have an optional periodic refresh for templated properties (e.g., text_color).
Currently, templates are only evaluated when the underlying entity changes. This prevents implementing simple animations like blinking icons or color changes based on sensor values.
Proposal:
Add an optional refresh_interval (in seconds) per object:
properties:
text_color: "{{ 'Orange' if sensor.power | float > 0 else 'Gray' }}"
refresh_interval: 1
OpenHASP would re-evaluate the template every refresh_interval seconds.
This feature would enable dynamic UI feedback without relying on external automations, keeping backward compatibility.
Thank you!
All reactions