zigbee2mqtt icon indicating copy to clipboard operation
zigbee2mqtt copied to clipboard

Socket TS011F manufacturer _TZ3000_w0qqde0g not reporting anything except linkquality and on/off

Open Toma82 opened this issue 5 years ago • 39 comments

I have 3 plug TS011F manufacturer _TZ3000_w0qqde0g https://pl.aliexpress.com/item/1005003501027768.html?spm=a2g0o.productlist.0.0.7ce0408brLHZAI&algo_pvid=8526ef5d-0967-4c0e-af74-7f2d5b7f9470&algo_exp_id=8526ef5d-0967-4c0e-af74-7f2d5b7f9470-13&pdp_ext_f=%7B%22sku_id%22%3A%2212000026075390421%22%7D It is not reporting power, current, voltage,energy ,only report the state when changed from physical button and reports is linkquality.

image

I also tried external configuration:

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 definition = { fingerprint: [ { modelID: 'TS011F', manufacturerName: '_TZ3000_w0qqde0g' }, ], model: 'Test', vendor: 'TuYa', description: 'Zigbee Socket', fromZigbee: [fz.on_off, fz.electrical_measurement, fz.metering, fz.ignore_basic_report, fz.tuya_switch_power_outage_memory], toZigbee: [tz.on_off, tz.tuya_switch_power_outage_memory], onEvent: tuya.setTime, // Add this if you are getting no converter for 'commandSetTimeRequest' configure: async (device, coordinatorEndpoint, logger) => { const endpoint = device.getEndpoint(1); await reporting.bind(endpoint, coordinatorEndpoint, ['genOnOff', 'haElectricalMeasurement', 'seMetering']); await reporting.rmsVoltage(endpoint, {change: 1, min: 10, max: 600}); await reporting.rmsCurrent(endpoint, {change: 50, min: 10, max: 600}); await reporting.activePower(endpoint, {change: 1, min: 10, max: 600}); await reporting.currentSummDelivered(endpoint, {change: 1, min:10, max: 600}); endpoint.saveClusterAttributeKeyValue('haElectricalMeasurement', {acCurrentDivisor: 1000, acCurrentMultiplier: 1}); endpoint.saveClusterAttributeKeyValue('seMetering', {divisor: 100, multiplier: 1}); device.save(); }, exposes: [e.switch(), e.power(), e.current(), e.voltage().withAccess(ea.STATE), e.energy(), exposes.enum('power_outage_memory', ea.STATE_SET, ['on', 'off', 'restore']) .withDescription('Recover state after power outage')], };

module.exports = definition;

when I type from the console, the report appears.

image image image

{"id":10,"type":"Router","ieeeAddr":"XXXXXXXedbf","nwkAddr":35154,"manufId":4417,"manufName":"_TZ3000_w0qqde0g","powerSource":"Mains (single phase)","modelId":"TS011F","epList":[1,242],"endpoints":{"1":{"profId":260,"epId":1,"devId":266,"inClusterList":[3,4,5,6,1794,2820,57345,57344,0],"outClusterList":[25,10],"clusters":{"genBasic":{"attributes":{"modelId":"TS011F","manufacturerName":"_TZ3000_w0qqde0g","powerSource":1,"zclVersion":3,"appVersion":68,"stackVersion":0,"hwVersion":1,"dateCode":""}},"genOnOff":{"attributes":{"20480":1,"32768":0,"onOff":1,"onTime":0,"offWaitTime":0,"tuyaBacklightMode":0,"moesStartUpOnOff":2}},"haElectricalMeasurement":{"attributes":{"acCurrentDivisor":1000,"acCurrentMultiplier":1,"rmsVoltage":237,"activePower":73,"rmsCurrent":217}},"seMetering":{"attributes":{"divisor":100,"multiplier":1}},"manuSpecificTuya_3":{"attributes":{"53248":0,"53249":0,"53250":0,"53251":0,"53252":0,"53253":0,"53264":2,"switchType":0}}},"binds":[{"cluster":6,"type":"endpoint","deviceIeeeAddress":"0x00212effff070ed0","endpointID":1},{"cluster":2820,"type":"endpoint","deviceIeeeAddress":"0x00212effff070ed0","endpointID":1},{"cluster":1794,"type":"endpoint","deviceIeeeAddress":"0x00212effff070ed0","endpointID":1}],"configuredReportings":[{"cluster":2820,"attrId":1285,"minRepIntval":1,"maxRepIntval":600,"repChange":5},{"cluster":2820,"attrId":1288,"minRepIntval":1,"maxRepIntval":600,"repChange":50},{"cluster":2820,"attrId":1291,"minRepIntval":1,"maxRepIntval":600,"repChange":10},{"cluster":1794,"attrId":0,"minRepIntval":1,"maxRepIntval":600,"repChange":[1,1]}],"meta":{}},"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":680236614},"lastSeen":1637614629330}

All 3 plug behave the same

Debug info

Zigbee2MQTT version: 1.22.0-3 Adapter hardware: Conbee II Adapter firmware version: _0x26720700

Debug Info MQTT publish: topic 'zigbee2mqtt/test', payload '{"current":0.22,"energy":null,"linkquality":208,"power":null,"power_outage_memory":"restore","state":"ON","voltage":238}' Info MQTT publish: topic 'zigbee2mqtt/test', payload '{"current":0.22,"energy":null,"linkquality":188,"power":null,"power_outage_memory":"restore","state":"ON","voltage":238}' Info Succesfully changed options Info MQTT publish: topic 'zigbee2mqtt/bridge/response/options', payload '{"data":{"restart_required":false},"status":"ok","transaction":"qcu6x-1"}' Debug Received MQTT message on 'zigbee2mqtt/test/set' with data '{"state":"OFF"}' Debug Publishing 'set' 'state' to 'test' Info MQTT publish: topic 'zigbee2mqtt/test', payload '{"current":0.22,"energy":null,"linkquality":212,"power":null,"power_outage_memory":"restore","state":"OFF","voltage":238}' Debug Received Zigbee message from 'test', type 'attributeReport', cluster 'genOnOff', data '{"onOff":0}' from endpoint 1 with groupID null Info MQTT publish: topic 'zigbee2mqtt/test', payload '{"current":0.22,"energy":null,"linkquality":208,"power":null,"power_outage_memory":"restore","state":"OFF","voltage":238}' Debug Received Zigbee message from 'Gniazdko', type 'readResponse', cluster 'haElectricalMeasurement', data '{"activePower":0,"rmsCurrent":0,"rmsVoltage":229}' from endpoint 1 with groupID null Info MQTT publish: topic 'zigbee2mqtt/Gniazdko', payload '{"current":0,"energy":27.58,"linkquality":255,"power":0,"power_outage_memory":"restore","state":"ON","voltage":229}' Debug Received MQTT message on 'zigbee2mqtt/test/set' with data '{"power_outage_memory":"on"}' Debug Publishing 'set' 'power_outage_memory' to 'test' Info MQTT publish: topic 'zigbee2mqtt/test', payload '{"current":0.22,"energy":null,"linkquality":212,"power":null,"power_outage_memory":"on","state":"OFF","voltage":238}' Debug Received Zigbee message from 'test', type 'attributeReport', cluster 'genOnOff', data '{"moesStartUpOnOff":1}' from endpoint 1 with groupID null Debug Received Zigbee message from 'test', type 'attributeReport', cluster 'manuSpecificTuya_3', data '{"53264":1}' from endpoint 1 with groupID null Debug No converter available for 'TS011F_plug_1' with cluster 'manuSpecificTuya_3' and type 'attributeReport' and data '{"53264":1}' Debug Received MQTT message on 'zigbee2mqtt/test/set' with data '{"power_outage_memory":"restore"}' Debug Publishing 'set' 'power_outage_memory' to 'test' Info MQTT publish: topic 'zigbee2mqtt/test', payload '{"current":0.22,"energy":null,"linkquality":192,"power":null,"power_outage_memory":"restore","state":"OFF","voltage":238}' Debug Received Zigbee message from 'test', type 'attributeReport', cluster 'genOnOff', data '{"moesStartUpOnOff":2}' from endpoint 1 with groupID null Debug Received Zigbee message from 'test', type 'attributeReport', cluster 'manuSpecificTuya_3', data '{"53264":2}' from endpoint 1 with groupID null Debug No converter available for 'TS011F_plug_1' with cluster 'manuSpecificTuya_3' and type 'attributeReport' and data '{"53264":2}' Debug Received MQTT message on 'zigbee2mqtt/test/set' with data '{"state":"ON"}' Debug Publishing 'set' 'state' to 'test' Info MQTT publish: topic 'zigbee2mqtt/test', payload '{"current":0.22,"energy":null,"linkquality":180,"power":null,"power_outage_memory":"restore","state":"ON","voltage":238}' Debug Received Zigbee message from 'test', type 'attributeReport', cluster 'genOnOff', data '{"onOff":1}' from endpoint 1 with groupID null Info MQTT publish: topic 'zigbee2mqtt/test', payload '{"current":0.22,"energy":null,"linkquality":204,"power":null,"power_outage_memory":"restore","state":"ON","voltage":238}' Debug Received Zigbee message from 'Gniazdko', type 'attributeReport', cluster 'seMetering', data '{"currentSummDelivered":[0,2758]}' from endpoint 1 with groupID null Info MQTT publish: topic 'zigbee2mqtt/Gniazdko', payload '{"current":0,"energy":27.58,"linkquality":255,"power":0,"power_outage_memory":"restore","state":"ON","voltage":229}' Debug Received Zigbee message from 'Gniazdko', type 'readResponse', cluster 'haElectricalMeasurement', data '{"activePower":0,"rmsCurrent":0,"rmsVoltage":229}' from endpoint 1 with groupID null Info MQTT publish: topic 'zigbee2mqtt/Gniazdko', payload '{"current":0,"energy":27.58,"linkquality":255,"power":0,"power_outage_memory":"restore","state":"ON","voltage":229}'

Toma82 avatar Nov 22 '21 21:11 Toma82

Could you share the data/database.db entry of this device?

Koenkk avatar Nov 22 '21 21:11 Koenkk

{"id":10,"type":"Router","ieeeAddr":"xxxxxxedbf","nwkAddr":35154,"manufId":4417,"manufName":"_TZ3000_w0qqde0g","powerSource":"Mains (single phase)","modelId":"TS011F","epList":[1,242],"endpoints":{"1":{"profId":260,"epId":1,"devId":266,"inClusterList":[3,4,5,6,1794,2820,57345,57344,0],"outClusterList":[25,10],"clusters":{"genBasic":{"attributes":{"modelId":"TS011F","manufacturerName":"_TZ3000_w0qqde0g","powerSource":1,"zclVersion":3,"appVersion":68,"stackVersion":0,"hwVersion":1,"dateCode":""}},"genOnOff":{"attributes":{"20480":1,"32768":0,"onOff":1,"onTime":0,"offWaitTime":0,"tuyaBacklightMode":0,"moesStartUpOnOff":2}},"haElectricalMeasurement":{"attributes":{"acCurrentDivisor":1000,"acCurrentMultiplier":1,"rmsVoltage":237,"activePower":73,"rmsCurrent":217}},"seMetering":{"attributes":{"divisor":100,"multiplier":1}},"manuSpecificTuya_3":{"attributes":{"53248":0,"53249":0,"53250":0,"53251":0,"53252":0,"53253":0,"53264":2,"switchType":0}}},"binds":[{"cluster":6,"type":"endpoint","deviceIeeeAddress":"0x00212effff070ed0","endpointID":1},{"cluster":2820,"type":"endpoint","deviceIeeeAddress":"0x00212effff070ed0","endpointID":1},{"cluster":1794,"type":"endpoint","deviceIeeeAddress":"0x00212effff070ed0","endpointID":1}],"configuredReportings":[{"cluster":2820,"attrId":1285,"minRepIntval":1,"maxRepIntval":600,"repChange":5},{"cluster":2820,"attrId":1288,"minRepIntval":1,"maxRepIntval":600,"repChange":50},{"cluster":2820,"attrId":1291,"minRepIntval":1,"maxRepIntval":600,"repChange":10},{"cluster":1794,"attrId":0,"minRepIntval":1,"maxRepIntval":600,"repChange":[1,1]}],"meta":{}},"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":680236614},"lastSeen":1637614629330}

Toma82 avatar Nov 22 '21 21:11 Toma82

It is with a different plug image {"id":11,"type":"Router","ieeeAddr":"XXXXXXXXafd","nwkAddr":50131,"manufId":4417,"manufName":"_TZ3000_w0qqde0g","powerSource":"Mains (single phase)","modelId":"TS011F","epList":[1,242],"endpoints":{"1":{"profId":260,"epId":1,"devId":266,"inClusterList":[3,4,5,6,1794,2820,57344,57345,0],"outClusterList":[25,10],"clusters":{"genBasic":{"attributes":{"modelId":"TS011F","manufacturerName":"_TZ3000_w0qqde0g","powerSource":1,"zclVersion":3,"appVersion":64,"stackVersion":0,"hwVersion":1,"dateCode":""}},"haElectricalMeasurement":{"attributes":{"acCurrentDivisor":1000,"acCurrentMultiplier":1}},"seMetering":{"attributes":{"divisor":100,"multiplier":1}}},"binds":[{"cluster":6,"type":"endpoint","deviceIeeeAddress":"0x00212effff070ed0","endpointID":1},{"cluster":2820,"type":"endpoint","deviceIeeeAddress":"0x00212effff070ed0","endpointID":1},{"cluster":1794,"type":"endpoint","deviceIeeeAddress":"0x00212effff070ed0","endpointID":1}],"configuredReportings":[{"cluster":2820,"attrId":1285,"minRepIntval":5,"maxRepIntval":3600,"repChange":5},{"cluster":2820,"attrId":1288,"minRepIntval":5,"maxRepIntval":3600,"repChange":50},{"cluster":2820,"attrId":1291,"minRepIntval":5,"maxRepIntval":3600,"repChange":10},{"cluster":1794,"attrId":0,"minRepIntval":5,"maxRepIntval":3600,"repChange":[1,1]}],"meta":{}},"242":{"profId":41440,"epId":242,"devId":97,"inClusterList":[],"outClusterList":[33],"clusters":{},"binds":[],"configuredReportings":[],"meta":{}}},"appVersion":64,"stackVersion":0,"hwVersion":1,"dateCode":"","zclVersion":3,"interviewCompleted":true,"meta":{"configured":680236614},"lastSeen":1637615931204,"useImplicitCheckin":true}

Toma82 avatar Nov 22 '21 21:11 Toma82

Could you check if this is fixed now for the plug with ieeeAddr 0xa4c138e1620dedbf?

Changes will be available in the dev branch in a few hours from now. (https://www.zigbee2mqtt.io/advanced/more/switch-to-dev-branch.html)

Koenkk avatar Nov 22 '21 21:11 Koenkk

Hi, i have 3 plugs that identify itself as "_TZ3000_w0qqde0g", One of them have similar look but different colours, this one report values without issues i can change reporting timings as well. For another two i can't get reporting to work, zigbeeplugissue.png

Edit: no change in latest-dev

Edit: my database.db for those plugs, note that i was playing with reporting timings

{"id":11,"type":"Router","ieeeAddr":"0xa4c1381caa91d2d5","nwkAddr":19382,"manufId":4417,"manufName":"_TZ3000_w0qqde0g","powerSource":"Mains (single phase)","modelId":"TS011F","epList":[1,242],"endpoints":{"1":{"profId":260,"epId":1,"devId":266,"inClusterList":[3,4,5,6,1794,2820,57345,57344,0],"outClusterList":[25,10],"clusters":{"genBasic":{"attributes":{"modelId":"TS011F","manufacturerName":"_TZ3000_w0qqde0g","powerSource":1,"zclVersion":3,"appVersion":68,"stackVersion":0,"hwVersion":1,"dateCode":""}},"haElectricalMeasurement":{"attributes":{"acCurrentDivisor":1000,"acCurrentMultiplier":1}},"seMetering":{"attributes":{"divisor":100,"multiplier":1}},"genOnOff":{"attributes":{"20480":1,"32768":0,"onOff":0,"onTime":0,"offWaitTime":0,"tuyaBacklightMode":1,"moesStartUpOnOff":2}},"manuSpecificTuya_3":{"attributes":{"53248":0,"53249":0,"53250":0,"53251":0,"53252":0,"53253":0,"53264":2,"switchType":0}}},"binds":[{"cluster":6,"type":"endpoint","deviceIeeeAddress":"0x00124b0025791644","endpointID":1},{"cluster":2820,"type":"endpoint","deviceIeeeAddress":"0x00124b0025791644","endpointID":1},{"cluster":1794,"type":"endpoint","deviceIeeeAddress":"0x00124b0025791644","endpointID":1}],"configuredReportings":[{"cluster":2820,"attrId":1288,"minRepIntval":5,"maxRepIntval":3600,"repChange":50},{"cluster":2820,"attrId":1291,"minRepIntval":5,"maxRepIntval":3600,"repChange":10},{"cluster":1794,"attrId":0,"minRepIntval":5,"maxRepIntval":"10","repChange":[1,1]},{"cluster":2820,"attrId":1285,"minRepIntval":5,"maxRepIntval":"10","repChange":"1"}],"meta":{}},"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":680236614},"lastSeen":1637631848352,"useImplicitCheckin":true}

{"id":4,"type":"Router","ieeeAddr":"0xa4c138295068d73c","nwkAddr":2355,"manufId":4417,"manufName":"_TZ3000_w0qqde0g","powerSource":"Mains (single phase)","modelId":"TS011F","epList":[1,242],"endpoints":{"1":{"profId":260,"epId":1,"devId":266,"inClusterList":[3,4,5,6,1794,2820,57345,57344,0],"outClusterList":[25,10],"clusters":{"genBasic":{"attributes":{"modelId":"TS011F","manufacturerName":"_TZ3000_w0qqde0g","powerSource":1,"zclVersion":3,"appVersion":68,"stackVersion":0,"hwVersion":1,"dateCode":""}},"haElectricalMeasurement":{"attributes":{"acCurrentDivisor":1000,"acCurrentMultiplier":1}},"seMetering":{"attributes":{"divisor":100,"multiplier":1}}},"binds":[{"cluster":6,"type":"endpoint","deviceIeeeAddress":"0x00124b0025791644","endpointID":1},{"cluster":2820,"type":"endpoint","deviceIeeeAddress":"0x00124b0025791644","endpointID":1},{"cluster":1794,"type":"endpoint","deviceIeeeAddress":"0x00124b0025791644","endpointID":1}],"configuredReportings":[{"cluster":2820,"attrId":1285,"minRepIntval":5,"maxRepIntval":3600,"repChange":5},{"cluster":2820,"attrId":1288,"minRepIntval":5,"maxRepIntval":3600,"repChange":50},{"cluster":2820,"attrId":1291,"minRepIntval":5,"maxRepIntval":3600,"repChange":10},{"cluster":1794,"attrId":0,"minRepIntval":5,"maxRepIntval":3600,"repChange":[1,1]}],"meta":{}},"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":680236614},"lastSeen":1637630422047,"useImplicitCheckin":true}

{"id":6,"type":"Router","ieeeAddr":"0xa4c1384281b90290","nwkAddr":14790,"manufId":4417,"manufName":"_TZ3000_w0qqde0g","powerSource":"Mains (single phase)","modelId":"TS011F","epList":[1,242],"endpoints":{"1":{"profId":260,"epId":1,"devId":266,"inClusterList":[3,4,5,6,1794,2820,57344,57345,0],"outClusterList":[25,10],"clusters":{"genOnOff":{"attributes":{"20480":1,"32768":0,"onOff":0,"onTime":0,"offWaitTime":0,"tuyaBacklightMode":1,"moesStartUpOnOff":2}},"manuSpecificTuya_3":{"attributes":{"53264":2,"switchType":0}},"genBasic":{"attributes":{"modelId":"TS011F","manufacturerName":"_TZ3000_w0qqde0g","powerSource":1,"zclVersion":3,"appVersion":64,"stackVersion":0,"hwVersion":1,"dateCode":""}},"haElectricalMeasurement":{"attributes":{"acCurrentDivisor":1000,"acCurrentMultiplier":1,"rmsVoltage":238,"rmsCurrent":0,"activePower":0}},"seMetering":{"attributes":{"divisor":100,"multiplier":1,"currentSummDelivered":[0,46]}}},"binds":[{"cluster":6,"type":"endpoint","deviceIeeeAddress":"0x00124b0025791644","endpointID":1},{"cluster":2820,"type":"endpoint","deviceIeeeAddress":"0x00124b0025791644","endpointID":1},{"cluster":1794,"type":"endpoint","deviceIeeeAddress":"0x00124b0025791644","endpointID":1}],"configuredReportings":[{"cluster":2820,"attrId":1285,"minRepIntval":5,"maxRepIntval":3600,"repChange":5},{"cluster":2820,"attrId":1288,"minRepIntval":5,"maxRepIntval":3600,"repChange":50},{"cluster":2820,"attrId":1291,"minRepIntval":5,"maxRepIntval":3600,"repChange":10},{"cluster":1794,"attrId":0,"minRepIntval":5,"maxRepIntval":"3600","repChange":[1,1]}],"meta":{}},"242":{"profId":41440,"epId":242,"devId":97,"inClusterList":[],"outClusterList":[33],"clusters":{},"binds":[],"configuredReportings":[],"meta":{}}},"appVersion":64,"stackVersion":0,"hwVersion":1,"dateCode":"","zclVersion":3,"interviewCompleted":true,"meta":{"configured":680236614},"lastSeen":1637631357440,"useImplicitCheckin":true}

Working one have inClusters in different order

On plugs with reporting issue i can get values via dev console read Zigbee2MQTT version: 1.22.0-dev commit: a9e3fb3 Adapter: Egony Stick V4 Coordinator revision 20210708

Did commit https://github.com/Koenkk/zigbee-herdsman-converters/commit/a8deb79fa78e25dfb2b51bbccf54ad784634bca2 changed something for _TZ3000_w0qqde0g ? I can't see that

EDIT: @Toma82 does your plug named "Test2" is not reporting even after changing max rep interval to something faster (like 60sec) ? Maybe plugs with appVersion 68 have issues and we can filter by that

kaweksl avatar Nov 23 '21 13:11 kaweksl

Hello, Surprisingly, socket Test 2 started to report correctly, while socket Test still does not.

image image

image image

And this is the 3rd plug

database.db

{"id":13,"type":"Router","ieeeAddr":"0xa4c138tuyuy6fcggdg4cd","nwkAddr":40637,"manufId":4417,"manufName":"_TZ3000_w0qqde0g","powerSource":"Mains (single phase)","modelId":"TS011F","epList":[1,242],"endpoints":{"1":{"profId":260,"epId":1,"devId":266,"inClusterList":[3,4,5,6,1794,2820,57345,57344,0],"outClusterList":[25,10],"clusters":{"genBasic":{"attributes":{"65503":"��\u000f)\u0012\u000b\u0000\u0000\u0000\u0012\u0017\u0000\u0000\u0000\u0016","65506":48,"65508":1,"appVersion":68,"modelId":"TS011F","manufacturerName":"_TZ3000_w0qqde0g","powerSource":1,"zclVersion":3,"stackVersion":0,"hwVersion":1,"dateCode":""}},"genOnOff":{"attributes":{"20480":1,"32768":0,"onOff":1,"onTime":0,"offWaitTime":0,"tuyaBacklightMode":1,"moesStartUpOnOff":2}},"manuSpecificTuya_3":{"attributes":{"53248":0,"53249":0,"53250":0,"53251":0,"53252":0,"53253":0,"53264":2,"switchType":0}},"haElectricalMeasurement":{"attributes":{"acCurrentDivisor":1000,"acCurrentMultiplier":1}},"seMetering":{"attributes":{"divisor":100,"multiplier":1}}},"binds":[{"cluster":6,"type":"endpoint","deviceIeeeAddress":"0x00212effff070ed0","endpointID":1},{"cluster":2820,"type":"endpoint","deviceIeeeAddress":"0x00212effff070ed0","endpointID":1},{"cluster":1794,"type":"endpoint","deviceIeeeAddress":"0x00212effff070ed0","endpointID":1}],"configuredReportings":[{"cluster":2820,"attrId":1288,"minRepIntval":5,"maxRepIntval":"100","repChange":50},{"cluster":2820,"attrId":1285,"minRepIntval":"1","maxRepIntval":"100","repChange":5},{"cluster":1794,"attrId":0,"minRepIntval":"1","maxRepIntval":"100","repChange":[1,1]},{"cluster":2820,"attrId":1291,"minRepIntval":"1","maxRepIntval":"100","repChange":"1"}],"meta":{}},"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":680236614},"lastSeen":1637691945360,"useImplicitCheckin":true}

image

Toma82 avatar Nov 23 '21 15:11 Toma82

Could you both check if it is fixed now?

Changes will be available in the dev branch in a few hours from now. (https://www.zigbee2mqtt.io/advanced/more/switch-to-dev-branch.html)

Koenkk avatar Nov 23 '21 19:11 Koenkk

Seams not fixed. Zigbee2MQTT version 1.22.0-dev commit: 167c056

Plugs are recognized as Model: TS011F_plug_1 I have checked and above patch to tuya,js is in place I have removed and paired plug again, no change still as TS011F_plug_1 does applicationVersion checks for appVersion ?

EDIT: Seams like there is issue with converters priority, in tuya,js i have switched places between converter with applicationVersion and without and it looks ok.

zigbeeplugissue2.png

kaweksl avatar Nov 23 '21 20:11 kaweksl

I am not sure if this is the same issue but it looks like it. I just bought four of these. (TS011F - _TZ3000_ew3ldmgx) Three configure fine and I get updates on power usage. The fourth one however does not. I can only turn it on and off. I run Z2M with a conbee ii. When I connect the failing plug to another setup with a CC2652RB it configures fine. But I don't want it on that setup :) I have tried deleting it and reconfiguring it but no luck. I pasted the logging below. Any tips how to resolve this? Should I install the development branch as mentioned above?

thanks in advance.

Logging: Publish 'set' 'state' to '0x2c1165fffec75baa' failed: 'Error: Command 0x2c1165fffec75baa/1 genOnOff.off({}, {"sendWhenActive":false,"timeout":10000,"disableResponse":false,"disableRecovery":false,"disableDefaultResponse":false,"direction":0,"srcEndpoint":null,"reservedBits":0,"manufacturerCode":null,"transactionSequenceNumber":null,"writeUndiv":false}) failed (no response received)' debug Error: Command 0x2c1165fffec75baa/1 genOnOff.off({}, {"sendWhenActive":false,"timeout":10000,"disableResponse":false,"disableRecovery":false,"disableDefaultResponse":false,"direction":0,"srcEndpoint":null,"reservedBits":0,"manufacturerCode":null,"transactionSequenceNumber":null,"writeUndiv":false}) failed (no response received) at DeconzAdapter.sendZclFrameToEndpoint (/opt/zigbee2mqtt/node_modules/zigbee-herdsman/src/adapter/deconz/adapter/deconzAdapter.ts:645:23) info MQTT publish: topic 'zigbee2mqtt/bridge/log', payload '{"message":"Publish 'set' 'state' to '0x2c1165fffec75baa' failed: 'Error: Command 0x2c1165fffec75baa/1 genOnOff.off({}, {"sendWhenActive":false,"timeout":10000,"disableResponse":false,"disableRecovery":false,"disableDefaultResponse":false,"direction":0,"srcEndpoint":null,"reservedBits":0,"manufacturerCode":null,"transactionSequenceNumber":null,"writeUndiv":false}) failed (no response received)'","meta":{"friendly_name":"0x2c1165fffec75baa"},"type":"zigbee_publish_error"}' error Publish 'set' 'state' to '0x2c1165fffec75baa' failed: 'Error: Command 0x2c1165fffec75baa/1 genOnOff.off({}, {"sendWhenActive":false,"timeout":10000,"disableResponse":false,"disableRecovery":false,"disableDefaultResponse":false,"direction":0,"srcEndpoint":null,"reservedBits":0,"manufacturerCode":null,"transactionSequenceNumber":null,"writeUndiv":false}) failed (no response received)' debug Error: Command 0x2c1165fffec75baa/1 genOnOff.off({}, {"sendWhenActive":false,"timeout":10000,"disableResponse":false,"disableRecovery":false,"disableDefaultResponse":false,"direction":0,"srcEndpoint":null,"reservedBits":0,"manufacturerCode":null,"transactionSequenceNumber":null,"writeUndiv":false}) failed (no response received) at DeconzAdapter.sendZclFrameToEndpoint (/opt/zigbee2mqtt/node_modules/zigbee-herdsman/src/adapter/deconz/adapter/deconzAdapter.ts:645:23) at runMicrotasks () at runNextTicks (internal/process/task_queues.js:62:5) at processTimers (internal/timers.js:494:9) info MQTT publish: topic 'zigbee2mqtt/bridge/log', payload '{"message":"Publish 'set' 'state' to '0x2c1165fffec75baa' failed: 'Error: Command 0x2c1165fffec75baa/1 genOnOff.off({}, {"sendWhenActive":false,"timeout":10000,"disableResponse":false,"disableRecovery":false,"disableDefaultResponse":false,"direction":0,"srcEndpoint":null,"reservedBits":0,"manufacturerCode":null,"transactionSequenceNumber":null,"writeUndiv":false}) failed (no response received)'","meta":{"friendly_name":"0x2c1165fffec75baa"},"type":"zigbee_publish_error"}'

avanlievenoogen avatar Nov 23 '21 21:11 avanlievenoogen

@avanlievenoogen post lines from data/database.db for all four plugs when paired with setup that have issues. Entry when paired with working setup might be useful too

kaweksl avatar Nov 23 '21 22:11 kaweksl

There is no improvement at the moment, no reporting via these 2 sockets

Toma82 avatar Nov 24 '21 05:11 Toma82

@kaweksl

EDIT: Seams like there is issue with converters priority, in tuya,js i have switched places between converter with applicationVersion and without and it looks ok.

What is the order now, first TS011F_plug_1 after that TS011F_plug_3 or TS011F_plug_3 after that TS011F_plug_1?

Koenkk avatar Nov 24 '21 07:11 Koenkk

First TS011F_plug_1 , then TS011F_plug_3. That works for me

kaweksl avatar Nov 24 '21 08:11 kaweksl

@kaweksl

@avanlievenoogen post lines from data/database.db for all four plugs when paired with setup that have issues. Entry when paired with working setup might be useful too

Three plugs where energy mon. is working: {"id":5,"type":"Router","ieeeAddr":"0x2c1165fffec75bce","nwkAddr":26315,"manufId":4098,"manufName":"_TZ3000_ew3ldmgx","powerSource":"Mains (single phase)","modelId":"TS011F","epList":[1,242],"endpoints":{"1":{"profId":260,"epId":1,"devId":266,"inClusterList":[0,3,4,5,6,1794,2820,57344,57345],"outClusterList":[25,10],"clusters":{"genBasic":{"attributes":{"modelId":"TS011F","manufacturerName":"_TZ3000_ew3ldmgx","powerSource":1,"zclVersion":3,"appVersion":67,"stackVersion":0,"hwVersion":1,"dateCode":""}},"haElectricalMeasurement":{"attributes":{"rmsCurrent":101,"activePower":0,"acCurrentDivisor":1000,"acCurrentMultiplier":1,"rmsVoltage":236}},"seMetering":{"attributes":{"divisor":100,"multiplier":1,"currentSummDelivered":[0,199]}},"genOnOff":{"attributes":{"onOff":1}}},"binds":[{"cluster":6,"type":"endpoint","deviceIeeeAddress":"0x00212effff06a322","endpointID":1},{"cluster":2820,"type":"endpoint","deviceIeeeAddress":"0x00212effff06a322","endpointID":1},{"cluster":1794,"type":"endpoint","deviceIeeeAddress":"0x00212effff06a322","endpointID":1}],"configuredReportings":[{"cluster":2820,"attrId":1285,"minRepIntval":5,"maxRepIntval":3600,"repChange":5},{"cluster":2820,"attrId":1288,"minRepIntval":5,"maxRepIntval":3600,"repChange":50},{"cluster":2820,"attrId":1291,"minRepIntval":5,"maxRepIntval":3600,"repChange":10},{"cluster":1794,"attrId":0,"minRepIntval":5,"maxRepIntval":3600,"repChange":[1,1]}],"meta":{}},"242":{"profId":41440,"epId":242,"devId":97,"inClusterList":[],"outClusterList":[33],"clusters":{},"binds":[],"configuredReportings":[],"meta":{}}},"appVersion":67,"stackVersion":0,"hwVersion":1,"dateCode":"","zclVersion":3,"interviewCompleted":true,"meta":{"configured":680236614},"lastSeen":1637737286876} {"id":28,"type":"Router","ieeeAddr":"0x2c1165fffea2a42e","nwkAddr":43495,"manufId":4098,"manufName":"_TZ3000_ew3ldmgx","powerSource":"Mains (single phase)","modelId":"TS011F","epList":[1,242],"endpoints":{"1":{"profId":260,"epId":1,"devId":266,"inClusterList":[0,3,4,5,6,1794,2820,57344,57345],"outClusterList":[25,10],"clusters":{"genBasic":{"attributes":{"modelId":"TS011F","manufacturerName":"_TZ3000_ew3ldmgx","powerSource":1,"zclVersion":3,"appVersion":67,"stackVersion":0,"hwVersion":1,"dateCode":""}},"haElectricalMeasurement":{"attributes":{"rmsVoltage":237,"rmsCurrent":340,"activePower":86,"acCurrentDivisor":1000,"acCurrentMultiplier":1}},"seMetering":{"attributes":{"divisor":100,"multiplier":1,"currentSummDelivered":[0,122]}},"genOnOff":{"attributes":{"onOff":1}}},"binds":[{"cluster":6,"type":"endpoint","deviceIeeeAddress":"0x00212effff06a322","endpointID":1},{"cluster":2820,"type":"endpoint","deviceIeeeAddress":"0x00212effff06a322","endpointID":1},{"cluster":1794,"type":"endpoint","deviceIeeeAddress":"0x00212effff06a322","endpointID":1}],"configuredReportings":[{"cluster":2820,"attrId":1291,"minRepIntval":5,"maxRepIntval":3600,"repChange":10},{"cluster":1794,"attrId":0,"minRepIntval":5,"maxRepIntval":3600,"repChange":[1,1]},{"cluster":2820,"attrId":1288,"minRepIntval":"60","maxRepIntval":3600,"repChange":50},{"cluster":2820,"attrId":1285,"minRepIntval":"60","maxRepIntval":3600,"repChange":5}],"meta":{}},"242":{"profId":41440,"epId":242,"devId":97,"inClusterList":[],"outClusterList":[33],"clusters":{},"binds":[],"configuredReportings":[],"meta":{}}},"appVersion":67,"stackVersion":0,"hwVersion":1,"dateCode":"","zclVersion":3,"interviewCompleted":true,"meta":{"configured":680236614},"lastSeen":1637737621639} {"id":26,"type":"Router","ieeeAddr":"0x2c1165fffec3f7f2","nwkAddr":45869,"manufId":4098,"manufName":"_TZ3000_ew3ldmgx","powerSource":"Mains (single phase)","modelId":"TS011F","epList":[1,242],"endpoints":{"1":{"profId":260,"epId":1,"devId":266,"inClusterList":[0,3,4,5,6,1794,2820,57344,57345],"outClusterList":[25,10],"clusters":{"genBasic":{"attributes":{"modelId":"TS011F","manufacturerName":"_TZ3000_ew3ldmgx","powerSource":1,"zclVersion":3,"appVersion":67,"stackVersion":0,"hwVersion":1,"dateCode":""}},"haElectricalMeasurement":{"attributes":{"rmsCurrent":0,"activePower":0,"acCurrentDivisor":1000,"acCurrentMultiplier":1,"rmsVoltage":235}},"seMetering":{"attributes":{"divisor":100,"multiplier":1,"currentSummDelivered":[0,0]}},"genOnOff":{"attributes":{"onOff":0}}},"binds":[{"cluster":6,"type":"endpoint","deviceIeeeAddress":"0x00212effff06a322","endpointID":1},{"cluster":2820,"type":"endpoint","deviceIeeeAddress":"0x00212effff06a322","endpointID":1},{"cluster":1794,"type":"endpoint","deviceIeeeAddress":"0x00212effff06a322","endpointID":1}],"configuredReportings":[{"cluster":2820,"attrId":1285,"minRepIntval":5,"maxRepIntval":3600,"repChange":5},{"cluster":2820,"attrId":1288,"minRepIntval":5,"maxRepIntval":3600,"repChange":50},{"cluster":2820,"attrId":1291,"minRepIntval":5,"maxRepIntval":3600,"repChange":10},{"cluster":1794,"attrId":0,"minRepIntval":5,"maxRepIntval":3600,"repChange":[1,1]}],"meta":{}},"242":{"profId":41440,"epId":242,"devId":97,"inClusterList":[],"outClusterList":[33],"clusters":{},"binds":[],"configuredReportings":[],"meta":{}}},"appVersion":67,"stackVersion":0,"hwVersion":1,"dateCode":"","zclVersion":3,"interviewCompleted":true,"meta":{"configured":680236614},"lastSeen":1637737560318}

failing on same setup as above: {"id":27,"type":"Router","ieeeAddr":"0x2c1165fffec75baa","nwkAddr":19460,"manufId":4098,"manufName":"_TZ3000_ew3ldmgx","powerSource":"Mains (single phase)","modelId":"TS011F","epList":[1,242],"endpoints":{"1":{"profId":260,"epId":1,"devId":266,"inClusterList":[0,3,4,5,6,1794,2820,57344,57345],"outClusterList":[25,10],"clusters":{"genBasic":{"attributes":{"modelId":"TS011F","manufacturerName":"_TZ3000_ew3ldmgx","powerSource":1,"zclVersion":3,"appVersion":67,"stackVersion":0,"hwVersion":1,"dateCode":""}},"haElectricalMeasurement":{"attributes":{"acCurrentDivisor":1000,"acCurrentMultiplier":1,"rmsVoltage":238,"rmsCurrent":0,"activePower":0}},"seMetering":{"attributes":{"divisor":100,"multiplier":1,"currentSummDelivered":[0,0]}},"genOnOff":{"attributes":{"onOff":0}}},"binds":[{"cluster":6,"type":"endpoint","deviceIeeeAddress":"0x00212effff06a322","endpointID":1},{"cluster":2820,"type":"endpoint","deviceIeeeAddress":"0x00212effff06a322","endpointID":1},{"cluster":1794,"type":"endpoint","deviceIeeeAddress":"0x00212effff06a322","endpointID":1}],"configuredReportings":[{"cluster":2820,"attrId":1285,"minRepIntval":5,"maxRepIntval":3600,"repChange":5},{"cluster":2820,"attrId":1288,"minRepIntval":5,"maxRepIntval":3600,"repChange":50},{"cluster":2820,"attrId":1291,"minRepIntval":5,"maxRepIntval":3600,"repChange":10},{"cluster":1794,"attrId":0,"minRepIntval":5,"maxRepIntval":3600,"repChange":[1,1]}],"meta":{}},"242":{"profId":41440,"epId":242,"devId":97,"inClusterList":[],"outClusterList":[33],"clusters":{},"binds":[],"configuredReportings":[],"meta":{}}},"appVersion":67,"stackVersion":0,"hwVersion":1,"dateCode":"","zclVersion":3,"interviewCompleted":true,"meta":{},"lastSeen":1637702995306}

but working on different setup: {"id":9,"type":"Router","ieeeAddr":"0x2c1165fffec75baa","nwkAddr":26403,"manufId":4098,"manufName":"_TZ3000_ew3ldmgx","powerSource":"Mains (single phase)","modelId":"TS011F","epList":[1,242],"endpoints":{"1":{"profId":260,"epId":1,"devId":266,"inClusterList":[0,3,4,5,6,1794,2820,57344,57345],"outClusterList":[25,10],"clusters":{"genBasic":{"attributes":{"modelId":"TS011F","manufacturerName":"_TZ3000_ew3ldmgx","powerSource":1,"zclVersion":3,"appVersion":67,"stackVersion":0,"hwVersion":1,"dateCode":""}},"haElectricalMeasurement":{"attributes":{"rmsCurrent":0,"activePower":0,"acCurrentDivisor":1000,"acCurrentMultiplier":1}},"seMetering":{"attributes":{"divisor":100,"multiplier":1}}},"binds":[{"cluster":6,"type":"endpoint","deviceIeeeAddress":"0x00124b002393397a","endpointID":1},{"cluster":2820,"type":"endpoint","deviceIeeeAddress":"0x00124b002393397a","endpointID":1},{"cluster":1794,"type":"endpoint","deviceIeeeAddress":"0x00124b002393397a","endpointID":1}],"configuredReportings":[{"cluster":2820,"attrId":1285,"minRepIntval":5,"maxRepIntval":3600,"repChange":5},{"cluster":2820,"attrId":1288,"minRepIntval":5,"maxRepIntval":3600,"repChange":50},{"cluster":2820,"attrId":1291,"minRepIntval":5,"maxRepIntval":3600,"repChange":10},{"cluster":1794,"attrId":0,"minRepIntval":5,"maxRepIntval":3600,"repChange":[1,1]}],"meta":{}},"242":{"profId":41440,"epId":242,"devId":97,"inClusterList":[],"outClusterList":[33],"clusters":{},"binds":[],"configuredReportings":[],"meta":{}}},"appVersion":67,"stackVersion":0,"hwVersion":1,"dateCode":"","zclVersion":3,"interviewCompleted":true,"meta":{"configured":680236614},"lastSeen":1637741719494}

avanlievenoogen avatar Nov 24 '21 08:11 avanlievenoogen

I confirm how I changed places first TS011F_plug_1 after that TS011F_plug_3, everything works fine and the socket is already reporting

Thank you very much @Koenkk and @kaweksl for your help. You guys are gorgeous! Good job gentlemen. image image

Toma82 avatar Nov 24 '21 16:11 Toma82

Thanks, fixed this now.

Changes will be available in the dev branch in a few hours from now. (https://www.zigbee2mqtt.io/advanced/more/switch-to-dev-branch.html)

Koenkk avatar Nov 24 '21 20:11 Koenkk

great! switching to development branch also fixed it for me. Thank you very much!

avanlievenoogen avatar Nov 25 '21 15:11 avanlievenoogen

Does the power_outage_memory setting work for you on these new plugs? Mine always seem to be turned off when power comes back on, regardless of the setting or previous state?

iisworks avatar Dec 04 '21 08:12 iisworks

On TS011F_plug_3 it doesn't, after plugging into socket plug turns on and off, not matter how i set ower_outage_memory setting . On TS011F_plug_1 this setting work as expected.

kaweksl avatar Dec 05 '21 14:12 kaweksl

Hi @Koenkk

Zigbee2MQTT versie: 1.22.1-dev commit: d0195d0 Coordinator type: zStack3x0 Coordinator revisie: 20200925 Versie frontend: 0.6.59

Just recieved four plugs and they are exposed as _TZ3000_ew3ldmgx (TS011F_plug_1) thats good right ? But the values are Null.

zigbe1

But as in the opening post i can read the values.

zigbe2

This is my db

{"id":61,"type":"Router","ieeeAddr":"0x540f57fffe8ebd39","nwkAddr":15909,"manufId":4098,"manufName":"_TZ3000_ew3ldmgx","powerSource":"Mains (single phase)","modelId":"TS011F","epList":[1,242],"endpoints":{"1":{"profId":260,"epId":1,"devId":266,"inClusterList":[0,3,4,5,6,1794,2820,57344,57345],"outClusterList":[25,10],"clusters":{"genBasic":{"attributes":{"modelId":"TS011F","manufacturerName":"_TZ3000_ew3ldmgx","powerSource":1,"zclVersion":3,"appVersion":69,"stackVersion":0,"hwVersion":1,"dateCode":""}},"haElectricalMeasurement":{"attributes":{"acCurrentDivisor":1000,"acCurrentMultiplier":1}},"seMetering":{"attributes":{"divisor":100,"multiplier":1}},"genOnOff":{"attributes":{"onOff":1}}},"binds":[{"cluster":6,"type":"endpoint","deviceIeeeAddress":"0x00124b0021cbf135","endpointID":1},{"cluster":2820,"type":"endpoint","deviceIeeeAddress":"0x00124b0021cbf135","endpointID":1},{"cluster":1794,"type":"endpoint","deviceIeeeAddress":"0x00124b0021cbf135","endpointID":1}],"configuredReportings":[{"cluster":2820,"attrId":1285,"minRepIntval":5,"maxRepIntval":3600,"repChange":5},{"cluster":2820,"attrId":1288,"minRepIntval":5,"maxRepIntval":3600,"repChange":50},{"cluster":2820,"attrId":1291,"minRepIntval":5,"maxRepIntval":3600,"repChange":10},{"cluster":1794,"attrId":0,"minRepIntval":5,"maxRepIntval":3600,"repChange":[1,1]},{"cluster":6,"attrId":0,"minRepIntval":0,"maxRepIntval":300,"repChange":0}],"meta":{}},"242":{"profId":41440,"epId":242,"devId":97,"inClusterList":[],"outClusterList":[33],"clusters":{},"binds":[],"configuredReportings":[],"meta":{}}},"appVersion":69,"stackVersion":0,"hwVersion":1,"dateCode":"","zclVersion":3,"interviewCompleted":true,"meta":{"configured":680236614,"reporting":1},"lastSeen":1638997122907,"useImplicitCheckin":true}

What am i doing wrong?

Webserve avatar Dec 08 '21 21:12 Webserve