Skip to content

Commit

Permalink
feat(add): 4512749-N (#5895)
Browse files Browse the repository at this point in the history
* Added support for 4512749-N

Added support for Namron 4512749-N Thermostat Outlet Socket.

* Update namron.ts

* Update namron.ts
  • Loading branch information
danielfinans authored Jun 19, 2023
1 parent c077311 commit 27357cd
Showing 1 changed file with 21 additions and 0 deletions.
21 changes: 21 additions & 0 deletions src/devices/namron.ts
Original file line number Diff line number Diff line change
Expand Up @@ -774,6 +774,27 @@ const definitions: Definition[] = [
await reporting.activePower(endpoint);
},
},
{
zigbeeModel: ['4512749-N'],
model: '4512749-N',
vendor: 'Namron',
description: 'Thermostat outlet socket',
fromZigbee: [fz.metering, fz.electrical_measurement, fz.on_off, fz.temperature],
toZigbee: [tz.on_off, tz.power_on_behavior],
exposes: [e.temperature(), e.power(), e.current(), e.voltage(), e.switch(), e.power_on_behavior()],
configure: async (device, coordinatorEndpoint, logger) => {
const endpoint = device.getEndpoint(1);
await reporting.bind(endpoint, coordinatorEndpoint, ['genOnOff', 'haElectricalMeasurement', 'msTemperatureMeasurement']);
await endpoint.read('haElectricalMeasurement', ['acVoltageMultiplier', 'acVoltageDivisor']);
await endpoint.read('haElectricalMeasurement', ['acPowerMultiplier', 'acPowerDivisor']);
await endpoint.read('haElectricalMeasurement', ['acCurrentMultiplier', 'acCurrentDivisor']);
await reporting.onOff(endpoint);
await reporting.temperature(endpoint, {min: 10, change: 10});
await reporting.rmsVoltage(endpoint, {min: 10, change: 20}); // Voltage - Min change of 2v
await reporting.rmsCurrent(endpoint, {min: 10, change: 10}); // A - z2m displays only the first decimals, so change of 10
await reporting.activePower(endpoint, {min: 10, change: 1}); // W - Min change of 0,1W
},
},
{
zigbeeModel: ['4512747'],
model: '4512747',
Expand Down

0 comments on commit 27357cd

Please sign in to comment.