-
Notifications
You must be signed in to change notification settings - Fork 3.1k
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
base: master
Are you sure you want to change the base?
Conversation
@@ -697,6 +697,52 @@ const definitions: DefinitionWithExtend[] = [ | |||
await reporting.onOff(endpoint); | |||
}, | |||
}, | |||
{ | |||
zigbeeModel: ['NLIS - Light switch'], | |||
model: 'NLIS - Light switch', |
There was a problem hiding this comment.
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']})], |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
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', |
There was a problem hiding this comment.
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']})], |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
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'),
This pull request is stale because it has been open 180 days with no activity. Remove stale label or comment or this will be closed in 30 days |
Add 4 Legrand's devices include: