Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Uptime in seconds? #53

Closed
Smandurlo opened this issue Apr 14, 2022 · 3 comments
Closed

Uptime in seconds? #53

Smandurlo opened this issue Apr 14, 2022 · 3 comments
Labels
enhancement New feature or request

Comments

@Smandurlo
Copy link

Smandurlo commented Apr 14, 2022

Is your feature request related to a problem? Please describe.
I am not able to create an uptime sensor in seconds.
It is easier to deal with seconds to create automations.

Describe the solution you'd like
The uptime has a value that is impossible (for me) to change in seconds. For example, in this moment I have up_time: 12 days, 27 min
The file /proc/uptime contains the value in seconds (the first value). To get only the first value awk '{print $1}' /proc/uptime
Maybe you could add another property like up_time_s with that value

Describe alternatives you've considered
If you have a reverse formula to change the actual property up_time in a template sensor, I am very fine with that :-)
At the moment I use a ssh template to my raspberries to get it

@ironsheep ironsheep added the enhancement New feature or request label Feb 21, 2023
@ironsheep
Copy link
Owner

ok, this is arriving in next release!

@Smandurlo
Copy link
Author

I forgot of it :-D after 10 months :-D better later than never :-p

@ironsheep
Copy link
Owner

Changes committed and now avail. in v1.8.0 and later.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants