Group Switches in .items file

Hello Markus,

So this is what I’ve tried doing and I’m not getting expected behavior hopefully this is the last thing. In Sitemap I have the following now, the MasterBed currently is only one light so I haven’t updated yet or need to:

Frame label=“Rooms”{
Text label=“Living Room” icon=“sofa” {
Switch item=LivRoom_AllLights label=“Switch All” mappings=[OFF=“All Off”, ON=“All On”]
Slider item=LivRoom_AllLights_Dim label=“Dimmer All”
Switch item=Light_LivRoom_Steps_Sw
Slider item=Light_LivRoom_Steps_Dim
Switch item=Light_LivRoom_Candles_Sw
Slider item=Light_LivRoom_Candles_Dim
}
Group item=MasterBed label=“Master Bedroom” icon=“bedroom”
}

All On and All Off switches work now. I have this in my items file. I created a false dimmer per your suggestion above.

/* active groups */
Group LivRoom_AllLights
Group:Switch:OR(ON, OFF) LivRoom_AllLights_Sw (LivRoom_AllLights)

/* Lights */
Dimmer LivRoom_AllLights_Dim
Switch Light_LivRoom_Steps_Sw “Steps On/Off” (LivRoom, Lights, LivRoom_AllLights) {hue=“1”}
Dimmer Light_LivRoom_Steps_Dim “Steps Dimmer” (LivRoom, Lights, LivRoom_AllLights) {hue=“1;brightness;40”}
Switch Light_LivRoom_Candles_Sw “Candles On/Off” (LivRoom, Lights, LivRoom_AllLights) {hue=“2”}
Dimmer Light_LivRoom_Candles_Dim “Candles Dimmer” (LivRoom, Lights, LivRoom_AllLights) {hue=“2;brightness;40”}

Now this is the rule I created.
/**

  • This rule is to control all lights in living room on a dimmer
    */
    rule “Living Room Dimmer”
    when
    Item LivRoom_AllLights_Dim received command
    then
    var Number percent = 0
    if(LivRoom_AllLights_Dim.state instanceof DecimalType) percent = LivRoom_AllLights_Dim.state as DecimalType

     if(receivedCommand==INCREASE) percent = percent + 25
     if(receivedCommand==DECREASE) percent = percent - 25
    
     if(percent<0)   percent = 0
     if(percent>100) percent = 100
     
     sendCommand(Light_LivRoom_Steps_Dim, percent)
     sendCommand(Light_LivRoom_Candles_Dim, percent)
    

end

Which as you can see is basically copied version of the demo.rules with the sendCommand updated for my hue bulbs and the item updated to my virtual dimmer. However when I click the down arrow it completely dims the lights where there off and then if I press the up arrow I believe I’m maybe getting 25% and it will not go any higher. I can click down and it will go out again but I can’t not get it to go higher after the initial click. Am I missing something within any of the files? I appreciate the help and I have learned a lot.