Deconz-rest-plugin: Group for aqara opple

Created on 20 Oct 2020  路  7Comments  路  Source: dresden-elektronik/deconz-rest-plugin

Describe the question or issue you are having

Hello i own OPPLE switch 2-gang my question is can these switches create a group like the IKEA remote with 5 buttons ?
I would very much like to replace all the switches in my home with aqara opple and creating a group is important to me so I will be able to control my lighting even if the raspberry pi crashes

Environment

  • Host system: (Raspberry Pi)
  • Firmware version: (26660700)
  • deCONZ version: (2.05.86)
  • Device: (ConBee II)
  • Do you use an USB extension cable: (yes) -- only relevant for ConBee I/II
  • Is there any other USB or serial devices connected to the host system? No
User Question stale

All 7 comments

No, they cannot.

thank you for your response was disappointing and quick
馃榿

@ebaauw which switches create a group?

Wireless switches with client (grey) _On/Off_, _Level Control_, _Color Control_, or _Scenes_ clusters control lights directly. These clusters can be bound to a group address, so they send commands using groupcasts. The API plugin eavesdrops on these commands, sets config.group in the switch鈥檚 /sensors resource, creates the /groups resource, and maps the command to a buttonevent value.

Wireless switches with server (blue) clusters (typically manufacturer specific) send notifications, just like a sensor. These clusters are bound to the gateway, so they send the notification there. The API plugin maps the notification to a buttonevent value. The lights are controlled by the gateway, using rules.

The obvious advantage of controllers is that they continue to work when the gateway is down. The disadvantage is that they only support a limited set of commands. The commands sent by some pro-grade switches, like ubisys, can actually be configured, but consumer-grade switches have hard-coded the commands in there firmware. As the API maps these command to button events, you can still use gateway rules for more elaborate actions.

The advantage of sensors is that they allow for more elaborate button events, like initial press vs release, hold, double click, triple click, etc.

Most wireless switches act as controller, not requiring a gateway to function. Some act as sensors. Hue switches actually acts as controller and sensor at the same time. The Opple can act as either, but not at the same time. The API configures it as controller, to support the advanced button events. In theory, we could use config.mode to select the mode for the Opple, but sending commands (to change the configuration) to wireless switches is a bitch, as they are only reachable during pairing and shortly after you press a button. We鈥檇 have to use config.pending, to hold the change until the switch has become reachable. And we鈥檇 have to add a second button map for controller mode.

Thanks for the comprehensive answer. Do you have future plans to configure these opple settings

Me personally? Probably not, at least not before API v2.

As there hasn't been any response in 21 days, this issue has been automatically marked as stale. At OP: Please either close this issue or keep it active It will be closed in 7 days if no further activity occurs.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

PremiumUsername picture PremiumUsername  路  500Comments

Thomas-Vos picture Thomas-Vos  路  121Comments

robertlandes picture robertlandes  路  161Comments

meco489 picture meco489  路  273Comments

Jopinder picture Jopinder  路  122Comments