[External Converter]: TS0001 from _TZ3000_5rpu3r0d
Link
https://asthome.com.au/products/1-4-gang-zigbee-no-neutral-smart-switch-glass-saa-approved-for-australia-black-or-white
Database entry
{"id":22,"type":"Router","ieeeAddr":"0xa4c138ea612640e4","nwkAddr":33534,"manufId":4417,"manufName":"_TZ3000_5rpu3r0d","powerSource":"Mains (single phase)","modelId":"TS0001","epList":[1,242],"endpoints":{"1":{"profId":260,"epId":1,"devId":256,"inClusterList":[3,4,5,6,57344,57345,0],"outClusterList":[25,10],"clusters":{"genBasic":{"attributes":{"65503":"\u00155�1\u0013\u00155�1\u0012","65506":56,"65508":0,"65534":0,"stackVersion":0,"dateCode":"","manufacturerName":"_TZ3000_5rpu3r0d","zclVersion":3,"appVersion":83,"modelId":"TS0001","powerSource":1}},"genOnOff":{"attributes":{"onOff":0,"tuyaBacklightMode":3}}},"binds":[{"cluster":6,"type":"endpoint","deviceIeeeAddress":"0x00124b002e1244fb","endpointID":1}],"configuredReportings":[],"meta":{}},"242":{"profId":41440,"epId":242,"devId":97,"inClusterList":[],"outClusterList":[33],"clusters":{},"binds":[],"configuredReportings":[],"meta":{}}},"appVersion":83,"stackVersion":0,"hwVersion":1,"dateCode":"","zclVersion":3,"interviewCompleted":true,"interviewState":"SUCCESSFUL","meta":{"configured":"0.0.0"},"lastSeen":1779066964922}
Zigbee2MQTT version
2.10.1
External converter
import reporting from "zigbee-herdsman-converters/lib/reporting";
import tuya from "zigbee-herdsman-converters/lib/tuya";
export default {
fingerprint: tuya.fingerprint("TS0001", ["_TZ3000_5rpu3r0d"]),
model: "TS0001_switch_1_gang_ASTHome",
vendor: "Tuya / ASTHome",
description: "1-gang switch with LED backlight",
extend: [
tuya.modernExtend.tuyaBase(),
tuya.modernExtend.tuyaOnOff({
switchType: true,
powerOnBehavior2: true,
onOffCountdown: true,
indicatorMode: true,
}),
],
configure: async (device, coordinatorEndpoint) => {
await tuya.configureMagicPacket(device, coordinatorEndpoint);
await reporting.bind(device.getEndpoint(1), coordinatorEndpoint, ["genOnOff"]);
},
};
What does/doesn't work with the external definition?
What Works
- Switch toggle
- Power off countdown
- LED backlight control
- Link quality
Need to Confirm
- Switch type (toggle, state, momentary). Pretty sure it works, just haven't had time to test
Notes
Heavily based off existing converters for TS0002 and TS0004 switches from Tuya.ts
👋 Hi there! This issue appears to be a duplicate of #30440
This issue will be closed. Please follow the existing issue for updates.
Could you make a PR by clicking here?
Hey mate, yea sure thing. Never done it before but I'm sure I'll be able to fumble my way through lol
@Koenkk what is the accepted definition of "vendor" for devices? Seeing a lot of "tuya" but not really sure thats technically correct. In the instance of this device, yes its a "tuya" device in the fact that its probaly using a Tuya made module. But the product as a whole is made by Rely Electronics, and resold by asthome in Aus. So, "vendor" to me would be asthome, because I purchased it through them. However, in this instance, I'd probably say the vendor is Rely Electronics.
Using either asthome or Rely Electronics is fine, it doesn't matter that much, try to keep it the same as mentioned on the device or product page.