-
-
Notifications
You must be signed in to change notification settings - Fork 38
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
Some entities (containing "%" character) no longer displaying after streamdeck update to 6.1.0.18521 #139
Comments
Same here. Weather and Phone Battery level dont work anymore. Anything else works (for example Battery Health) |
Hmm, i can confirm. By why?! |
I found a pattern! All enteties/sensors that use "%" like battery levels of devices or humidity sensors also dont work. Seems to be related to the "%"-Sign |
Well the Workaround works nicly for the Battery level with "{{state}} %" in line 3, but can somebody give me a template for the weather Button/Card(What needs to be in the curly Brackets)? |
It is the % that messes it up. If the {{state}} has the number portion of the title and {{unit_of_measurement}} holds the "%" sign then you need to use the formatting below to get the "%" to show up. {{state}} {{ unit_of_measurement | urlencode }} If you don't have {{ unit_of_measurement }} then use, {{state}} {{ "%" | urlencode }} Hope that helps. |
Hey lafaro, i wonder why i did not try this before: urlencoding the string before adding it to the svg image i am generating fixes the bug. Thanks for the hint. I will implement this so the workaround is no longer needed. |
fixed #139: UrlEncode whole text in SVG so no characters get lost or break the button.
fixed #139: UrlEncode whole text in SVG so no characters get lost or break the button.
Hi,
All of my other entities are working but weather seems to have broken.
Streamdeck 6.1.0.18521
Firmware 1.03.000
Home Assistant Streamdeck plugin 2.2.0
Home Assistant 2023.3.3
Frontend 20230309.0 - latest
The text was updated successfully, but these errors were encountered: