Skip to content

[Enhancement]: use /api/groups link data for richer scene status (any-on / all-on / matches-target) #174

Description

@shbatm

Idea

The eisy exposes an /api/groups endpoint that expands what /rest/nodes <group> carries. It lists each group's controllers and, per controller, the full member link records — including the link's target parameters (on-level/ramp the scene drives each member to), not just membership.

Captured shape (anonymised structure):

{ successful, data: { groups: [ { id, ctl: [ { id, links: [ { linkdef, node, params, type } ] } ] } ] } }

(93 groups in the sample capture.) links[].params carries the per-member target state the scene sets — which /rest/nodes does not provide.

Why it's useful

Today Group.group_all_on / group_any_on are coarse aggregates over member ST (non-zero = on). With link target data we could offer a much better scene status:

  • any-on / all-on (as today, but membership sourced more reliably),
  • scene_matches_target — every member's live ST equals the level the scene's link would set → "the scene is actually active as programmed", vs. partially/manually diverged.

That matches-target signal is what consumers really want for a scene switch's is_on and for follower/"chaser" automations, instead of inferring from a single representative member.

Scope / notes

Filed as a separate enhancement (not blocking #173).

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions