Open j0hann3s opened 1 year ago
I just figured out this yesterday.
Apparently the implementation is already done for zhaquirks.xiaomi.aqara.opple_switch.XiaomiOpple2ButtonSwitchFace1
, see: https://github.com/zigpy/zha-device-handlers/blob/0.0.93/zhaquirks/xiaomi/aqara/opple_switch.py#L56-L61
OppleSwitchCluster
Inside the cluster dropdown menu, you will find:
Select OppleSwitchCluster and choose the attribute operation_mode (id: 0x0200)
You can read the current value by pressing "READ ATTRIBUTE"
The operation_mode will be one of:
0
1
You can change the operation mode by writing a numeric value into the value
like this:
You can repeat the same for the another button
I just figured out this yesterday.
Apparently the implementation is already done for
zhaquirks.xiaomi.aqara.opple_switch.XiaomiOpple2ButtonSwitchFace1
, see: https://github.com/zigpy/zha-device-handlers/blob/0.0.93/zhaquirks/xiaomi/aqara/opple_switch.py#L56-L61How to enable decoupled mode:
Step 1 - Manage Zigbee Device
1. In your Device view, under Device info, click on the 3 dots menu 2. Manage zigbee device
Step 2 - Choose
OppleSwitchCluster
Inside the cluster dropdown menu, you will find:
* OppleSwitchCluster (Endpoint id: 1) - This correspond to button_1 (left side) * OppleSwitchCluster (Endpoint id: 2) - This correspond to button_2 (right side)
Select OppleSwitchCluster and choose the attribute
operation_mode (id: 0x0200)
You can read the current value by pressing "READ ATTRIBUTE"
The operation_mode will be one of:
* OppleOperationMode.Decoupled - `0` * OppleOperationMode.Coupled - `1`
Step 3 - Change Operation Mode
You can change the operation mode by writing a numeric value into the
value
like this:You can repeat the same for the another button
As I was looking for this option quite long: It is important to have the ZHA quirks enabled in the config.yaml!
It seems support for single rocker version is already merged in issue #1369 pull requeste #2385
Can this be replicated to double rocker version as well?
I have the same problem of missing the attributes power, temp and configurations. has there been any updates? cant find anything on the web but this device support request?
Thanks @timoei! I was looking for the decoupled mode :) It looks like all supported features in zigbee2mqtt for this switch need to be enabled here too :)
Is there any way to control the LEDs in decoupled mode (as described in this comment: https://github.com/zigpy/zha-device-handlers/issues/2251#issuecomment-1483929748)?
Is your feature request related to a problem? Please describe. I can not capture any used energy measurements in my home assistant instance's history due to missing energy reporting. I also miss the feature to be able to get the device temperature, set the power outage memory setting, turn the indicator led on and off on the device, and set the operation mode to coupled/decoupled.
Describe the solution you'd like An added attribute publishing the sum of consumed energy (kWh) as well as an instantaneous power measurement. Moreover, a device temperature report, being able to set the power outage memory, enable/disable the indicator led, and choosing the operation mode.
Device signature
```yaml { "node_descriptor": "NodeDescriptor(logical_type=Diagnostic information
```yaml { "home_assistant": { "installation_type": "Home Assistant OS", "version": "2023.3.1", "dev": false, "hassio": true, "virtualenv": false, "python_version": "3.10.10", "docker": true, "arch": "x86_64", "timezone": "Europe/Stockholm", "os_name": "Linux", "os_version": "5.15.90", "supervisor": "2023.01.1", "host_os": "Home Assistant OS 9.5", "docker_version": "20.10.22", "chassis": "vm", "run_as_root": true }, "custom_components": { "pyscript": { "version": "1.3.3", "requirements": [ "croniter==1.3.4", "watchdog==2.1.6" ] }, "spotcast": { "version": "v3.6.30", "requirements": [] }, "reversotts": { "version": "1.0.2", "requirements": [ "pyttsreverso==0.4" ] }, "hacs": { "version": "1.31.0", "requirements": [ "aiogithubapi>=22.10.1" ] }, "nodered": { "version": "1.1.3", "requirements": [] } }, "integration_manifest": { "domain": "zha", "name": "Zigbee Home Automation", "after_dependencies": [ "onboarding", "usb" ], "codeowners": [ "@dmulcahey", "@adminiuga", "@puddly" ], "config_flow": true, "dependencies": [ "file_upload" ], "documentation": "https://www.home-assistant.io/integrations/zha", "iot_class": "local_polling", "loggers": [ "aiosqlite", "bellows", "crccheck", "pure_pcapy3", "zhaquirks", "zigpy", "zigpy_deconz", "zigpy_xbee", "zigpy_zigate", "zigpy_znp" ], "requirements": [ "bellows==0.34.9", "pyserial==3.5", "pyserial-asyncio==0.6", "zha-quirks==0.0.93", "zigpy-deconz==0.19.2", "zigpy==0.53.2", "zigpy-xbee==0.16.2", "zigpy-zigate==0.10.3", "zigpy-znp==0.9.3" ], "usb": [ { "vid": "10C4", "pid": "EA60", "description": "*2652*", "known_devices": [ "slae.sh cc2652rb stick" ] }, { "vid": "1A86", "pid": "55D4", "description": "*sonoff*plus*", "known_devices": [ "sonoff zigbee dongle plus v2" ] }, { "vid": "10C4", "pid": "EA60", "description": "*sonoff*plus*", "known_devices": [ "sonoff zigbee dongle plus" ] }, { "vid": "10C4", "pid": "EA60", "description": "*tubeszb*", "known_devices": [ "TubesZB Coordinator" ] }, { "vid": "1A86", "pid": "7523", "description": "*tubeszb*", "known_devices": [ "TubesZB Coordinator" ] }, { "vid": "1A86", "pid": "7523", "description": "*zigstar*", "known_devices": [ "ZigStar Coordinators" ] }, { "vid": "1CF1", "pid": "0030", "description": "*conbee*", "known_devices": [ "Conbee II" ] }, { "vid": "10C4", "pid": "8A2A", "description": "*zigbee*", "known_devices": [ "Nortek HUSBZB-1" ] }, { "vid": "0403", "pid": "6015", "description": "*zigate*", "known_devices": [ "ZiGate+" ] }, { "vid": "10C4", "pid": "EA60", "description": "*zigate*", "known_devices": [ "ZiGate" ] }, { "vid": "10C4", "pid": "8B34", "description": "*bv 2010/10*", "known_devices": [ "Bitron Video AV2010/10" ] } ], "zeroconf": [ { "type": "_esphomelib._tcp.local.", "name": "tube*" }, { "type": "_zigate-zigbee-gateway._tcp.local.", "name": "*zigate*" }, { "type": "_zigstar_gw._tcp.local.", "name": "*zigstar*" }, { "type": "_slzb-06._tcp.local.", "name": "slzb-06*" } ], "is_built_in": true }, "data": { "ieee": "**REDACTED**", "nwk": 38020, "manufacturer": "LUMI", "model": "lumi.switch.n2aeu1", "name": "LUMI lumi.switch.n2aeu1", "quirk_applied": true, "quirk_class": "zhaquirks.xiaomi.aqara.opple_switch.XiaomiOpple2ButtonSwitchFace2", "manufacturer_code": 4447, "power_source": "Mains", "lqi": 255, "rssi": -52, "last_seen": "2023-03-03T20:31:21", "available": true, "device_type": "Router", "signature": { "node_descriptor": "NodeDescriptor(logical_type=Additional logs
``` Paste any additional debug logs here. Don't remove the extra line breaks outside the ``` marks. ```Additional context Here is a screenshot of how it looks in ZHA right now. I am using the SkyConnect adapter.
Here is a screenshot of how the same switch looks inside Z2M and what attributes it exposes.