I am making the card for my Dishwasher to show time left and other parameters (via a Smart plug with energy info).
I am stucked on the automation that have to update the time left, and I cannot understand what am I doing wrong.
So, my “tempo_restante” should keep track of the number of minutes left, just by calculating time passed between NOW and the future time where the dishwasher should stop (this I calculate at the begining, using the last duration + starting time).
Can anyone help me to find the error here?
Thanks!
EDIT: Works now ! I was doing definitively something wrong, so finally I created the sensor.time (via configuration.yaml as explained here Time & Date - Home Assistant ) and now it works like a charm
Thanks, but now I see that I may have another errors, because yours also fails to be. Sorry for not posting the error, here it is:
So basically it tells me that I am saving a number too big, but the thing is that “horas_Estimada” is 20:57:56 and right now it is 16:07, so the diference should be ~300 min, not “-64613949” minuts