Create timer without task
It would be a good solution to be able to create timers without needing to create additional tasks.
It would be a good solution to be able to create timers without needing to create additional tasks.
In my home automation, when I turn on a light I would like to have the time when the light was switched on in real time.
To do this at the moment imposed a variable in Ms, and I have a dedicated task to calculate the difference between the current time and the variable set.
To do this, I had to create profiles and dedicated tasks for each light. It is not the best of methods. It would be nice to set a time variable that already contains the time difference. I hope I was clear.
In my project I set a specific Alert to know for example when a light stays on more than 60 minutes.
In my home automation, when I turn on a light I would like to have the time when the light was switched on in real time.
To do this at the moment imposed a variable in Ms, and I have a dedicated task to calculate the difference between the current time and the variable set.
To do this, I had to create profiles and dedicated tasks for each light. It is not the best of methods. It would be nice to set a time variable that already contains the time difference. I hope I was clear.
In my project I set a specific Alert to know for example when a light stays on more than 60 minutes.