amtra
(Ramesh RA)
1
I have a sensor with kwh from my diy energy meter.
I have configured utility meter to track energy consumption.
utility_meter:
bi_monthly_energy:
source: sensor.total_energy_in_kwh
cycle: bimonthly
But it used default calendar cycle (Jan, Mar, May, July, Sep, Nov) as reset it on every 1st of odd months.
My billing cycle is bimonthly but follows even months (Feb, Apr, June, Aug, Oct, Dec) so it needs to reset at 1st of even month.
How can I achieve this.
karwosts
(karwosts)
2
You can use the cron
option instead of cycle. I think you may want: 0 0 1 2/2 *
as the setting, but haven’t tested.
amtra
(Ramesh RA)
3
I tried cron but home assistant won’t allow cron job in cycle.
karwosts
(karwosts)
4
It doesn’t go under cycle, it goes under cron. Check the documentation/examples: https://www.home-assistant.io/integrations/utility_meter/#cron