zigbee2mqtt icon indicating copy to clipboard operation
zigbee2mqtt copied to clipboard

Multiple ThirdReality devices are showing MAINS powered instead of BATTERY. Causing availability flooding!

Open Emerica243 opened this issue 1 year ago • 19 comments

What happened?

First time Z2M user here. I started migrating a handful of my devices over from ZHA and alot of my ThirdReality battery powered devices are showing mains powered, when they are actually battery powered. Im not sure what other impact this has other then they keep showing offline because its using the availability settings thinking its a mains powered device, when its not.

What did you expect to happen?

Battery powered devices to come in as battery powered, not mains.

How to reproduce it (minimal and precise)

Pair one of the following devices and it will show mains, even though theyre battery powered devices.

Third Reality Smart Button - 3RSB22BZ Third Reality Thermometer - 3RTHS24BZ

I have more Third Reality devices to pair, so there may be more that show their power source incorrectly.

Zigbee2MQTT version

2.4.0

Adapter firmware version

20240710

Adapter

SLZB06

Setup

Add-on in HAOS

Debug log

No response

Emerica243 avatar Jun 15 '25 00:06 Emerica243

Fixed!

Changes will be available in the dev branch in a few hours from now and in the next release which is every 1st of the month.

After updating reconfigure the devices by pressing the yellow refresh button (make sure it succeeds by waking-up the device before doing so) and restart z2m.

Koenkk avatar Jun 15 '25 11:06 Koenkk

@Koenkk Hello, if there are any issues related to our company's products in the future, you can @ me.The issue mentioned above only requires modifying the powerSource in the product code, without modifying z2m

3reality-support avatar Jun 24 '25 06:06 3reality-support

@Koenkk, when trying to reconfigure a ThirdReality button (3RSB22BZ) after updating to 2.5.0, I'm getting the following error. Thoughts?

[2025-07-01 17:36:36] frontend:api: Error: Failed to configure (Bind .../1 genPowerCfg from '.../1' failed (AREQ - ZDO - bindRsp after 10000ms))

@a-k-home-assistant-integration If you are in a hurry, you can add an external converter for the button locally, or wait for us to fix this issue, which may take a bit longer

3reality-support avatar Jul 02 '25 03:07 3reality-support

@a-k-home-assistant-integration If you are in a hurry, you can add an external converter for the button locally, or wait for us to fix this issue, which may take a bit longer

have tried adding the converter you provided but adding it as is results in syntax error on load [2025-07-04 12:43:32] error: z2m: Failed to load external extension '3r_buttons.js'. Check the code for syntax error and make sure it is up to date with the current Zigbee2MQTT version. [2025-07-04 12:43:32] error: z2m: Invalid external extension '3r_buttons.js' was ignored and renamed to prevent interference with Zigbee2MQTT.

I tried only including the lines below "// Add the lines below" and get the same error.

Getting pretty frustrating that these buttons are advertised as HA compatible both with ZHA and Z2M and seem to have not actually been tested successfully, at least not with Z2M.

sienar1 avatar Jul 04 '25 16:07 sienar1

Both devices reported are still showing as mains powered.

Version: 2.5.1-1

Sandriell avatar Jul 24 '25 22:07 Sandriell

You will have to re-configure the device by pressing the refresh button the device about page to fix this (and then restart z2m).

Koenkk avatar Jul 25 '25 15:07 Koenkk

