ioBroker.zigbee icon indicating copy to clipboard operation
ioBroker.zigbee copied to clipboard

AnyOn datapoint for using groups with scenes

Open ScumbagSteve opened this issue 2 years ago • 3 comments

I have a group for every single room. Most of the times however I control my lights via scenes. My scenes turn every single light to it's desired state (brightness, color, on/off). Right now, the group remains turned off, when I control the individual lights via scenes (even though in the end all members of the group are "on"). This however gives me no possibility to see the "real" on / off state of the room in my visualization.

I would like to propose two possible solutions, based on what I saw in the hue-extended adapter:

  1. Intoduce a data-point "AnyOn" for groups, which show for each group if a member is turned on.
  2. Change the behavior of the "state" for groups. When a member is on, change state for the group to "on" as well.

ScumbagSteve avatar Mar 03 '22 08:03 ScumbagSteve

Both requested changes are not easily implemented, as the zigbee adapter does not internally track group members. Group membership is passed on to the zigbee-herdsman and no longer stored within the zigbee adapter. As such, there is no access to group membership for devices.

I see two possible solutions:

  • Programmatically check for group membership on every state change in order to update the group state. This also entails an automatic detection which states are relevant for group membership, as not every state defined as "state" is a valid for the group. It may be feasible for a display only "AnyOn" state - a change for the "state" is not considered feasible. This approach is limited by the need to identify the source of the change. Without checking, i can not safely say if the message received links back to the endpoint which initiated the change or the device which initiated the change.
  • in regular intervals query the relevant states from every group member. This is not as straight forward as it sounds, as the link between the relevant group member information and the ioBroker state for this is not easily queried. (Example: This device contains 3 states which are linked to 3 different endpoints, each of which can be member of a group. The connection between a state, the relevant endpoint and the relevant group is not easily queried.

A.

asgothian avatar Mar 03 '22 09:03 asgothian

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

stale[bot] avatar May 02 '22 20:05 stale[bot]

This is still up-to-date and would be an useful improvement.

ScumbagSteve avatar May 03 '22 22:05 ScumbagSteve

Closing due to lack of interest / implementable ideas.

asgothian avatar Dec 08 '22 22:12 asgothian