I have a sensor that is supposed to display the remaining time on my echo timer using a template. But it only updates every minute. How do I get it to display this in real time?
Unfortunately I haven’t found anything that helps me.
I need the sensor to display it on awtrix light.
I showed someone else how to make the template be updated every second. Before you attempt to do it, be advised that you should exclude your Template Sensor from the Recorder integration. If you don’t, your database size will grow very fast.
If you added states.sensor somewhere in your template, change it to something else such as states.binary_sensor or preferably pick a domain that has the fewest number of entities in your system (but greater than zero) perhaps states.cover or states.lock or states.fan.
And in config.yaml the recorder exclude the sensor sensor.echo_kueche_timer_rest.
That’s right?
Edit:
But now the timer doesnt work anymore. Refresh after a minute and not per second like before.
Logger: homeassistant.helpers.script
Source: helpers/script.py:810
First occurred: 09:43:25 (12 occurrences)
Last logged: 09:52:00
Error in 'choose[0]' evaluation: In 'numeric_state': In 'numeric_state' condition: entity sensor.echo_kueche_timer_rest state '00:14:54' cannot be processed as a number
Error in 'choose[0]' evaluation: In 'numeric_state': In 'numeric_state' condition: entity sensor.echo_kueche_timer_rest state '00:14:11' cannot be processed as a number
Error in 'choose[0]' evaluation: In 'numeric_state': In 'numeric_state' condition: entity sensor.echo_kueche_timer_rest state '00:13:11' cannot be processed as a number
Error in 'choose[0]' evaluation: In 'numeric_state': In 'numeric_state' condition: entity sensor.echo_kueche_timer_rest state '00:12:11' cannot be processed as a number
Error in 'choose[0]' evaluation: In 'numeric_state': In 'numeric_state' condition: entity sensor.echo_kueche_timer_rest state '00:11:11' cannot be processed as a number