Koenkk / zigbee2mqtt

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

[New device support]: model: TS0215A_sos in fingerprint: modelID: 'TS0215A', manufacturerName: '_TZ3000_p3fph1go' #21102

Closed pottenmak closed 8 months ago

pottenmak commented 8 months ago

Link

https://nl.aliexpress.com/item/1005005605788900.html?spm=a2g0o.order_list.order_list_main.17.64fe79d2s9Jyru&gatewayAdapt=glo2nld

Database entry

0xa4c13820a57ee678

Comments

Pls add modelID: 'TS0215A', manufacturerName: '_TZ3000_p3fph1go

If I add _TZ3000_p3fph1go to the fingerprint, everything works perfect :

Scherm­afbeelding 2024-01-29 om 17 34 22

'

External defintion

const definition = {
    fingerprint: tuya.fingerprint('TS0215A', ['_TZ3000_4fsgukof', '_TZ3000_wr2ucaj9', '_TZ3000_zsh6uat3', '_TZ3000_tj4pwzzm',
        '_TZ3000_2izubafb', '_TZ3000_pkfazisv', '_TZ3000_0dumfk2z', '_TZ3000_ssp0maqm', '_TZ3000_p3fph1go']),
    model: 'TS0215A_sos',
    vendor: 'TuYa',
    description: 'SOS button',
    fromZigbee: [fz.command_emergency, fz.battery],
    exposes: [e.battery(), e.battery_voltage(), e.action(['emergency'])],
    toZigbee: [],
    whiteLabel: [
        tuya.whitelabel('TuYa', 'BT400B', 'Zigbee Panic Button', ['_TZ3000_0dumfk2z']),
        tuya.whitelabel('Woox', 'R7052', 'Smart SOS button', ['_TZ3000_ssp0maqm']),
    ],
    configure: async (device, coordinatorEndpoint, logger) => {
        const endpoint = device.getEndpoint(1);
        await reporting.bind(endpoint, coordinatorEndpoint, ['genPowerCfg', 'genTime', 'genBasic', 'ssIasAce', 'ssIasZone']);
        await reporting.batteryPercentageRemaining(endpoint);
        await reporting.batteryVoltage(endpoint);
    },
};
Koenkk commented 8 months ago

Added, thanks!