From a Rule to send a command to all the small lamps:
allBedroom_Small_Lamps.sendCommand(ON)
On the sitemap use:
Switch item=allBedroom_Small_Lamps
Rule
rule "Bedroom_Small_Lamps received command"
when
Item Bedroom_Small_Lamps received command
then
Bedroom_Small_Lamp_One.sendCommand(receivedCommand)
Bedroom_Small_Lamp_Two.sendCommand(receivedCommand)
end
Thanks for the answer, sadly all of them work but none of them do what i want. I don’t want to do the logic in openhab i have a node-red layer which will analyse the mqtt comands. What i want is that the UI reflect on the change of when i trigger small lamps switchit trigger the switch on the UI for the two individual switches as well. Can it be done somehow?
If the lights are actually turned OFF then the UI will show them as OFF. If the lights are ON, or nothing has told OH that the lights have turned OFF then there is nothing you can do. OH has to be told that the light has become a new state.
And these sorts of details like the fact that you are using NodeRed are pretty important to include in your original posting in the future.