Group Exposes always displays unknown state (?) despite valid group state being published via MQTT

Open Beginner friendly
#33,925 0 comments 0 reactions 0 assignees View on GitHub

Maintainers usually reply within 1 day

Nobody has claimed this yet.

Assessment

Difficulty
2/5
Estimated time
1-3 hours
Newbie friendliness
76/100
Issue type
Bug
Clarity
Clearly specified
Activity status
Active
Tech stack
typescript

Research direction

Start in src/components/group-page/tabs/Exposes.tsx, where the issue identifies Feature as receiving an empty deviceState. Trace how the group’s published state is made available to this page and compare it with individual device exposes. Done when the group State control reflects its reported ON/OFF state, or clearly indicates that displaying it is unsupported; check whether #377 provides relevant context.

Written by the indexing model from the issue text.

Description

problem
What happened?

When navigating to Groups → [Group Name] → Exposes, the State control permanently displays:

OFF ? ON

This occurs regardless of whether the group is currently ON or OFF.

The OFF and ON controls work correctly, but the displayed state remains unknown. Clicking the refresh button also appears to have no effect on the displayed state.

To eliminate any complications involving overlapping groups, I tested this using a simple group containing four IKEA lights, none of which belong to another Zigbee2MQTT light group.

All four individual devices and the corresponding group entity correctly report their states in Home Assistant.

However, the Group Exposes page continues to display an unknown state.

What did you expect to happen?

Where a valid group state is available, I would expect the State control to reflect the current reported ON/OFF state, in a similar manner to individual device exposes.

If displaying group state is intentionally unsupported, it would be helpful to make this clearer to the user.

How to reproduce it (minimal and precise)

No response

Zigbee2MQTT version

2.14.4

Adapter firmware version

Nerivec EmberZNet 9.1.2 [GA] – v2026.6.2-pre1

Adapter

SONOFF Dongle Max (Dongle-M) – EFR32MG24 – Ember – 460800 baud – Ethernet

Setup

Zigbee2MQTT running as a Home Assistant add-on.

Hardware: Dell Wyse 5070
CPU: Intel Pentium Silver J5005
RAM: 8 GB

Coordinator: SONOFF Dongle Max (Dongle-M)
Connection: Ethernet (TCP)
Adapter: ember
Firmware: Nerivec 9.1.2
Baudrate: 460800

The network contains multiple overlapping Zigbee groups.

Device database.db entry

N/A

Debug log

No response

Notes

Looking at src/components/group-page/tabs/Exposes.tsx, I noticed that the Feature component is explicitly passed an empty state object:

deviceState={{}}

Could this explain why the current group state is never displayed?

Is this intentional, or could the existing published group state be supplied to the component instead?

Possibly related to #377.

Dominant language
TypeScript
Stars
15.9k
Forks
2.1k
Avg merge
12h 11m
Merged PRs (30d)
32

Getting set up

Open in Codespaces

Starts the project's dev container in your browser, under your own GitHub account.

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from Koenkk/zigbee2mqtt

All issues in Koenkk/zigbee2mqtt

Similar issues

More TypeScript issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.