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

add legrand switch and shutter devices #8006

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

ImaxDev
Copy link

@ImaxDev ImaxDev commented Sep 19, 2024

Add 4 Legrand's devices include:

  • Double light switch
  • Light switch
  • Triple light switch
  • Double shutter switch

@@ -697,6 +697,52 @@ const definitions: DefinitionWithExtend[] = [
await reporting.onOff(endpoint);
},
},
{
zigbeeModel: ['NLIS - Light switch'],
model: 'NLIS - Light switch',
Copy link
Owner

Choose a reason for hiding this comment

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

Please use the model numbers written on the device/product page (also use it in Koenkk/zigbee2mqtt.io#3030)

ota: ota.zigbeeOTA,
toZigbee: [tzLegrand.led_mode],
exposes: [eLegrand.ledInDark(), eLegrand.ledIfOn()],
extend: [deviceEndpoints({endpoints: {l1: 1}}), light({configureReporting: true, endpointNames: ['l1']})],
Copy link
Owner

Choose a reason for hiding this comment

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

Suggested change
extend: [deviceEndpoints({endpoints: {l1: 1}}), light({configureReporting: true, endpointNames: ['l1']})],
extend: [light({configureReporting: true})],

zigbeeModel: ['NLIS - Double light switch'],
model: 'NLIS - Double light switch',
vendor: 'Legrand',
description: 'Light switch 2 gang Legrand',
Copy link
Owner

Choose a reason for hiding this comment

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

Remove Legrand from all descriptions, it's already in the vendor.

ota: ota.zigbeeOTA,
fromZigbee: [],
toZigbee: [tzLegrand.shutter_switch_multi_gang, tzLegrand.led_mode],
extend: [windowCovering({controls: ['lift', 'tilt']})],
Copy link
Owner

Choose a reason for hiding this comment

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

Suggested change
extend: [windowCovering({controls: ['lift', 'tilt']})],
extend: [windowCovering({controls: ['lift', 'tilt'], endpointNames: ['l1', 'l2']})],

Does this work instead of tzLegrand.shutter_switch_multi_gang and .enum('shutter_state', ea.STATE_SET, ['OPEN', 'CLOSE', 'STOP']).withEndpoint('l1'),

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