Open alexeiw123 opened 9 months ago
I have found that calling the following service using ZHA toolkit successfully changes the LED indicator mode:
service: zha_toolkit.attr_write
data:
ieee: light.entityname
endpoint: 21
cluster: 0xFF17
attribute: 0
attr_val: 0
manf: 0x105E
where attr_val:
is:
0 = indicator is on when load is on, 1 = Indicator is always on, 2 = indicator is on when load is off, 3 = Indicator is always off
How can we expose these as a UI option for ZHA?
likewise, the values for min and maxi brightness can be adjusted by calling the following services and adjusting attr_val between 1 and 254:
Min level:
service: zha_toolkit.attr_write
data:
ieee: light.entityname
endpoint: 3
cluster: 0x0301
attribute: 0x0010
attr_val: 1
Max level:
service: zha_toolkit.attr_write
data:
ieee: light.entityname
endpoint: 3
cluster: 0x0301
attribute: 0x0011
attr_val: 254
There hasn't been any activity on this issue recently. Due to the high number of incoming GitHub notifications, we have to clean some of the old issues, as many of them have already been resolved with the latest updates. Please make sure to update to the latest version and check if that solves the issue. Let us know if that works for you by adding a comment π This issue has now been marked as stale and will be closed if no further activity occurs. Thank you for your contributions.
I think the bot should stay out of itπ
the controls are still needed for this device. Please add.
Problem description
This switch is detected by ZHA without a custom quirk, but is missing some core settings functionality that is supported using the clipsal/Schneider zigbee hub.
as described here the switch has a configurable backlit LED behind the button which can operate in one of four modes: Reverse with load, Consistent with load, Always on and Always off.
Additionally, there are also minimum and maximum ballast settings which allow configuration of the minimum and maximum brightness controls, which helps to configure for different lights that have different dimmer responses.
Solution description
Add UI controls for "LED indicator mode", "ballast minimum" and "ballast maximum".
The LED Indicator solution should also apply for the related device 41E2PBSWMZ. This is the non-dimming wiser switch without ballast options. I do not have one of these non-dimmer units to test on.
Screenshots/Video
No response
Device signature
Device signature
```json { "node_descriptor": "NodeDescriptor(logical_type=Diagnostic information
No response
Logs
No response
Custom quirk
No response
Additional information
ZHA Toolbox Scan
```json { "ieee": "00:3c:84:ff:fe:04:8c:ce", "nwk": "0x3d00", "model": "CH/DIMMER/1", "manufacturer": "Schneider Electric", "manufacturer_id": "0x4190", "endpoints": [ { "id": 3, "device_type": "0x0101", "profile": "0x0104", "in_clusters": { "0x0000": { "cluster_id": "0x0000", "title": "Basic", "name": "basic", "attributes": { "0x0000": { "attribute_id": "0x0000", "attribute_name": "zcl_version", "value_type": [ "0x20", "uint8_t", "Analog" ], "access": "READ|REPORT", "access_acl": 5, "attribute_value": 3 }, "0x0001": { "attribute_id": "0x0001", "attribute_name": "app_version", "value_type": [ "0x20", "uint8_t", "Analog" ], "access": "READ|REPORT", "access_acl": 5, "attribute_value": 2 }, "0x0002": { "attribute_id": "0x0002", "attribute_name": "stack_version", "value_type": [ "0x20", "uint8_t", "Analog" ], "access": "READ|REPORT", "access_acl": 5, "attribute_value": 6 }, "0x0003": { "attribute_id": "0x0003", "attribute_name": "hw_version", "value_type": [ "0x20", "uint8_t", "Analog" ], "access": "READ|REPORT", "access_acl": 5, "attribute_value": 1 }, "0x0004": { "attribute_id": "0x0004", "attribute_name": "manufacturer", "value_type": [ "0x42", "CharacterString", "Discrete" ], "access": "READ|REPORT", "access_acl": 5, "attribute_value": "Schneider Electric" }, "0x0005": { "attribute_id": "0x0005", "attribute_name": "model", "value_type": [ "0x42", "CharacterString", "Discrete" ], "access": "READ|REPORT", "access_acl": 5, "attribute_value": "CH/DIMMER/1" }, "0x0006": { "attribute_id": "0x0006", "attribute_name": "date_code", "value_type": [ "0x42", "CharacterString", "Discrete" ], "access": "READ|REPORT", "access_acl": 5, "attribute_value": "" }, "0x0007": { "attribute_id": "0x0007", "attribute_name": "power_source", "value_type": [ "0x30", "enum8", "Discrete" ], "access": "READ|REPORT", "access_acl": 5, "attribute_value": 1 }, "0x0008": { "attribute_id": "0x0008", "attribute_name": "generic_device_class", "value_type": [ "0x30", "enum8", "Discrete" ], "access": "READ|REPORT", "access_acl": 5, "attribute_value": 0 }, "0x0009": { "attribute_id": "0x0009", "attribute_name": "generic_device_type", "value_type": [ "0x30", "enum8", "Discrete" ], "access": "READ|REPORT", "access_acl": 5, "attribute_value": 225 }, "0x000a": { "attribute_id": "0x000a", "attribute_name": "product_code", "value_type": [ "0x41", "LVBytes", "Discrete" ], "access": "READ|REPORT", "access_acl": 5, "attribute_value": "" }, "0x000b": { "attribute_id": "0x000b", "attribute_name": "product_url", "value_type": [ "0x42", "CharacterString", "Discrete" ], "access": "READ|REPORT", "access_acl": 5, "attribute_value": "http://www.schneider-electric.com" }, "0x4000": { "attribute_id": "0x4000", "attribute_name": "sw_build_id", "value_type": [ "0x42", "CharacterString", "Discrete" ], "access": "READ|REPORT", "access_acl": 5, "attribute_value": "002.002.006 R" }, "0xfffd": { "attribute_id": "0xfffd", "attribute_name": "cluster_revision", "value_type": [ "0x21", "uint16_t", "Analog" ], "access": "READ|REPORT", "access_acl": 5, "attribute_value": 2 }, "0xe001": { "attribute_id": "0xe001", "attribute_name": "57345", "value_type": [ "0x42", "CharacterString", "Discrete" ], "access": "READ|REPORT", "access_acl": 5, "manf_id": 4190, "attribute_value": "002.002.006 R" }, "0xe002": { "attribute_id": "0xe002", "attribute_name": "57346", "value_type": [ "0x42", "CharacterString", "Discrete" ], "access": "READ|REPORT", "access_acl": 5, "manf_id": 4190, "attribute_value": "001.000.000" }, "0xe004": { "attribute_id": "0xe004", "attribute_name": "57348", "value_type": [ "0x42", "CharacterString", "Discrete" ], "access": "READ|REPORT", "access_acl": 5, "manf_id": 4190, "attribute_value": "363036443100000" }, "0xe007": { "attribute_id": "0xe007", "attribute_name": "57351", "value_type": [ "0x31", "enum16", "Discrete" ], "access": "READ|REPORT", "access_acl": 5, "manf_id": 4190, "attribute_value": 17434 }, "0xe008": { "attribute_id": "0xe008", "attribute_name": "57352", "value_type": [ "0x42", "CharacterString", "Discrete" ], "access": "READ|REPORT", "access_acl": 5, "manf_id": 4190, "attribute_value": "Wiser Light" }, "0xe009": { "attribute_id": "0xe009", "attribute_name": "57353", "value_type": [ "0x42", "CharacterString", "Discrete" ], "access": "READ|REPORT", "access_acl": 5, "manf_id": 4190, "attribute_value": "CH/DIMMER/1" }, "0xe00a": { "attribute_id": "0xe00a", "attribute_name": "57354", "value_type": [ "0x42", "CharacterString", "Discrete" ], "access": "READ|REPORT", "access_acl": 5, "manf_id": 4190, "attribute_value": "Wiser Home" }, "0xe00b": { "attribute_id": "0xe00b", "attribute_name": "57355", "value_type": [ "0x42", "CharacterString", "Discrete" ], "access": "READ|REPORT", "access_acl": 5, "manf_id": 4190 } }, "commands_received": { "0x00": { "command_id": "0x00", "command_name": "reset_fact_default", "command_arguments": "Z2MQTT support of these features Github discussion on adding support to Z2MQTT
My interpretation of the above is that the cluster "0xff17" as seen in the scan results is related to the LED indicator mode (code snippet below). The ZHA UI for this cluster does not show any attributes or commands.
I am more than happy to spend time testing and debugging but I must stress that I have next to no experience with ZHA and am totally lost when it comes to json, quirks, etc.