For my energy card I want to get the total energy imported from the grid starting at a specific date. My contract is from the 19th of February till the 19th of February. I know I can get the total from this year but I need to get the total starting from the 19th of February till now and counting.
Does anyone know how to get this done?
This is the sensor I used for my helper to get the total of this year
sensor.p1_meter_3c39e72f22ca_total_power_import
Thanks but when I enter this code and check the configuration file I got this:
Invalid config for [utility_meter]: Unsupported offset of more than 28 days, please use a cron pattern. for dictionary value @ data[‘utility_meter’][‘energy’][‘offset’]. Got OrderedDict([(‘days’, 50)]). (See /config/configuration.yaml, line 35).