Compared the values in more detail. from and to in an automation are correct. Delta is always 180Wh each minute in the source.
Chart of the source is showing this as well.
But the template sensor adds as shown now 360Wh per minute.
I cannot check if it is now called whyever twice in each trigger or uses other tigger or is using wrong from or to, e.g. from from one trigger before, …
Thanks a lot for pointing to this. There it is as here self referencing, but shouldnt be the reason, because it is not in the trigger. There another issue is linked, where it is happening in adding attributes twice.
It seems that the only equal thing in all this issues is, that every trigger is now firing twice in trigger templates, which would be ofc a severe thing.
I would report it as an Issue or add a comment to pedolsky’s Issue linked above. This new behavior is a serious problem because it corrupts computed values.
Already did it. And yes, the sensors got corrupted now so I have to fix them afterwards, what is a problem because of the total_increasing and the follow up dailies, etc.
For all those that haven’t yet read arganto’s Issue, it helped emontnemery identify the cause of the error and correct it in this PR which has already been merged into the upcoming patch release (2023.9.2).