Skip to content

Update 'Uptime' sensor lambda to be compatible with ESPHome 2026.1.0#143

Open
Roving-Ronin wants to merge 22 commits intoathom-tech:mainfrom
Roving-Ronin:ESPHome-2026-1-0-ESP_IDF
Open

Update 'Uptime' sensor lambda to be compatible with ESPHome 2026.1.0#143
Roving-Ronin wants to merge 22 commits intoathom-tech:mainfrom
Roving-Ronin:ESPHome-2026-1-0-ESP_IDF

Conversation

@Roving-Ronin
Copy link

Corrects issues with STRINGS that occurs with update to ESP-IDF with ESPHome 2026.1.0

@MaJerle
Copy link

MaJerle commented Jan 21, 2026

Couldn't the "uptime" sensor become a package if it is in every product?

@Roving-Ronin
Copy link
Author

@MaJerle if you want to write it ;-) Hell I'd change a heap of stuff and add useful sensors (as per below), let alone use packages pulled from a single common file set, so instead of wasting time having to update lots of individual yaml, we'd only need to update a single core location for a change to affect all other configs (like I also do with my own configs)... but its Tarontop / Athoms repository and he prefers them all to operate seperately.

image

@MaJerle
Copy link

MaJerle commented Jan 21, 2026

I don't. You've just said owner doesn't like this, so why bother.

@dewi-ny-je
Copy link

Is the calculation of hours minutes and seconds really needed? If the uptime is assigned the correct category home assistant will do it automatically, see a similar issue with another project which got solved by a simple "device class"

Hypfer/Valetudo#2335 (comment)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants