jeroenvdd
(jeroen van den dooren)
October 11, 2020, 6:27pm
1
hi there!
i have a small issue:
i’ve made a node-red script that puts a switch ON when i am HOME and OFF when I am away,
Switch JeroenThuis "Status: [MAP(thuis.map):%s]" <switch>
the switch itselff works perfectly and now I’d like to change the text from ON and OFF to HOME and AWAY.
I tried with a map transformation
ON=Thuis
OFF=Weg
but habpanel keeps reporting on and off instead of home / away,
there are no errors in the log and I’ve installed the map transformations,
anyone out there with an idea or am i missing something?
rossko57
(Rossko57)
October 11, 2020, 8:22pm
2
There’s a tickbox for “Use Server provided formatting”
jeroenvdd
(jeroen van den dooren)
October 12, 2020, 6:43am
3
Hi Rossko,
thx for the tip, the label has now been changed in openhab, but it just states:
MAP(thuis.map):on
it doesn’t seem to apply the transformation
MDAR
(Stuart Hanlon, UK importer of Velbus hardware)
October 12, 2020, 7:18am
4
If you use a selection widget, with user defined options.
You can put the mapping in there.
ON=Thuis,OFF=Weg
jeroenvdd
(jeroen van den dooren)
October 12, 2020, 9:49am
5
Ok the map file seems to work now without issues,
the only strange part was the button said ON so i put ON in my map file,
changed it to on and now it works