I have some IR LED strip lights that I use a Harmony Hub to control. Currently I have individual buttons for each color - red, green and blue, each displaying on a separate line in the iOS/Web GUI. What I would like to see is one line with “LED COLOR” and “RED”, “BLUE”, “GREEN” as buttons on the same line.
Is that possible to use “mappings” similar to the Activity example?
Get rid of the quotes on the left side of the equals sign in your mappings. You also might need to use double quotes:
Switch item=LEDCOLOR label="LED COLOR [%s]" mappings=[RED="RED", BLUE="BLUE", GREEN="GREEN"]
That appears to be the only difference between how I’ve done mappings in my working sitemap and this one. I’ve no experience with Harmony so I can’t help if the problem lies there.
with press actions, if you just specify just the device in the item file (LED), any String passed to it will be interpreted as the button to press (RED, BLUE, GREEN). This is case sensitive, so make sure its really RED and not Red.