Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Can't togle options/configuration (power_outage_memory) Aqara Smart Plug ZNCZ12LM #15111

Closed
horspiste opened this issue Nov 21, 2022 · 22 comments
Labels
problem Something isn't working

Comments

@horspiste
Copy link

What happened?

The Aqara has multiple configuration options (led_disabled_night,power_outage_memory,auto_off,overload_protection) and they are exposed properly in the "Expose" tab for the device. However when I try to configure them using the Zigbee2mqtt interface I get the following error: (for power_outage_memory).

Publish 'set' 'power_outage_memory' to 'Prise Chauffe Eau' failed: 'Error: Write 0x00158d0008833818/1 aqaraOpple({"513":{"value":1,"type":16}}, {"sendWhen":"immediate","timeout":10000,"disableResponse":false,"disableRecovery":false,"disableDefaultResponse":true,"direction":0,"srcEndpoint":null,"reservedBits":0,"manufacturerCode":4447,"transactionSequenceNumber":null,"writeUndiv":false}) failed (Status 'UNSUPPORTED_ATTRIBUTE')'

What did you expect to happen?

No response

How to reproduce it (minimal and precise)

Just click on the true/false switch on the expose tab for the device for any of the configurable options.

Zigbee2MQTT version

1.28.2

Adapter firmware version

20220219

Adapter

tube_zb_gw_cc2652p2_version_2

Debug log

2022-11-20 22:09:12Received MQTT message on 'zigbee2mqtt/Prise Chauffe Eau/set' with data '{"power_outage_memory":true}'
Debug 2022-11-20 22:09:12Publishing 'set' 'power_outage_memory' to 'Prise Chauffe Eau'
Error 2022-11-20 22:09:12Publish 'set' 'power_outage_memory' to 'Prise Chauffe Eau' failed: 'Error: Write 0x00158d0008833818/1 aqaraOpple({"513":{"value":1,"type":16}}, {"sendWhen":"immediate","timeout":10000,"disableResponse":false,"disableRecovery":false,"disableDefaultResponse":true,"direction":0,"srcEndpoint":null,"reservedBits":0,"manufacturerCode":4447,"transactionSequenceNumber":null,"writeUndiv":false}) failed (Status 'UNSUPPORTED_ATTRIBUTE')'
Debug 2022-11-20 22:09:12Error: Write 0x00158d0008833818/1 aqaraOpple({"513":{"value":1,"type":16}}, {"sendWhen":"immediate","timeout":10000,"disableResponse":false,"disableRecovery":false,"disableDefaultResponse":true,"direction":0,"srcEndpoint":null,"reservedBits":0,"manufacturerCode":4447,"transactionSequenceNumber":null,"writeUndiv":false}) failed (Status 'UNSUPPORTED_ATTRIBUTE') at Endpoint.checkStatus (/app/node_modules/zigbee-herdsman/src/controller/model/endpoint.ts:317:28) at Endpoint.write (/app/node_modules/zigbee-herdsman/src/controller/model/endpoint.ts:397:22) at runMicrotasks () at processTicksAndRejections (node:internal/process/task_queues:96:5) at Object.convertSet (/app/node_modules/zigbee-herdsman-converters/converters/toZigbee.js:2214:17) at Publish.onMQTTMessage (/app/lib/extension/publish.ts:246:36)

@horspiste horspiste added the problem Something isn't working label Nov 21, 2022
@github-actions
Copy link
Contributor

This issue is stale because it has been open 30 days with no activity. Remove stale label or comment or this will be closed in 7 days

@github-actions github-actions bot added the stale Stale issues label Dec 22, 2022
@horspiste
Copy link
Author

horspiste commented Dec 22, 2022 via email

@ricerocketjockey
Copy link

I am also having this problem with the same plug.

Zigbee2MQTT:error 2022-12-22 13:52:04: Publish 'set' 'power_outage_memory' to 'Power' failed: 'Error: Write 0x00158d0008833891/1 aqaraOpple({"513":{"value":1,"type":16}}, {"sendWhen":"immediate","timeout":10000,"disableResponse":false,"disableRecovery":false,"disableDefaultResponse":true,"direction":0,"srcEndpoint":null,"reservedBits":0,"manufacturerCode":4447,"transactionSequenceNumber":null,"writeUndiv":false}) failed (Status 'UNSUPPORTED_ATTRIBUTE')'

