Description
Link
https://www.aliexpress.com/item/1005005824579031.html
Database entry
{"id":11,"type":"Router","ieeeAddr":"0xa4c1388aa502fbec","nwkAddr":56498,"manufId":4417,"manufName":"_TZ3000_mgusv51k","powerSource":"Mains (single phase)","modelId":"TS0052","epList":[1,242],"endpoints":{"1":{"profId":260,"epId":1,"devId":256,"inClusterList":[3,4,5,6,57344,57345,8,0],"outClusterList":[25,10],"clusters":{"genBasic":{"attributes":{"65503":"^��,\u0012ч�,\u0012@��,\u0012У�,\u0012\u0005\u0000\u0000\u0000\u0012\u0005\u0000\u0000\u0000\u0012\u0005\u0000\u0000\u0000\u0012�\u000b\u0000\u0000\u0012","65506":54,"65508":0,"65534":0,"modelId":"TS0052","manufacturerName":"_TZ3000_mgusv51k","powerSource":1,"zclVersion":3,"appVersion":68,"stackVersion":0,"hwVersion":1,"dateCode":""}},"manuSpecificBosch":{"attributes":{"53251":"AAAA"}},"genOnOff":{"attributes":{"onOff":1,"onTime":0,"offWaitTime":0,"moesStartUpOnOff":2}},"manuSpecificTuya_3":{"attributes":{"switchType":2}},"genLevelCtrl":{"attributes":{"currentLevel":2,"minLevel":2,"maxLevel":254,"onOffTransitionTime":0}}},"binds":[],"configuredReportings":[],"meta":{"onLevelSupported":false}},"242":{"profId":41440,"epId":242,"devId":97,"inClusterList":[],"outClusterList":[33],"clusters":{},"binds":[],"configuredReportings":[],"meta":{}}},"appVersion":68,"stackVersion":0,"hwVersion":1,"dateCode":"","zclVersion":3,"interviewCompleted":true,"meta":{"configured":-1440156621},"lastSeen":1700818080387,"defaultSendRequestWhen":"immediate"}
Comments
By default this pairs as "TS0052", but the functionalities and controls are not working correctly.
- the on/'off toggle doesn't work
- when toggled light dims down to 2, and doesn't goes back
- only way to make on work is to slide brightness back.
I added an external converter and fixed this for myself and it work.
Not sure if this needs to be a new device or something that already exists, but pairs incorrectly.
External converter
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 extend = require('zigbee-herdsman-converters/lib/extend');
const e = exposes.presets;
const ea = exposes.access;
const tuya = require("zigbee-herdsman-converters/lib/tuya");
const utils = require('zigbee-herdsman-converters/lib/utils');
const globalStore = require('zigbee-herdsman-converters/lib/store');
const {
precisionRound, mapNumberRange, isLegacyEnabled, toLocalISOString, numberWithinRange, hasAlreadyProcessedMessage,
calibrateAndPrecisionRoundOptions, addActionGroup, postfixWithEndpointName, getKey,
batteryVoltageToPercentage, getMetaValue,
} = require('zigbee-herdsman-converters/lib/utils');
const fzLocal = {
brightness: {
cluster: 'genLevelCtrl',
type: ['attributeReport', 'readResponse'],
convert: (model, msg, publish, options, meta) => {
if (msg.data.hasOwnProperty('61440')) {
const property = postfixWithEndpointName('brightness', msg, model);
return {[property]: msg.data['61440']};
}
},
},
}
const definition = {
// Since a lot of Tuya devices use the same modelID, but use different data points
// it's usually necessary to provide a fingerprint instead of a zigbeeModel
fingerprint: [
{
// The model ID from: Device with modelID 'TS0601' is not supported
// You may need to add \u0000 at the end of the name in some cases
modelID: 'TS0052',
// The manufacturer name from: Device with modelID 'TS0601' is not supported.
manufacturerName: '_TZ3000_mgusv51k'
},
],
model: 'FS-05R', // Vendor model number, look on the device for a model number
vendor: 'TuYa', // Vendor of the device (only used for documentation and startup logging)
description: 'Mini Dimmable Switch', // Description of the device, copy from vendor site. (only used for documentation and startup logging)
fromZigbee: [fz.on_off, fzLocal.brightness], // We will add this later
toZigbee: [tz.on_off, tz.light_onoff_brightness], // Should be empty, unless device can be controlled (e.g. lights, switches).
exposes: [e.linkquality(),e.light_brightness()], // Defines what this device exposes, used for e.g. Home Assistant discovery and in the frontend
};
module.exports = definition;
Supported color modes
No response
Color temperature range
No response
Activity