-
Notifications
You must be signed in to change notification settings - Fork 3.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fix _TZ3000_cehuw1lw with appversion 112 #7482
Conversation
This was already done before but reverted: #6731 @DataGhost could you provide the data/database.db entry of your TS011F_plug_1? |
Of course, here's the database entry after I removed the fix and re-paired the plug:
|
I have been way behind on all of the things I wanted to do here and currently migrating my setup to a different server while busy with a ton of other things. If you meant test this PR as an external converter I'll have to say I can try that hopefully this week. I'm currently not on the dev branch so on 1.37.0 commit: 46f34c8 with 19.32.0 my current db entry for one of them is: {
"appVersion" : 112,
"endpoints" : {
"1" : {
"binds" : [
{
"cluster" : 6,
"deviceIeeeAddress" : "0xdc8e95fffe27a7de",
"endpointID" : 1,
"type" : "endpoint"
},
{
"cluster" : 2820,
"deviceIeeeAddress" : "0xdc8e95fffe27a7de",
"endpointID" : 1,
"type" : "endpoint"
},
{
"cluster" : 1794,
"deviceIeeeAddress" : "0xdc8e95fffe27a7de",
"endpointID" : 1,
"type" : "endpoint"
}
],
"clusters" : {
"genBasic" : {
"attributes" : {
"appVersion" : 112,
"hwVersion" : 0,
"manufacturerName" : "_TZ3000_okaz9tjs",
"modelId" : "TS011F",
"powerSource" : 1,
"stackVersion" : 2,
"swBuildId" : "0122052017",
"zclVersion" : 3
}
},
"genOnOff" : {
"attributes" : {
"32768" : 0,
"moesStartUpOnOff" : 0,
"offWaitTime" : 0,
"onOff" : 1,
"onTime" : 0,
"tuyaBacklightMode" : 1
}
},
"haElectricalMeasurement" : {
"attributes" : {
"acCurrentDivisor" : 1000,
"acCurrentMultiplier" : 1,
"acVoltageDivisor" : 1,
"acVoltageMultiplier" : 1,
"activePower" : 84,
"rmsCurrent" : 400,
"rmsVoltage" : 245
}
},
"seMetering" : {
"attributes" : {
"currentSummDelivered" : [
0,
9921
],
"divisor" : 100,
"multiplier" : 1
}
}
},
"configuredReportings" : [
{
"attrId" : 0,
"cluster" : 6,
"manufacturerCode" : null,
"maxRepIntval" : 65000,
"minRepIntval" : 0,
"repChange" : 1
},
{
"attrId" : 1285,
"cluster" : 2820,
"manufacturerCode" : null,
"maxRepIntval" : 3600,
"minRepIntval" : 5,
"repChange" : 5
},
{
"attrId" : 1288,
"cluster" : 2820,
"manufacturerCode" : null,
"maxRepIntval" : 3600,
"minRepIntval" : 5,
"repChange" : 50
},
{
"attrId" : 0,
"cluster" : 1794,
"manufacturerCode" : null,
"maxRepIntval" : 3600,
"minRepIntval" : 5,
"repChange" : 2
}
],
"devId" : 81,
"epId" : 1,
"inClusterList" : [
0,
3,
4,
5,
6,
10,
57344,
1794,
2820,
4096,
6280
],
"meta" : {},
"outClusterList" : [
25
],
"profId" : 260
},
"242" : {
"binds" : [],
"clusters" : {},
"configuredReportings" : [],
"devId" : 97,
"epId" : 242,
"inClusterList" : [],
"meta" : {},
"outClusterList" : [
33
],
"profId" : 41440
}
},
"epList" : [
1,
242
],
"hwVersion" : 0,
"id" : 41,
"ieeeAddr" : "0xa4c13801e33848a2",
"interviewCompleted" : true,
"lastSeen" : 1715072778376,
"manufId" : 4107,
"manufName" : "_TZ3000_okaz9tjs",
"meta" : {
"configured" : 1310285083
},
"modelId" : "TS011F",
"nwkAddr" : 7339,
"powerSource" : "Mains (single phase)",
"stackVersion" : 2,
"swBuildId" : "0122052017",
"type" : "Router",
"zclVersion" : 3
} |
The one from @DataGhost has |
Edit TS011F_plug_3 fingerprint to include devices running the known bad 1.0.5 firmware version as rewrote mapping to a list to make it easier to make exceptions in the future listed on https://www.zigbee2mqtt.io/devices/TS011F_plug_3.html#tuya-ts011f_plug_3
Edit TS011F_plug_3 fingerprint to include devices running the known bad 1.0.5 firmware version as rewrote mapping to a list to make it easier to make exceptions in the future listed on https://www.zigbee2mqtt.io/devices/TS011F_plug_3.html#tuya-ts011f_plug_3
Done. Changed the Fingerprint from a map to a list as well to make it consistent with the rest of the converters and easier to add stuff in the future, and added the entire 1.0.5 swbuild to the fingerprint so all cases with such broken firmware should now be caught |
Thanks! |
Added application version 112 to the fingerprint check for TS011F with power monitoring by polling due to a misbehaving plug _TZ3000_cehuw1lw running appversion 112, and swBuild 1.0.5 which was reporting amps x 1000 and was not reporting kWh until this change
Not 100% certain this won't break other plugs on appversion 112, so we could potentially use the swBuild 1.0.5 as a fingerprint instead to match, since https://www.zigbee2mqtt.io/devices/TS011F_plug_3.html#tuya-ts011f_plug_3 mentions that plugs with 1.0.5 seem to be impacted specifically