Im a bit hesitant to perform an update from 2.4.0 to latest 2.5.1 based on what was last said a few posts above by [@a-k-home-assistant-integration

Being new to z2m, and what hes mentioned, should i be concerned with my TR devices breaking after i update?

Emerica243 avatar Jul 25 '25 22:07 Emerica243

You will have to re-configure the device by pressing the refresh button the device about page to fix this (and then restart z2m).

Yeah, that fails, as previously reported.

3RSB22BZ: 2025-07-26 01:58:46z2m: Failed to configure 'Button', attempt 4 (Error: ZCL command 0x282c02bfffee97cd/1 genPowerCfg.configReport([{"minimumReportInterval":3600,"maximumReportInterval":65000,"reportableChange":10,"attribute":"batteryPercentageRemaining"}], {"timeout":10000,"disableResponse":false,"disableRecovery":false,"disableDefaultResponse":true,"direction":0,"reservedBits":0,"writeUndiv":false}) failed (Status 'UNSUPPORTED_ATTRIBUTE') at Endpoint.checkStatus (/app/node_modules/.pnpm/[email protected]/node_modules/zigbee-herdsman/src/controller/model/endpoint.ts:363:28) at Endpoint.zclCommand (/app/node_modules/.pnpm/[email protected]/node_modules/zigbee-herdsman/src/controller/model/endpoint.ts:987:26) at processTicksAndRejections (node:internal/process/task_queues:105:5) at Endpoint.configureReporting (/app/node_modules/.pnpm/[email protected]/node_modules/zigbee-herdsman/src/controller/model/endpoint.ts:707:9) at setupAttributes (/app/node_modules/.pnpm/[email protected]/node_modules/zigbee-herdsman-converters/src/lib/modernExtend.ts:160:17) at configure (/app/node_modules/.pnpm/[email protected]/node_modules/zigbee-herdsman-converters/src/lib/modernExtend.ts:221:17) at Object.configure (/app/node_modules/.pnpm/[email protected]/node_modules/zigbee-herdsman-converters/src/index.ts:363:21) at Configure.configure (/app/lib/extension/configure.ts:123:13) at Configure.onMQTTMessage (/app/lib/extension/configure.ts:46:25) at EventEmitter.wrappedCallback (/app/lib/eventBus.ts:252:17))

and

3RTHS24BZ: 2025-07-26 02:05:58z2m: Failed to configure 'Filament Box A Environmental Sensor', attempt 1 (Error: Bind 0xffffb40e0600d4b5/1 msRelativeHumidity from '0x00124b0024c0f03a/1' failed (AREQ - ZDO - bindRsp after 10000ms) at Object.start (/app/node_modules/.pnpm/[email protected]/node_modules/zigbee-herdsman/src/utils/waitress.ts:67:23) at func (/app/node_modules/.pnpm/[email protected]/node_modules/zigbee-herdsman/src/adapter/z-stack/adapter/zStackAdapter.ts:419:47) at processTicksAndRejections (node:internal/process/task_queues:105:5) at Queue.execute (/app/node_modules/.pnpm/[email protected]/node_modules/zigbee-herdsman/src/utils/queue.ts:36:20) at ZStackAdapter.sendZdoInternal (/app/node_modules/.pnpm/[email protected]/node_modules/zigbee-herdsman/src/adapter/z-stack/adapter/zStackAdapter.ts:424:43) at ZStackAdapter.sendZdo (/app/node_modules/.pnpm/[email protected]/node_modules/zigbee-herdsman/src/adapter/z-stack/adapter/zStackAdapter.ts:301:16) at Endpoint.bind (/app/node_modules/.pnpm/[email protected]/node_modules/zigbee-herdsman/src/controller/model/endpoint.ts:580:30) at setupAttributes (/app/node_modules/.pnpm/[email protected]/node_modules/zigbee-herdsman-converters/src/lib/modernExtend.ts:158:13) at configure (/app/node_modules/.pnpm/[email protected]/node_modules/zigbee-herdsman-converters/src/lib/modernExtend.ts:221:17) at Object.configure (/app/node_modules/.pnpm/[email protected]/node_modules/zigbee-herdsman-converters/src/index.ts:363:21))

Sandriell avatar Jul 26 '25 06:07 Sandriell

Hello, we have received your feedback and the relevant developers are currently fixing this issue. Other 3R products in the future will fix this bug

3reality-support avatar Jul 31 '25 01:07 3reality-support

Does that mean that the current Smart Buttons that I just bought will never work correctly with Z2M?

sienar1 avatar Aug 01 '25 21:08 sienar1

No, the button can work normally on z2m. Is there any problem encountered now

Does that mean that the current Smart Buttons that I just bought will never work correctly with Z2M?

3reality-support avatar Aug 04 '25 02:08 3reality-support

No, the button can work normally on z2m. Is there any problem encountered now

Does that mean that the current Smart Buttons that I just bought will never work correctly with Z2M?

Yes, the same problem is still happening. I don't know why this issue got closed. The suggested fixes do not work.

The buttons do not work in the current version of Z2M. When pairing the button to Z2M 2.6.0 it reports as Mains Powered and fails to configure. It works for a while and then if you don't use it for some time Z2M reports it as dead because it expects regular regular activity in under 10 minutes for Mains Powered devices.

[2025-08-31 17:08:50] z2m: Failed to configure '0xffffb40e06007ca2', attempt 3 (Error: ZCL command 0xffffb40e06007ca2/1 genPowerCfg.configReport([{"minimumReportInterval":3600,"maximumReportInterval":65000,"reportableChange":10,"attribute":"batteryPercentageRemaining"}], {"timeout":10000,"disableResponse":false,"disableRecovery":false,"disableDefaultResponse":true,"direction":0,"reservedBits":0,"writeUndiv":false}) failed (Status 'UNSUPPORTED_ATTRIBUTE') at Endpoint.checkStatus (/app/node_modules/.pnpm/[email protected]/node_modules/zigbee-herdsman/src/controller/model/endpoint.ts:372:28) at Endpoint.zclCommand (/app/node_modules/.pnpm/[email protected]/node_modules/zigbee-herdsman/src/controller/model/endpoint.ts:1005:26) at Endpoint.configureReporting (/app/node_modules/.pnpm/[email protected]/node_modules/zigbee-herdsman/src/controller/model/endpoint.ts:727:9) at setupAttributes (/app/node_modules/.pnpm/[email protected]/node_modules/zigbee-herdsman-converters/src/lib/modernExtend.ts:160:17) at configure (/app/node_modules/.pnpm/[email protected]/node_modules/zigbee-herdsman-converters/src/lib/modernExtend.ts:221:17) at Object.configure (/app/node_modules/.pnpm/[email protected]/node_modules/zigbee-herdsman-converters/src/index.ts:363:21) at Configure.configure (/app/lib/extension/configure.ts:123:13) at EventEmitter.wrappedCallback (/app/lib/eventBus.ts:252:17))

I see a commit was made 2 weeks ago that I believe forces Z2M to treat the button as battery powered. Is that going to be included in the September release of Z2M?

sienar1 avatar Aug 31 '25 21:08 sienar1

@3reality-support On the October release now and this issue has still not been corrected.

Sandriell avatar Oct 08 '25 13:10 Sandriell

I had been experiencing similar issues with a 3RSB22BZ smart button but some combination of updating Z2M and an OTA update of the button's firmware appears to have finally fixed it. I'm unsure exactly which of the steps I took were responsible for solving the issue, so I'll list them all.

  • Up to and including Z2M 2.6.2, attempting to reconfigure resulted in the "Failed to configure" error reported by others. Z2M reported that an OTA update was available, but I was unable to start the update.
  • After updating to Z2M 2.6.3, reconfiguration still failed but the OTA update now worked. I updated my 3RSB22BZ's firmware to v47.
  • I performed the reconfiguration operation again after updating the device firmware and it completed successfully. The button now correctly displays a battery as its power source.
Image

S-Z avatar Nov 03 '25 13:11 S-Z

@3reality-support On the October release now and this issue has still not been corrected.

This issue has been fixed in version 47 and can be upgraded to version 47

3reality-support avatar Nov 03 '25 16:11 3reality-support

@3reality-support On the October release now and this issue has still not been corrected.

This issue has been fixed in version 47 and can be upgraded to version 47

Yes, looks like the Smart Button (3RSB22BZ) is now fixed. Able to OTA with Z2M 2.6.3 and re-interview correctly.

Sandriell avatar Nov 03 '25 22:11 Sandriell

@3reality-support On the October release now and this issue has still not been corrected.

This issue has been fixed in version 47 and can be upgraded to version 47

I was able to perform this update as well.

For anyone finding this later, if you have old stock that has firmware before version 47. However, no amount of button pushing got the firmware to update, had to pull batteries to get it to go. The steps I went through are this:

  1. Join/include/pair (whatever term you want to use) the button remotes to Z2M. Be on Z2M 2.6.3 or later
  2. wait about a minute or two, until the OTA page shows you the available update and any error about configuring the device have happened
  3. Click the device OTA update button in Z2M
  4. Pull a battery from the remote, wait a few seconds, put it back in
  5. Update should proceed, mine took about 30 to 40 minutes each.
  6. After the update completes, redo the interview and configure for the device so that Z2M will configure it correctly.

sienar1 avatar Nov 10 '25 23:11 sienar1

@3reality-support On the October release now and this issue has still not been corrected.

This issue has been fixed in version 47 and can be upgraded to version 47

I was able to perform this update as well.

For anyone finding this later, if you have old stock that has firmware before version 47. However, no amount of button pushing got the firmware to update, had to pull batteries to get it to go. The steps I went through are this:

1. Join/include/pair (whatever term you want to use) the button remotes to Z2M. Be on Z2M 2.6.3 or later

2. wait about a minute or two, until the OTA page shows you the available update and any error about configuring the device have happened

3. Click the device OTA update button in Z2M

4. Pull a battery from the remote, wait a few seconds, put it back in

5. Update should proceed, mine took about 30 to 40 minutes each.

6. After the update completes, redo the interview and configure for the device so that Z2M will configure it correctly.

What worked for me to get the update going, was repeatedly pushing the button about once a second or two until the update showed 1%. After that it went along fine.

Sandriell avatar Nov 12 '25 04:11 Sandriell