Hello openHAB Community,
I’m encountering an issue where sending an ON/OFF command to a group does not propagate to its member items. Here’s my current setup:
Individual Light Item Configuration:
Switch Light_GF_Bedroom_OnOffLight1 "Light_GF_Bedroom_OnOffLight1" <lightbulb> (Group_House_SwitchLight, Group_GF_Bedroom_Light, Group_GF_Bedroom_SwitchLight) ["Switch","Power"] {channel="deconz:onofflight:smarthome:Bedroomonofflight1:switch"}
Group Item Configuration:
Group:Switch:OR(ON, OFF) Group_GF_Bedroom_SwitchLight "Bedroom Light Switch" <lightbulb>
Issue:
When I send an ON/OFF command to Group_GF_Bedroom_SwitchLight
, the Light_GF_Bedroom_OnOffLight1
item does not receive the command.
Troubleshooting Steps Taken:
- Group Membership:
- Verified that
Light_GF_Bedroom_OnOffLight1
is a member ofGroup_GF_Bedroom_SwitchLight
.
- Group Function:
- Understand that the
OR(ON, OFF)
function calculates the group’s state based on its members but does not forward commands to them.
- Group Type:
- Ensured the group is defined as a
Switch
type to handleON
andOFF
commands appropriately.
Potential Solution:
Based on similar discussions in the community, it seems that creating a rule to forward commands from the group to its members might resolve this issue.
Proposed Rule:
rule "Forward commands from group to members"
when
Item Group_GF_Bedroom_SwitchLight received command
then
Group_GF_Bedroom_SwitchLight.members.forEach[item |
item.sendCommand(receivedCommand)
]
end
Request for Assistance:
Before implementing this rule, I wanted to consult the community:
- Is this the recommended approach to ensure commands sent to a group are forwarded to its member items?
- Are there alternative methods or best practices to achieve this functionality?
- Are there any potential pitfalls or considerations I should be aware of when using such a rule?
Thank you in advance for your guidance!