Link
https://itead.cc/product/sonoff-iplug-zigbee-smart-plug-s60-series/ref/3/
Database entry
{"id":72,"type":"Router","ieeeAddr":"0xa4c13800e064ffff","nwkAddr":17213,"manufId":4742,"manufName":"SONOFF","powerSource":"Mains (single phase)","modelId":"S60ZBTPG","epList":[1,242],"endpoints":{"1":{"profId":260,"epId":1,"devId":81,"inClusterList":[0,3,4,5,6,1794,2820,2821,64599,64529],"outClusterList":[10,25],"clusters":{"genBasic":{"attributes":{"modelId":"S60ZBTPG","manufacturerName":"SONOFF","powerSource":1,"zclVersion":3,"appVersion":16,"stackVersion":2,"hwVersion":16,"dateCode":"20250411","swBuildId":"1.0.2"}},"genOnOff":{"attributes":{"onOff":1,"startUpOnOff":0}}},"binds":[{"cluster":6,"type":"endpoint","deviceIeeeAddress":"0x00124b0024c9ee61","endpointID":1}],"configuredReportings":[{"cluster":6,"attrId":0,"minRepIntval":0,"maxRepIntval":65000,"repChange":1}],"meta":{}},"242":{"profId":41440,"epId":242,"devId":97,"inClusterList":[],"outClusterList":[33],"clusters":{},"binds":[],"configuredReportings":[],"meta":{}}},"appVersion":16,"stackVersion":2,"hwVersion":16,"dateCode":"20250411","swBuildId":"1.0.2","zclVersion":3,"interviewCompleted":true,"interviewState":"SUCCESSFUL","meta":{"configured":332242049},"lastSeen":1747677661040}
Zigbee2MQTT version
2.3.0
Comments
The Sonoff S60ZBTPG appears to be a UK version of S60ZBTPF, i.e. UK plug. The S60ZBTPF entry has , m.electricityMeter() entry and when I look in the Dev console, I also have this entry. However, this is missing from Sonoff.ts in line in line 1553, so I am making a naive assumption that add this line would make the device work?
I am having trouble understanding what I need to do to make the external definition (below) work, I haven't got it to be imported as yet.
External definition
import * as m from 'zigbee-herdsman-converters/lib/modernExtend';
export default {
zigbeeModel: ['S60ZBTPG'],
model: 'S60ZBTPG',
vendor: 'SONOFF',
description: 'SONOFF iPlug Zigbee Smart Plug',
extend: [m.onOff({"powerOnBehavior":false}), m.electricityMeter()],
};
What does/doesn't work with the external definition?
Any guidance, advice or observations to help me understand would be gratefully received.
Link
https://itead.cc/product/sonoff-iplug-zigbee-smart-plug-s60-series/ref/3/
Database entry
{"id":72,"type":"Router","ieeeAddr":"0xa4c13800e064ffff","nwkAddr":17213,"manufId":4742,"manufName":"SONOFF","powerSource":"Mains (single phase)","modelId":"S60ZBTPG","epList":[1,242],"endpoints":{"1":{"profId":260,"epId":1,"devId":81,"inClusterList":[0,3,4,5,6,1794,2820,2821,64599,64529],"outClusterList":[10,25],"clusters":{"genBasic":{"attributes":{"modelId":"S60ZBTPG","manufacturerName":"SONOFF","powerSource":1,"zclVersion":3,"appVersion":16,"stackVersion":2,"hwVersion":16,"dateCode":"20250411","swBuildId":"1.0.2"}},"genOnOff":{"attributes":{"onOff":1,"startUpOnOff":0}}},"binds":[{"cluster":6,"type":"endpoint","deviceIeeeAddress":"0x00124b0024c9ee61","endpointID":1}],"configuredReportings":[{"cluster":6,"attrId":0,"minRepIntval":0,"maxRepIntval":65000,"repChange":1}],"meta":{}},"242":{"profId":41440,"epId":242,"devId":97,"inClusterList":[],"outClusterList":[33],"clusters":{},"binds":[],"configuredReportings":[],"meta":{}}},"appVersion":16,"stackVersion":2,"hwVersion":16,"dateCode":"20250411","swBuildId":"1.0.2","zclVersion":3,"interviewCompleted":true,"interviewState":"SUCCESSFUL","meta":{"configured":332242049},"lastSeen":1747677661040}
Zigbee2MQTT version
2.3.0
Comments
The Sonoff S60ZBTPG appears to be a UK version of S60ZBTPF, i.e. UK plug. The S60ZBTPF entry has
, m.electricityMeter()entry and when I look in the Dev console, I also have this entry. However, this is missing from Sonoff.ts in line in line 1553, so I am making a naive assumption that add this line would make the device work?I am having trouble understanding what I need to do to make the external definition (below) work, I haven't got it to be imported as yet.
External definition
What does/doesn't work with the external definition?
Any guidance, advice or observations to help me understand would be gratefully received.