feat: enabled interaction with content and added <title> tags to enable hover texts #188
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Hi,
Preview
changes can be previewed here https://github.com/SublimePotato/better-thermostat-ui-card
Here's a list of what I added / changed
I added Volta since I did not have the used node version installed, adding it should be beneficial with no drawbacks
For testing purposes I wanted to be able to inject the debug script to my production hass instance, had to add the header to enable it
Took some time to figure it out but enabling the
pointer-events
on the children and upping thez-index
was enough.added the title tags and moved / refactored some code. formatting and readability is rough since its all a big string but I tried my best. I also had AI add missing localization, but I cannot vouch for the quality.
the
stateObj
was any, added typing and missing attributessome thermostats expose their battery state as binary sensor - added support for that
Issues / Todos
Maybe I need a newer version of the integration?
Further plans
It would be nice to add more interaction to the UI. For example when clicking the humidity there could be a popup with the entity history.