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 new fingerprint for Avatto ZDMS16-1 #8436

Merged
merged 1 commit into from
Dec 4, 2024
Merged

Conversation

RoelVB
Copy link
Contributor

@RoelVB RoelVB commented Dec 4, 2024

This PR adds a new fingerprint for the Avatto ZDMS16-1.

Fixes Koenkk/zigbee2mqtt#24946, Koenkk/zigbee2mqtt#24822

@Koenkk Koenkk merged commit 60d22c5 into Koenkk:master Dec 4, 2024
2 checks passed
@Koenkk
Copy link
Owner

Koenkk commented Dec 4, 2024

Thanks!

@curtash
Copy link

curtash commented Jan 13, 2025

Please can _TZE204_2cyb66xl be added too. Sorry I would do it myself but I'm not sure how...

I've just received the exact same AVATTO 1ch dimmer with another fingerprint, I've successfully tested it using a local converter.

This is the local converter that I'm using currently:

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 tuya = require('zigbee-herdsman-converters/lib/tuya');
const e = exposes.presets;
const ea = exposes.access;
const legacy = require('zigbee-herdsman-converters/lib/legacy');
const utils = require('zigbee-herdsman-converters/lib/utils');


const definition = {
	fingerprint: tuya.fingerprint('TS0601', ['_TZE204_5cuocqty', '_TZE204_nqqylykc', '_TZE204_2cyb66xl']),
	model: 'ZDMS16-1',
    vendor: 'AVATTO',
    description: 'Zigbee 1 channel Dimmer',
    fromZigbee: [tuya.fz.datapoints],
    toZigbee: [tuya.tz.datapoints],
    configure: tuya.configureMagicPacket,
    exposes: [
        tuya.exposes.lightBrightnessWithMinMax(),
        tuya.exposes.countdown(),
        tuya.exposes.switchType(),
        e.power_on_behavior().withAccess(ea.STATE_SET),
    ],
    meta: {
        tuyaDatapoints: [
            [1, 'state', tuya.valueConverter.onOff, {skip: tuya.skip.stateOnAndBrightnessPresent}],
            [2, 'brightness', tuya.valueConverter.scale0_254to0_1000],
            [3, 'min_brightness', tuya.valueConverter.scale0_254to0_1000],
            [4, 'switch_type', tuya.valueConverter.switchType2],
            [5, 'max_brightness', tuya.valueConverter.scale0_254to0_1000],
            [6, 'countdown', tuya.valueConverter.countdown],
            [14, 'power_on_behavior', tuya.valueConverter.powerOnBehaviorEnum],
        ],
    },
};

module.exports = `definition;

@Koenkk
Copy link
Owner

Koenkk commented Jan 13, 2025

@curtash added!

Changes will be available in the dev branch in a few hours from now.

@curtash
Copy link

curtash commented Jan 13, 2025

Perfect, thanks very much.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
3 participants