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

Ubisys J1 calibration is not working (anymore) #6812

Closed
jan666 opened this issue Mar 20, 2023 · 2 comments · Fixed by #6813
Closed

Ubisys J1 calibration is not working (anymore) #6812

jan666 opened this issue Mar 20, 2023 · 2 comments · Fixed by #6813

Comments

@jan666
Copy link
Contributor

jan666 commented Mar 20, 2023

Describe the bug

The Ubisys J1 needs to be calibrated before it's fully usable. This is (like described here: #813) done via REST-API call PUT /sensors/xx/config {"windowcoveringtype" : 0}.

When I installed my first J1 in 2020 this worked perfect (see #3147).

No I installed my second J1 and it's not working anymore (confirmed here: https://forum.phoscon.de/t/ubisys-j1-calibration/3386 by @SwoopX)

Steps to reproduce the behavior

  1. Reset the J1 if its already calibrated
  2. send the PUT /sensors/xx/config {"windowcoveringtype" : 0} to your J1-ZHASwitch-Sensor

Expected behavior

The J1 should drive a little bit down, drive completely up, completely down, completely up again to and be calibrated.

Screenshots

Environment

  • Host system: Raspberry Pi
  • Running method: Raspbian
  • Firmware version: 26780700
  • deCONZ version: 2.20.01 / 19.9.2022
  • Device: ConBee II
  • Do you use an USB extension cable: yes
  • Is there any other USB or serial devices connected to the host system? Yes, a "Technische Alternative" D-LOGG

deCONZ Logs

Additional context

See here: https://forum.phoscon.de/t/ubisys-j1-calibration/3386

@SwoopX
Copy link
Collaborator

SwoopX commented Mar 20, 2023

Tiny root cause with a large effect if the device has not been previously calibrated. Attribute 0x000A from the window covering cluster is not read or more precisely, updated values cannot be handled in the current state using a DDF. That value is used to control a rudimentary state machine. The lack of value updates makes the code assume everything's going really fast and doesn't let the calibration activities finish, leading to a hickup in the process.

Checking the sniffer and also deconz log shows that the calibration steps are followed as expected, but they're rushed through.

@SwoopX SwoopX linked a pull request Mar 20, 2023 that will close this issue
@jan666
Copy link
Contributor Author

jan666 commented Mar 31, 2023

What about the unwritable attributes?

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

Successfully merging a pull request may close this issue.

2 participants