Hi all!
Try to resolve a issue that I think it may be easy, but I’m blocked…
I need to reset the “for” statistic of a sensor that I need to use for a trigger…
Will try to explain better:
I have an automation that runs upon my EV conectes to the Wallbox and that automation, if my home power is beneath 0 W for at least 3 minutes (I have solar and because of that have many times -1.000 W or something like that) turns on the Wallbox.
I then have other automations that, if my power in beneath -250 W for 3 minutes, increases 1 Amp my Wallbox current (and other that reduce 1 Amp if the power ir above 250 W for 3 minutes).
My problem is that, many times, when I arrive home, I have about -2.000 W for more that 3 minutes and when i connect my Wallbox and it begins charging, it stats with 6 A, so it uses about 1.400 W of the grid and I will still have -600 W on the grid sensor.
The -250 W trigger don’t goes off because it have been, earlier, for more than 3 minutes, when the power was -2000 W, beneath the -250 W and that trigger condition still remains valid, so it won’t trigger again.
I need something to reset that trigger when the Wallbox start working, like a HA restart (but I don’t want that). In other words, I want the increase current automation to work (increasing 1 Amp at a time) if I have -250 W for 3 minutes… I will even have to run it more than once, in a 3 minutes interval, if I have, let’s say -750 W… First time it triggers the -250 W I will still have -500 W… then again, 3 minutes later and I will have -250 W and only on the third time I will get 0 W from grid (or something like that).
It feel difficult to explain this… Hope someone gets my problem… Resuming, I need a trigger to analyze conditions again, or reset the analysis of a condition.