Skip to content

Conversation

@uvNikita
Copy link
Contributor

Proposed change

Fixes: #4503
Part of: #1705

Additional information

Spec docs:
ZB Spec - Socket Outlets - 200522.pdf

Device diagnostics

Checklist

  • The changes are tested and work correctly
  • pre-commit checks pass / the code has been formatted using Black
  • Tests have been added to verify that the new code works
  • Device diagnostics data has been attached

@TheJulianJES TheJulianJES added the priority: medium This should be addressed or looked at soon label Nov 25, 2025
@codecov
Copy link

codecov bot commented Nov 25, 2025

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 92.29%. Comparing base (bf73aa9) to head (427659d).
⚠️ Report is 5 commits behind head on dev.

Additional details and impacted files
@@            Coverage Diff             @@
##              dev    #4521      +/-   ##
==========================================
+ Coverage   92.24%   92.29%   +0.04%     
==========================================
  Files         369      371       +2     
  Lines       12094    12171      +77     
==========================================
+ Hits        11156    11233      +77     
  Misses        938      938              

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@nnae06
Copy link

nnae06 commented Nov 27, 2025

Hello.

I have tried this quirks.
Indicator luminance level - nothing happens when adjusting, not sure what should happen either.
Indicator mode - fully functional, can change indication mode.
Local control mode - does not work, gets error message. Check picture.
1
2

@uvNikita
Copy link
Contributor Author

@nnae06 I don't have this device, so great that you can check it.

I pushed fix for Local control mode that hopefully should resolve the issue.

As for Indicator luminance level, not sure what else I can do there. Everything looks good to me according to the specification.
Can you try to read value from the attribute after changing it in UI? Go to "Manage Zigbee device" -> SEOutletConfiguration Cluster -> se_indicator_luminance_level -> Click on "Read attribute"

@uvNikita
Copy link
Contributor Author

Indicator luminance level - nothing happens when adjusting, not sure what should happen either.

AFAIK, it should adjust led brightness:

image

@nnae06
Copy link

nnae06 commented Nov 27, 2025

Thanks for your help. Even if you don't have the device yourself.

I tried your updated code, unfortunately without success. Still getting that error message.

When I tried to add controls for Schneider motion dimmer I encountered the same problem. I couldn't figure out what the problem was.
1

@uvNikita
Copy link
Contributor Author

The error seem to indicate that this attribute (0x0050) doesn't exist on your device, so I guess spec doc is incorrect, or has a mistake in it.

Can you post signature of this device? To do that, go to "Manage Zigbee Device" -> "Signature"

@uvNikita
Copy link
Contributor Author

Actually, it doesn't look like signature will give us a list of attributes. Not sure if there is a way to get the list of attributes from manufacturer specific cluster.

@TheJulianJES Let me know if you have some pointers, if not, I can remove se_local_control_mode attribute from the PR.

@nnae06
Copy link

nnae06 commented Nov 28, 2025

{
"node_descriptor": {
"logical_type": 1,
"complex_descriptor_available": 0,
"user_descriptor_available": 0,
"reserved": 0,
"aps_flags": 0,
"frequency_band": 8,
"mac_capability_flags": 142,
"manufacturer_code": 4190,
"maximum_buffer_size": 82,
"maximum_incoming_transfer_size": 82,
"server_mask": 11264,
"maximum_outgoing_transfer_size": 82,
"descriptor_capability_field": 0
},
"endpoints": {
"6": {
"profile_id": "0x0104",
"device_type": "0x0009",
"input_clusters": [
"0x0000",
"0x0003",
"0x0004",
"0x0005",
"0x0006",
"0x0702",
"0x0708",
"0x0b04",
"0x0b05",
"0xfc04"
],
"output_clusters": [
"0x0019"
]
},
"242": {
"profile_id": "0xa1e0",
"device_type": "0x0061",
"input_clusters": [],
"output_clusters": [
"0x0021"
]
}
},
"manufacturer": "Schneider Electric",
"model": "SOCKET/OUTLET/1",
"class": "zigpy.quirks.v2.CustomDeviceV2"
}

@uvNikita
Copy link
Contributor Author

uvNikita commented Nov 28, 2025

Zigbee2Mqtt also doesn't have LocalControl attribute. Also their luminance level is enum, but spec says that it's uint8:

https://github.com/Koenkk/zigbee-herdsman-converters/blob/177e497e56b8482d71d65ebf62846d935f0fb419/src/devices/schneider_electric.ts#L154-L174

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

priority: medium This should be addressed or looked at soon

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Expose entities for Schneider Electric outlet SOCKET/OUTLET/1 SOCKET/OUTLET/2

3 participants