Skip to content

Replace time selects with native time entities - #2122

Merged
wills106 merged 4 commits into
wills106:mainfrom
rosenrot00:times
Jun 15, 2026
Merged

Replace time selects with native time entities#2122
wills106 merged 4 commits into
wills106:mainfrom
rosenrot00:times

Conversation

@rosenrot00

Copy link
Copy Markdown
Contributor

Replace legacy charger/discharger time dropdowns with native Home Assistant TimeEntity entities.

On SolaX Gen4, the device page previously exposed 16 time settings as select dropdowns with 1440 minute options each. That produced 23000 time options just for these controls, and the measured HA device page rendered 23000 dropdown items overall, with about 71k and 70k elements. This caused noticeable lag when opening the device UI.

This change removes the legacy time selects, reuses the existing Modbus payload mappings for native time.* entities, and adds the missing Modbus read/default handling so migrated time entities can decode raw register values correctly instead of staying unavailable.

@wills106 this is your baby as you recently changed it. This is just a suggestion to fix #2119

But be aware this changes the affected entities from select.* to time.*. Existing dashboards, automations, scripts, or templates that reference the old select entity IDs will need to be updated to the new time entities.

@rosenrot00 rosenrot00 mentioned this pull request Jun 10, 2026
@wills106

Copy link
Copy Markdown
Owner

I think this is a bit messy trying to map in selects as time entities.
I'll look at going over the GEN4-6 entities and add them in as per https://github.com/wills106/homeassistant-solax-modbus/releases/tag/2026.04.3
I'll probably simplify the names as well like I did for the GEN3 if it makes sense.
As this will be a breaking change anyway, although I don't know how often people actually change time slots using the drop down selects?

@rosenrot00

Copy link
Copy Markdown
Contributor Author

@wills106 you are right about that there might be a better way to do it. What do you think about my recent changes? I updated the files from this PR to a cleaner version.

@wills106

Copy link
Copy Markdown
Owner

Thanks

@wills106
wills106 merged commit e3c3ccd into wills106:main Jun 15, 2026
13 checks passed
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.

Display lag

2 participants