Basically, if something is using power for more than 1m30s, go do an action.
On my dashboard, I want to show, how much longer of the 1m30s has to go before the automation will perform the action.
Let’s see if anyone else has a more elegant solution, but in the meantime the way I would do that would be to have a one and a half hour duration timer - the trigger would start the timer, and then have another automation that when the timer is finished you’d do the action. Then you can show the timer in your dashboard and see it counting down in realtime…
Do you mean 1 minute and 30 seconds? Because that’s the duration of the Numeric State Trigger in the example.
It cannot be the example’s Numeric State Trigger because it triggers after the sensor’s value is greater than 1 for 90 seconds. In other words, the trigger would start your proposed timer after the 90 seconds have passed.
Sorry I meant 1.5 minutes, not hours and misunderstood the question. If the sensor becomes 1, start the timer. If the sensor changes from one then cancel the timer. When the timer is finished (rather than canceled), do the action. Just show the timer in the dashboard.
I think it’s possible to do it using a template helper, but it’s totally separate from the automation, so you’d have to keep track of things separately.
Edit: Sorry I stand corrected, you can display the seconds but it will not update live in a template timer.
It updates every minute:
Correct; it’s an internal timer that’s part of the trigger, not a timer entity.
FWIW, the same question was asked by gov and I answered it here
Yes, I agree, because it uses a timer entity and as long as gov uses an Entities card to display it (the remaining time is computed by the card every second because it’s not updated in real time in the timer entity’s attributes).