Switch with multi mappings

That example is based on my system. You will have to change it to use the name of an item in your item.

I have an item called “Back_Porch_Light”, that is a WeMO switch used to control a light. If you do not have an item called “Back_Porch_Light”, that code will never display anything. (The itemValue() function will return NULL if the specified item does not exist.)

For more information, and examples, check the template widget thread here.