yves
(YvesHanoulle)
October 25, 2018, 9:26pm
1
In my sitemap I have this line
Switch item=gSA icon=“poweroutlet” mappings=[ON="Important group on "]
Where gSA is a group of Outlets.
I want to have a button I can turn them all on, yet never turn them of.
I assume that with only the option on, I would not be able to turn them of, yet it seem that it now works as a on/off button.
I might do this with a rule, yet I wonder if there is another option.
vzorglub
(Vincent Regaud)
October 25, 2018, 10:48pm
3
This is strange…
With this mapping only the command ON should be sent to the item
What does the log show?
Did you try restarting OH?
1 Like
5iver
(Scott Rushworth)
October 26, 2018, 12:54am
4
I just tested this in Basic UI and it seemed to do what you want (OH snapshot 1390). Note the quotes. Edit: actually, it worked with or without quotes around the ON.
Switch item=gSiren mappings=["ON"="Important group on"]
1 Like
You need to put the off mapping if you want on and off. If I am reading correctly you said only on worked. Per you mapping I would agree.
1 Like
yves
(YvesHanoulle)
October 26, 2018, 8:14pm
6
I’ll try with another group.