hif2k1 / battery_sim

Home assistant home battery simulator - allows you to model how much energy you would save with a home battery
124 stars 14 forks source link

Sensor for days since reset / date_recording_started #138

Open bgrr74 opened 1 month ago

bgrr74 commented 1 month ago

Is it possible to add a sensor for days since reset / date_recording_started Or could even be an attribute under sensor.battery_sim where all the other attributes are located.

This will make it a lot easier to see how many days the battery_sim has been working since last reset / start

I've been trying to calculate the days in a template sensor but can't get i working :-( My programming skills are not good enough :-(

hif2k1 commented 1 month ago

Good idea. Sorry I've not had much time to work on this recently, but I think this should be possible when I get the chance

On Sat, 5 Oct 2024 at 21:48, bgrr74 @.***> wrote:

Is it possible to add a sensor for days since reset / date_recording_started Or could even be an attribute under sensor.battery_sim where all the other attributes are located.

This will make it a lot easier to see how many days the battery_sim has been working since last reset / start

I've been trying to calculate the days in a template sensor but can't get i working :-( My programming skills are not good enough :-(

— Reply to this email directly, view it on GitHub https://github.com/hif2k1/battery_sim/issues/138, or unsubscribe https://github.com/notifications/unsubscribe-auth/AFAIZGKR3GF7YFUMW3WSY4DZ2BGB3AVCNFSM6AAAAABPNU2K2GVHI2DSMVQWIX3LMV43ASLTON2WKOZSGU3DQMZRHA3TMOI . You are receiving this because you are subscribed to this thread.Message ID: @.***>