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 support for Namron 4512770 and 4512771 multisensor #6630

Merged
merged 2 commits into from
Dec 5, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 18 additions & 0 deletions src/devices/namron.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1011,6 +1011,24 @@ const definitions: Definition[] = [
},
ota: ota.zigbeeOTA,
},
{
zigbeeModel: ['4512770', '4512771'],
model: '4512770',
vendor: 'Namron',
description: 'Zigbee multisensor (white)',
fromZigbee: [fz.ias_occupancy_alarm_1, fz.battery, fz.temperature, fz.humidity, fz.illuminance],
toZigbee: [],
exposes: [e.occupancy(), e.battery(), e.battery_voltage(), e.illuminance(), e.illuminance_lux(), e.temperature(), e.humidity()],
whiteLabel: [{vendor: 'Namron', model: '4512771', description: 'Zigbee multisensor (black)', fingerprint: [{modelID: '4512771'}]}],
configure: async (device, coordinatorEndpoint, logger) => {
const endpoint3 = device.getEndpoint(3);
const endpoint4 = device.getEndpoint(4);
const endpoint5 = device.getEndpoint(5);
await reporting.bind(endpoint3, coordinatorEndpoint, ['msTemperatureMeasurement']);
await reporting.bind(endpoint4, coordinatorEndpoint, ['msRelativeHumidity']);
await reporting.bind(endpoint5, coordinatorEndpoint, ['msIlluminanceMeasurement']);
},
},
];

export default definitions;
Expand Down