I have two issues with tbe collecting sensor in Home Assistant Core 2022.5.4
created a collecting sensor helper via the UI. But once created I can not see or edit all parameters set during creation anymore. I didn’t figure out what the offset line in the UI means, when setin repeat to daily the offset still has the unit days.
Via the developers menue entity tab I get a Yaml overview that looks like this:
I can’t figure out how to reset the counter daily at 7:31:00 am. The cron pattern listed above does not work. Having a look at the source the cron pattern does not support seconds.
Hi Tom,
thanks for the very fast response. I did some tests with an energy meter wihich is triggering with high frequency.
Every time a count event occurs the cron pattern gets over written by a value determined from the meter_period parameter. For exampe quarterly_hour results in 0/15 * * * * or daily in 0 0 * * *. The cron pattern definitely does not support seconds. But nevertheless it makes no sense to set it manually because it gets overwritten with every count event. When having no period set the cron pattern gets deleted with every count event.
I will set meter_period to none and go with your automation suggested.
Unfortunately the automation did not work as expected, because the collecting entity is created as sensor. The service utility_meter.reset does not work with sensors. I had to use calibrate instead.
I have the same problem as DonKracho. .reset is not working for my utility_meters, (because they are generated as sensors?) or in general. Is this expected behavior and I should file an issue?
I have a similiar issue with a power meter sensor I had to create from current x voltage to then build another sensor based power over time as a Riemann Integral sensor I now have to reset and can not.
I am not sure what your code has to be used but I could not get that into my script section.