Group Switch Not Forwarding Commands to Member Items

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:

  1. Group Membership:
  • Verified that Light_GF_Bedroom_OnOffLight1 is a member of Group_GF_Bedroom_SwitchLight.
  1. 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.
  1. Group Type:
  • Ensured the group is defined as a Switch type to handle ON and OFF 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.

community.openhab.org

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!

It should work. Do you see command events in events.log? Do you see any errors in any of the logs?

It depends. Some technologies can’t handle a barrage of commands all at once and will drop some of them. So sometimes you need to put some time between the command to keep them from being dropped.

Other times you don’t want to command an Item that’s already in the desired state. So you would need a filter to not command the Items that are already in the desired state.

But if neither of these are the case, usually the recommended approach is to command the Group and the commands will be forwarded to the members.

Sometimes the Follow profile is useful.

Nothing I can think of.

Okay the problem is in the deconz thing that the items are offline…I solve this issue and now its running…