- get the dp_id from tuya development platfrom
- adjust the .js file
- add the js file to external converters folder under /share/zigbee2mqtt/external_converters can be reached from ssh in HA
- add this block to configurations of zigbee2mqtt in yml format:
external_converters:
- tuya_door_sensor_alarm.js