Suport new device

please suporte the lock from yale YRD256L TSDB.

See https://www.zigbee2mqtt.io/how_tos/how_to_support_new_devices.html

Hello @ricardofernando84 ,
Working on 1.15.0 with no problem.

Do you aready now how to edit “device.js”?

If not, look this link: https://www.zigbee2mqtt.io/how_tos/how_to_support_new_devices.html

Just copy this new device:

 {

    zigbeeModel: ['YRD256L TSDB'],

    model: 'YRD256HA20BP',

    vendor: 'Yale',

    description: 'Assure lock SL',

    supports: 'lock/unlock, battery',

    fromZigbee: [

        fz.lock,

        fz.lock_operation_event,

        fz.battery,

    ],

    toZigbee: [tz.generic_lock],

    meta: {configureKey: 2},

    configure: async (device, coordinatorEndpoint) => {

        const endpoint = device.getEndpoint(1);

        await bind(endpoint, coordinatorEndpoint, ['closuresDoorLock', 'genPowerCfg']);

        await configureReporting.lockState(endpoint);

        await configureReporting.batteryPercentageRemaining(endpoint);

    },

},

@Koenkk, please, can you ad this to your next release. Great job man.

1 Like

Hi @nogueirasa,

I have a zigbee2mqtt usb module (C2531) connected to a Raspberry Pi 3b+. Also a Yale Yrd256, there is a way to lock/unlock the Lockdoor Yale from the Raspberry Pi?

Thanks.