@github-actions github-actions bot removed the stale Stale issues label Dec 23, 2022
@DannyFeliz
Copy link

DannyFeliz commented Jan 7, 2023

I have the same issue I also tried with the MQTT Explorer Addon and got the same results.

@thekev
Copy link

thekev commented Jan 23, 2023

Same issue here. I have a zigbee network capture of the error, but it may not be insightful. I have an aqara hub coming today, and I'll work on capturing the vendor-specific interaction for the feature.

@thekev
Copy link

thekev commented Jan 27, 2023

I was able to grab a capture. It looks more like the payload of the ZNCZ11LM. I was able to set it by moving ZNCZ12LM to line 2158 and the switch behaves as expected after power loss. Moving the getter still threw an unsupported attribute error. I didn't capture that transaction from the aqara hub though. I'm not able to put more time into it right now, but I may go for a pull request that covers the full coverage of options.

@victorstein
Copy link

@thekev is the hero we need not the one we deserve.

@smos08
Copy link

smos08 commented Feb 19, 2023

I was able to grab a capture. It looks more like the payload of the ZNCZ11LM. I was able to set it by moving ZNCZ12LM to line 2158 and the switch behaves as expected after power loss. Moving the getter still threw an unsupported attribute error. I didn't capture that transaction from the aqara hub though. I'm not able to put more time into it right now, but I may go for a pull request that covers the full coverage of options.

that would be amazing, thank you

@github-actions
Copy link
Contributor

This issue is stale because it has been open 30 days with no activity. Remove stale label or comment or this will be closed in 7 days

@github-actions github-actions bot added the stale Stale issues label Mar 22, 2023
@handcoding
Copy link

@thekev Can anyone walk me through how to apply the fix that @thekev mentioned? I’m cursed with this same smart plug, and if I could just get the settings to stick, I think I’d be able to use this.

@github-actions github-actions bot removed the stale Stale issues label Mar 28, 2023
@hornet-dev
Copy link

I have the same issue, and am willing to help test any changes or provide additional info. Just let me know.

@github-actions
Copy link
Contributor

This issue is stale because it has been open 30 days with no activity. Remove stale label or comment or this will be closed in 7 days

@github-actions github-actions bot added the stale Stale issues label May 14, 2023
@DannyFeliz
Copy link

Bot, this issue still exists.

@github-actions github-actions bot removed the stale Stale issues label May 15, 2023
@github-actions
Copy link
Contributor

This issue is stale because it has been open 30 days with no activity. Remove stale label or comment or this will be closed in 7 days

@github-actions github-actions bot added the stale Stale issues label Jun 15, 2023
@handcoding
Copy link

Still present.

@github-actions github-actions bot removed the stale Stale issues label Jun 16, 2023
@asapkenzy
Copy link

this issue still exists.

@ravichowdhury88
Copy link

Is there a plan on getting this resolved ?

Koenkk added a commit to Koenkk/zigbee-herdsman-converters that referenced this issue Jul 13, 2023
@Koenkk
Copy link
Owner

Koenkk commented Jul 13, 2023

I've added the fix from @thekev , so this should be fixed now

Changes will be available in the dev branch in a few hours from now. (https://www.zigbee2mqtt.io/advanced/more/switch-to-dev-branch.html)

@thekev
Copy link

thekev commented Jul 13, 2023

Thanks @Koenkk for patching that. I haven't had the will or free time to do a PR.

@smos08
Copy link

smos08 commented Jul 13, 2023

thank you @Koenkk from all of us users

@DannyFeliz
Copy link

@Koenkk thank you for fixing this 🙏🏻

@Koenkk
Copy link
Owner

Koenkk commented Jul 15, 2023

Credits go the @thekev , I just integrated the change 😄

I assume this issue can be closed now.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
problem Something isn't working
Projects
None yet
Development

No branches or pull requests