battery_sim icon indicating copy to clipboard operation
battery_sim copied to clipboard

Sensor for days since reset / date_recording_started

Open bgrr74 opened this issue 1 year ago • 1 comments

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 :-(

bgrr74 avatar Oct 05 '24 20:10 bgrr74

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: @.***>

hif2k1 avatar Oct 06 '24 08:10 hif2k1