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

Added duration support to the Merten Roller Shutter drive #4253

Merged
merged 6 commits into from
May 20, 2022

Conversation

7h0mas-R
Copy link
Contributor

I added the function to support setting the duration of the Merten Roller Shutter driver following the request on this post
Tested it and it is working for me (function was also already implemented for the PUCK/SHUTTER/1device.

meta: {coverInverted: true},
configure: async (device, coordinatorEndpoint, logger) => {
const endpoint = device.getEndpoint(1) || device.getEndpoint(5);
const endpoint = device.getEndpoint(5);
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why has this been changed?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The duration setting was missing in my original implementation.
When I added it after receiving a Hint, I also realized, that endpoint 1 is not needed for the roller shutter function.
It is only used, when the controller is attached to a light switch insert.
I removed it from my external Converter and did not notice anything missing.

Best regards

Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It was added due to Koenkk/zigbee2mqtt#5561 so I believe it should stay

Copy link
Contributor Author

@7h0mas-R 7h0mas-R May 18, 2022

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I have just put it back in - will not hurt anyway.

@Koenkk
Copy link
Owner

Koenkk commented May 20, 2022

Thanks!

@Koenkk Koenkk merged commit dbb4dd9 into Koenkk:master May 20, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants