-
Notifications
You must be signed in to change notification settings - Fork 3k
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
Correct get/set position for bticino 4027C #2467
Conversation
This was recently added in #2402 by @overclockato. @overclockato can you check this? |
@PxPert , what your *4027C FW version? |
Hi, Koenkk: Yes, I've checked that commit but as you can see the specific 4027C Function does only support full opening/closing of the shutters by sending a zigbee value of 0 (In case of MQTT position value < 50), or 100 (In case of MQTT position value > 50), while the 4027C I've tested fully support partial opening and partial position reporting. This is the Zigbee dump reported by the OTA Request: |
Hi, @PxPert , I would like to know your *4027C FW version. You can get it from zigbee2mqtt WebGUI: About code changes: I think they are not enough, if partial position reporting is working fine also bTicino_4027C_cover_state routine needs to be updated/removed. I'm not able to test this code because, I think, my FW is too old. I have to find out a way to update it. Thanks, Bye! |
Hi @overclockato, This switch is currently used as window cover. About the bTicino_4027C_cover_state: I've left it because it is correct to me: If you want to change the state to open/close it goes to 0 or 100. Maybe this function should only be aware of the inverted state (Just like the "standard" cover_position_tilt function does |
Hi @PxPert, as far I know the 1f is the newest available FW. About the pull request, if @Koenkk agrees, you can merge it with a comment about the FW version. Regards, Bye! |
@overclockato but does this mean it doesn't work correctly in your situation? |
No, with the changes in this PR the reported cover position is not always reliable in my environment. |
What about adding a specific setting to this device to disable partial position setting / reporting in case it is not supported by the firmware? |
Closing PR, Will reopen another soon with additional option to disable partial position support |
Opened new PR: #2487 |
4027C Is infact capable of Get and Set correct positions between 0 and 100. I've removed the specific bticino_4027C_cover_position and instead used the generic cover_position_tilt function to move the shutter, and removed the static "position: 50" on shutter move