We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
I can invert position, but open close state is not invert
I can create pull request but there is 2 ways
First is update function
cover_state: { key: ['state'], convertSet: async (entity, key, value, meta) => { const lookup = {'open': 'upOpen', 'close': 'downClose', 'stop': 'stop', 'on': 'upOpen', 'off': 'downClose'}; value = value.toLowerCase(); utils.validateValue(value, Object.keys(lookup)); await entity.command('closuresWindowCovering', lookup[value], {}, utils.getOptions(meta.mapped, entity)); }, },
to
cover_state: { key: ['state'], convertSet: async (entity, key, value, meta) => { const lookup = utils.getMetaValue(entity, meta.mapped, 'coverInverted', 'allEqual', false) ? {'open': 'upOpen', 'close': 'downClose', 'stop': 'stop', 'on': 'upOpen', 'off': 'downClose'} : {'open': 'downClose', 'close': 'upOpen', 'stop': 'stop', 'on': 'downClose', 'off': 'upOpen'}; value = value.toLowerCase(); utils.validateValue(value, Object.keys(lookup)); await entity.command('closuresWindowCovering', lookup[value], {}, utils.getOptions(meta.mapped, entity)); }, },
second is create function like bticino_4027C_cover_state
Allow invert state on cover_state to_zigbee function
No response
1.27.0
1d03
zigate
The text was updated successfully, but these errors were encountered:
Changing the standard cover state converter makes the most sense to me.
Sorry, something went wrong.
Hi ! I have the same problem with my SR-ZG9080A. Have you a solution ?
reverse cable between SR-ZG9080A and motor
OK... too bad !
No branches or pull requests
What happened?
I can invert position, but open close state is not invert
I can create pull request but there is 2 ways
First is update function
to
second is create function like bticino_4027C_cover_state
What did you expect to happen?
Allow invert state on cover_state to_zigbee function
How to reproduce it (minimal and precise)
No response
Zigbee2MQTT version
1.27.0
Adapter firmware version
1d03
Adapter
zigate
Debug log
No response
The text was updated successfully, but these errors were encountered: