Hello,
I have created the following item file:
Group gLights
Switch hallLight "Hall light" <light> (gLights) {insteonplm="16.A2.A4:F00.00.04#switch"}
Switch brownRoomLight "Brown room light" <light> (gLights) {insteonplm="12.35.1B:F00.00.04#switch"}
Switch laundryLight "Laundry room light" <light> (gLights) {insteonplm="1A.2D.B7:F00.00.04#switch"}
Dimmer mantelLight "Mantel light [%s]" <dimmablelight> (gLights) {insteonplm="17.FF.BB:F00.00.01#dimmer"}
Switch hallLight2 "Hall light is: [%s]" <light> {insteonplm="16.A2.A4:F00.00.04#switch"}
I have created the following sitemap:
sitemap default label="Harvest Hills House" {
Frame label="Lights" {
Switch item=hallLight label="Hall" mappings=[OFF="off", ON="on"]
Switch item=brownRoomLight label="Brown Rm" mappings=[OFF="off", ON="on"]
Switch item=laundryLight label="Laundry Rm" mappings=[OFF="off", ON="on"]
Switch item=mantelLight label="Mantel" mappings=[OFF="off", ON="on"]
Switch item=hallLight2 label="Hall 2" mappings=[OFF="off", ON="on"]
}
Frame {
Group item=gLights label="Lights" icon="group" {
Switch item=hallLight label="Hall" mappings=[OFF="off", ON="on"]
Switch item=brownRoomLight label="Brown Rm" mappings=[OFF="off", ON="on"]
Switch item=laundryLight label="Laundry Rm" mappings=[OFF="off", ON="on"]
Switch item=mantelLight label="Mantel" mappings=[OFF="off", ON="on"]
}
}
}
On the BasicUI for the Hall 2 light I get a bulb icon and the Hall 2 label on the left, and then on the right I get an “OFF” label followed by an ON and OFF button. (Not sure how to add an image of I would.) When commanding ON and OFF, the bulb goes from yellow to grey… I am wondering if this is based on the report back from the light, or just based on the reflected commanded state? The “OFF” label on the right does not change dynamically with the commanding of ON and OFF from the buttons, but will correctly update after a browser refresh. Is this value based on a report from the light, or just a reflection of the commanded state as well? I am also wondering why only the value inside the [%s] is being displayed and not the complete “Hall light is: [%s]” from the label? If I do “[Hall light is: %s]” in the item it all appears/ displays (still does not update though), but this does not seem to follow the examples given in the documentation.
thanks