Hi @curing!
Not yet: the Zigbee2mqtt integration in Gladys imports devices from Z2M, but not yet groups. They therefore do not appear in the device list, and you cannot choose them in « Control a device ».
In the meantime, you have two solutions depending on what you want to do.
1. To turn on or off, a single block is already sufficient
The actions « Turn on the lights », « Turn off the lights » and « Toggle the lights » accept multiple lights in the same block. You put all the bulbs in your entrance ceiling in a single block, without making one per bulb. The plugs work the same way, with « Turn on the plugs », etc.
There is a small difference with a Z2M group: Gladys sends a command to each bulb (all at the same time), whereas the Z2M group sends a single Zigbee command to the entire group. In practice, the bulbs react almost together, but with many bulbs you can see a slight delay.
2. For brightness or color: the Z2M message, with examples to copy
« Control a device » only handles one device at a time. To adjust the brightness or color of a group, the simplest solution is therefore « Send a Zigbee2mqtt message ». There are only two fields to fill in:
- Topic:
zigbee2mqtt/Entrance Ceiling/set(the exact name of the group in Z2M, with the same capitalization and accents) - Message: the one that corresponds to what you want to do
| What you want | Message |
|---|---|
| Turn on | {"state": "ON"} |
| Turn off | {"state": "OFF"} |
| Toggle | {"state": "TOGGLE"} |
| Turn on to about 50 % | {"state": "ON", "brightness": 127} (from 0 to 254) |
| Warm white | {"color_temp": 370} (around 2700 K; 153 = cold white, around 500 = very warm, depending on your bulbs) |
| A color | {"color": {"hex": "#FF8800"}} |
| With a 2-second fade | {"state": "ON", "brightness": 200, "transition": 2} |
Tip to keep scenes readable: create a small scene per ambiance, for example « Entrance ceiling – 30 % », which contains only this Z2M message. In your other scenes, you call it with the action « Start the scene ». Your main scenes remain clear, and the JSON is written in only one place.
To manage groups directly in Gladys, there is an open feature request. Do not hesitate to vote and to tell your use case: Pouvoir gérer un groupe d'appareil