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
Æ/Ø/Å breaks sensors #12
Comments
Noted - I'll have a look when I get a sec. Thanks for the report 🙂 |
@mf-social thank you so much 🙏 P. S. A third type of date countdown for onetime events with a negative counter when passed would be awesome. This could be a time since:
|
Can you outline how your third sensor type would look/behave please? If it's viable I'll try and add it at the same time as fixing the Scandinavian letters (between work and home schooling I'm mega short on time at the moment, but I'll definitely get to it soon, promise 🙂 ) |
Yes of course... Something like:
Instead of count to next it should be last (https://www.timeanddate.com/date/durationresult.html?d1=1&m1=1&y1=2020&d2=30&m2=4&y2=2020).
|
So in that example, if today was the first of February 2021 it would show 1 year and 31 days SINCE the date? |
Exactly, it will be a "lookback" counter where you mark special days.
Where you don't necessarily celebrate a anniversary, but want to know how many days/years |
Yeah, with you now 🙂 I'll add that too, no worries 👍 I'll sort both when I get a chance 🙂 |
Hi @allanpersson, Sorry for the delay here - can you try the code I have put in the 'scandanavia' branch please and make sure it works for you regarding the extra charcaters? Please check against capital and lowercase versions and make sure it looks OK 🙂 I'll get on with the count-up suggestion shortly 👍 |
Awesome 👌 |
@mf-social i just did a couple of tests with and without friendly_name and it works like a charm in both cases (Y) Good job m8 |
Ace 😎 - keep that as your running version then, I'll get your other suggestion working, update the docs and then do an official release to hacs when it's all done 👍 |
Hey again @allanpersson 😎 Would you do me a favour and check that my 'count_up' branch is working for you please? Just add If it's working properly I'll release it on HACS next time I'm sat at a computer 👍 |
@mf-social i'm about to test it, will be right back with comment 🙏 |
Ha, no hurry, I'm at work until 3am (it's currently 6pm here), then sleep, then general house stuff before I can do anything more with this - so take your time 😎 |
I have just tested the changed version and here is my comments:
Thank you for your effort 🙏 |
Confirm it appears to be working correctly as far as you can tell? |
It works like a charm and also the count is correct 👍 |
Excellent - I will wrap it all up in to a release and get it out to hacs tomorrow 😃 Thanks for both the bug report and the suggestion 👍 |
Thanks for a awesome script.
When using Danish unique letters (Æ, Ø & Å) the sensor breaks. I'm not sure if there exists a official way to handle that issue regarding writing codes, but Home Assistant transform them to:
æ: ae
ø: o
å: aa
Config
Log
I'm aware of the use of friendly_name, but many names in Denmark fx have special letters.
The text was updated successfully, but these errors were encountered: