opened 10:03PM - 04 Apr 21 UTC
closed 02:20AM - 05 May 21 UTC
Device Request
stale
## Device
- Product name: SR-ZG2833PAC-C4
- Manufacturer: Sunricher
- Model… identifier: ZG2833PAC
- Device type : Switch
This is a wall switch module with four inputs, very similar to the ubisys C4. While the model identifier resembles #4152, this is not a ZGP switch (even though the print on the device suggests so); it's a router with a _GP Combo Basic_ function. It's mains-powered (needing a live and a neutral wire), but it can also be powered by DC 24-48V. The functions of the inputs can be configured (programmed) using the 0xFC00 cluster on the 0xE8 endpoint.
The module provides four _Level Control Switch_ endpoints with client _On/Off_, _Level Control_, and _Scene_ clusters, and two _Window Covering Controller_ clusters with client _Window Covering_ clusters. According to the documentation, the _On/Off_ clusters support sending _On_, _Off_, and _Toggle_; the _Level Control Clusters_ support _Move with On/Off_, and _Stop with On/Off_; the _Scenes_ cluster supports _Recall Scene_; and the _Window Covering_ clusters support _Open_, _Close_, and _Stop_. However, the configuration includes a ZCL command template, so I expect "any" command could be configured. By default
The default configuration maps input 1 to endpoint 0x01, input 2 to 0x02, input 3 to 0x04, and input 4 to 0x04. On the transition from released to pressed, each input issues a _Toggle_, once the _Basic_ cluster on that endpoint has been bound. So, in the default configuration, it could generate `buttonevent` values 1002, 2002, 2003, 2004, very similar to the Hue wall switch module in `rocker` mode.
The configuration allows transitions from {pressed, held (>1 s), released} to {pressed, held (> 1s), released}, so it might be possible to support the Hue sequences of x000/x002 and x000/x001/x003. Not sure if it'll do a transition from held to held for repeated x001 events. There's no mention of how many transitions the device can store. The configuration is an array (0x48) of raw binary data (0x41). Each element has a 1-byte length attribute, followed by a 1-byte input (0-3), a 1-byte transition, a 1-byte endpoint, a 2-byte cluster, and a variable-length ZCL command template. The array has a 2-byte number of entries. This is written to an attribute on the 0xFC00 cluster. It won't be possible to support that from the GUI.
## Screenshots

