Hi there
I have a sensor that with a remaining time. The value is given in the format hourshminutes, for example 0h40. Whats the best way to get this in minutes?
Thanks for your help!
Moritz
Hi there
I have a sensor that with a remaining time. The value is given in the format hourshminutes, for example 0h40. Whats the best way to get this in minutes?
Thanks for your help!
Moritz
{{ strptime('0h40','%Hh%M').hour * 60 + strptime('0h40','%Hh%M').minute }}
awesome, works perfect.
thank you!