Hellis81
(Hellis81)
March 19, 2021, 3:18pm
4
I’m a bit busy right now but here is how my next alarm sensor works.
It will probably solve some of your issues and give you hints to other.
Or I can help you when I have time.
I don’t like the timestamp format used by the app(s) so I first did a simple Y-m-d H:m format, but even that looked unnatural.
2020-09-30… instead of just “tomorrow”.
So I decided to build a template that makes a human friendly format.
Unavailable is replaced with “No alarm”
“Today hh:mm”
“Tomorrow hh:mm”
“Monday hh:mm” (where monday is in local language)
“2020-10-05 hh:mm” if the date is more than a week away
of course the actual format can be changed.
The first five lines is the part tha…