Skip to content

Try to add a UFO R11 with a slight different vendorID #9933

@fs79

Description

@fs79

My vendor ID _TZ3290_nba3knpsarkawgnt and the external definition:
`import * as m from 'zigbee-herdsman-converters/lib/modernExtend';

export default {
zigbeeModel: ['TS1201'],
model: 'TS1201',
vendor: '_TZ3290_nba3knpsarkawgnt',
description: 'FS: Automatically generated definition',
extend: [m.onOff({"powerOnBehavior":false})],
meta: {},
};`

I think its that device, which is already available in devices "src/devices/moes.ts"
{ fingerprint: tuya.fingerprint("TS1201", [ "_TZ3290_j37rooaxrcdcqo5n", "_TZ3290_ot6ewjvmejq5ekhl", "_TZ3290_xjpbcxn92aaxvmlz", "_TZ3290_gnl5a6a5xvql7c2a", ]), model: "UFO-R11", vendor: "Moes", description: "Universal smart IR remote control", fromZigbee: [ fzZosung.zosung_send_ir_code_00, fzZosung.zosung_send_ir_code_01, fzZosung.zosung_send_ir_code_02, fzZosung.zosung_send_ir_code_03, fzZosung.zosung_send_ir_code_04, fzZosung.zosung_send_ir_code_05, fz.battery, ], toZigbee: [tzZosung.zosung_ir_code_to_send, tzZosung.zosung_learn_ir_code], exposes: (device, options) => { const exposes: Expose[] = [ez.learn_ir_code(), ez.learned_ir_code(), ez.ir_code_to_send()]; if (device.manufacturerName !== "") { exposes.push(e.battery(), e.battery_voltage()); } return exposes; }, configure: async (device, coordinatorEndpoint) => { if (device.manufacturerName !== "_TZ3290_gnl5a6a5xvql7c2a") { const endpoint = device.getEndpoint(1); await endpoint.read("genPowerCfg", ["batteryVoltage", "batteryPercentageRemaining"]); await reporting.bind(endpoint, coordinatorEndpoint, ["genPowerCfg"]); await reporting.batteryPercentageRemaining(endpoint); await reporting.batteryVoltage(endpoint); } }, whiteLabel: [tuya.whitelabel("Tuya", "iH-F8260", "Universal smart IR remote control", ["_TZ3290_gnl5a6a5xvql7c2a"])], },

After several tries & spent hours I wasn't able to create an external converter for this device by use of the already available device definition.
Any help to create the external converter would be really appreciated!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions