I'll beat Randy to the punch, though he might have some more suggestions.
First, if you want to visually group there is a grouper script that I've had limited success with.
If you just want a parent/child virtual device for control, that can be fairly easy. Create the parent and children virtual circuits. Edit then to say occupied/empty or whatever you want. If your intention is that the Parent reflect the children as a group, you would just do that with events. If one of the children is set, set the parent. If one of the children is cleared, clear the parent, but only if none of the other children are set. Etc.
Note that in my group that controls the lighting as a group, I DON'T keep the group control up with a "child" if the "child" is set on it's own. Each light can still be controlled independently, having no effect on the group. The group is only used to set the entire collection to the same setting with one event. Even after that, the individual lights can be controlled individually.
What it sounds like is you want the group to maintain the summary status of the children, meaning setting the group would not do anything (you really want to make it status only) and changing the individual children is reflected in the status of the group.
David
First, if you want to visually group there is a grouper script that I've had limited success with.
If you just want a parent/child virtual device for control, that can be fairly easy. Create the parent and children virtual circuits. Edit then to say occupied/empty or whatever you want. If your intention is that the Parent reflect the children as a group, you would just do that with events. If one of the children is set, set the parent. If one of the children is cleared, clear the parent, but only if none of the other children are set. Etc.
Note that in my group that controls the lighting as a group, I DON'T keep the group control up with a "child" if the "child" is set on it's own. Each light can still be controlled independently, having no effect on the group. The group is only used to set the entire collection to the same setting with one event. Even after that, the individual lights can be controlled individually.
What it sounds like is you want the group to maintain the summary status of the children, meaning setting the group would not do anything (you really want to make it status only) and changing the individual children is reflected in the status of the group.
David
Comment