Koenkk / zigbee2mqtt

Zigbee 🐝 to MQTT bridge 🌉, get rid of your proprietary Zigbee bridges 🔨
https://www.zigbee2mqtt.io
GNU General Public License v3.0
11.98k stars 1.67k forks source link

Namron Dimmer 400w (new version) #18732

Closed erwahlb closed 1 year ago

erwahlb commented 1 year ago

Link

https://www.elektroimportoren.no/namron-zigbee-dimmer-2-400w/4512760/Product.html

Database entry

n/a

Comments

There is a new version of the Namron Zigbee Dimmer 400 w (4512760). The old version (4512700) is already a supported device. Maybe it is possible to copy/paste the settings from the old version to the new?

Thanks in advance.

External converter

const fz = require('zigbee-herdsman-converters/converters/fromZigbee');
const tz = require('zigbee-herdsman-converters/converters/toZigbee');
const exposes = require('zigbee-herdsman-converters/lib/exposes');
const reporting = require('zigbee-herdsman-converters/lib/reporting');
const extend = require('zigbee-herdsman-converters/lib/extend');
const e = exposes.presets;
const ea = exposes.access;

module.exports = 
    {
    zigbeeModel: ['4512760'], // The model ID from: Device with modelID 'lumi.sens' is not supported.
    model: '4512760', // Vendor model number, look on the device for a model number
    vendor: 'Namron',
    description: 'ZigBee dimmer 400W',
    extend: extend.light_onoff_brightness({noConfigure: true}),
    configure: async (device, coordinatorEndpoint, logger) => {
        await extend.light_onoff_brightness().configure(device, coordinatorEndpoint, logger);
        const endpoint = device.getEndpoint(1);
        await reporting.bind(endpoint, coordinatorEndpoint, ['genOnOff', 'genLevelCtrl']);
        await reporting.onOff(endpoint);
    }}

Supported color modes

No response

Color temperature range

No response

Koenkk commented 1 year ago

added, thanks!

Changes will be available in the dev branch in a few hours from now. (https://www.zigbee2mqtt.io/advanced/more/switch-to-dev-branch.html)