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

Sonoff ZBminiR2 Inching not working as expected #25303

Closed
hendrik001973 opened this issue Dec 23, 2024 · 9 comments
Closed

Sonoff ZBminiR2 Inching not working as expected #25303

hendrik001973 opened this issue Dec 23, 2024 · 9 comments
Labels
problem Something isn't working

Comments

@hendrik001973
Copy link

What happened?

Inching GUI
When you enter the time for inching, i.e. 1200 sec, Zigbee2MQTT delivers an Error message:

error 2024-12-23 14:38:41z2m: Publish 'set' 'inching_control_set' to 'Waschraum Keller' failed: 'RangeError [ERR_OUT_OF_RANGE]: ZCL command 0x70c59cfffe499e0a/1 customClusterEwelink.protocolData({"data":[1,23,7,128,128,0,2400,9,0,0,2424]}, {"timeout":10000,"disableResponse":false,"disableRecovery":false,"disableDefaultResponse":false,"direction":0,"reservedBits":0,"manufacturerCode":4742,"writeUndiv":false}) failed (The value of "value" is out of range. It must be >= 0 and <= 255. Received 2400)'
Errormessage

According to its manual, the ZBminiR2 accepts values from 0.5 to 3599.5 seconds for inching time. However according to this error message, only values between 0 and 255 are accepted. Additionally, the entered values are doubled (here from 1200 to 2400), so that the highest value you can enter is 127.5 seconds.

Also the inching capabilities are not transferred to Homeassistant as entities.
No Entities

What did you expect to happen?

I could setup an inching time for longer than 127 seconds and that I can activate the Inching via Automations.

How to reproduce it (minimal and precise)

As described above

Zigbee2MQTT version

1.42.0

Adapter firmware version

20230507

Adapter

SONOFF Zigbee 3.0 USB Dongle Plus, TI CC2652P

Setup

Addon on HomeAssistant on ThinClient with Intel i5

Debug log

No response

@hendrik001973 hendrik001973 added the problem Something isn't working label Dec 23, 2024
@bobo-cher
Copy link

I think this is a restriction of zbminir2, which allows values only up to 127.5 seconds. The validation and option description in Z2M seems to be wrong (allowing larger values).

I reported this issue to Sonoff two months ago asking them to increase the limit. The response was that my request was forwarded to product team. There was a firmware update after that but nothing has changed in this regard.

I suggest you to write to Sonoff with a similar request. The more requests they get the higher are the chances for an improvement.

@FinnVonB
Copy link

FinnVonB commented Feb 4, 2025

Just reported same issue to Sonoff Tech - annoying

@liubotongs
Copy link

@hendrik001973 @bobo-cher @FinnVonB The ts script did have some problems, an out-of-range error occurred when the array was assigned, and has been modified to re-submit the script to PR.

@bobo-cher
Copy link

bobo-cher commented Feb 10, 2025

@liubotongs Thank you! I've tested the fix and it works as expected.

@hendrik001973
Copy link
Author

hendrik001973 commented Feb 10, 2025

Thank you very much, but what I have to do, to test this issue?

@FinnVonB
Copy link

?? sounds promising - but what script ? will there be a new release soon ?

@bobo-cher
Copy link

This will be included with the next Z2M update (once the pull request is merged into main code base).

@KaaNee
Copy link

KaaNee commented Mar 2, 2025

@bobo-cher Can you link the Issue# and/or Pull-Request please ?
So people falling over this thread they will find the change.
Thanks.

@bobo-cher
Copy link

bobo-cher commented Mar 2, 2025

The fix Koenkk/zigbee-herdsman-converters#8790 has been already released with 2.1.2.
This issue can be closed.

@Nerivec Nerivec closed this as completed Mar 5, 2025
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

6 participants