Skip to content

Conversation

@Nerivec
Copy link
Collaborator

@Nerivec Nerivec commented Nov 29, 2025

WIP

Move scene handling to ZH (spec).
Main goal is to better sync state/scenes so we don't get as many mismatches in e.g. frontend.

  • Adds missing barrierControl & hvacThermostat clusters with respective scene-capable attributes (per R8 spec)
  • Use more advanced sync mechanisms (depending on request)
    • scene from Zigbee
    • scene from state (clusters cache)
    • state (clusters cache) from scene
  • Sync all clusters/attributes (ZHC did only a subset)
  • Unicast sync done using view command to save "as it is on device" [subject to change, may not be necessary, needs actual tests]
  • Groupcast sync done locally on "best-effort" (no feedback on request, many view requests required otherwise)
  • Remove scenes on group(s) removal according to spec
  • Add migration from .meta.scenes to .scenes for database

CC: @MfCrizz

@Nerivec
Copy link
Collaborator Author

Nerivec commented Nov 29, 2025

@Koenkk any initial thoughts on this?
For the Z2M part, could add a dedicated extension or just do pass-through in bridge.

@Koenkk
Copy link
Owner

Koenkk commented Nov 30, 2025

@Nerivec similar to groups, I agree this also deserves to be in zigbee-herdman indeed, code looks good to me!

@Nerivec Nerivec changed the title feat: add scene handling feat: add scene handling (move from ZHC) Nov 30, 2025
@Nerivec Nerivec force-pushed the scenes branch 3 times, most recently from 61388f7 to 8ea3db6 Compare December 4, 2025 20:57
@Nerivec Nerivec force-pushed the scenes branch 2 times, most recently from 766071e to 5c433fd Compare December 7, 2025 22:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants