That works and shows the day of week in locale (default english):
Tue, 23.05.2017 10:16
That’s fine so far, but I would like to get the day of week in german.
I don’t want to change the locale to get errors in english (better for forum support…)
So I tried
I don’t think you can do this without a rule. The problem is that the MAP operates on the entire state of the Item, not just the parts. I don’t think you can pass the formatted part of the Item’s state to MAP.
There might be something clever one could do with a JavaScript transform but I’m not certain. I’d just write a rule.
If you want german weekdays (and also months) just set the locales (LC_ALL, LANG, LANGUAGE) to de_DE.utf-8 for the openhab user, there is no need for mapping the weekdays.
Thanks Rich, Udo.
Udo, when changing the locales, aren’t all other things (f.e. error messages) also in german?
That might be bad to tell the correct error in english for (forum) support…