Skip to content
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

Wrong illuminance reported (TS0225) after update to 1.39.1-1 #23496

Closed
hagier opened this issue Aug 3, 2024 · 16 comments
Closed

Wrong illuminance reported (TS0225) after update to 1.39.1-1 #23496

hagier opened this issue Aug 3, 2024 · 16 comments
Labels
problem Something isn't working

Comments

@hagier
Copy link

hagier commented Aug 3, 2024

What happened?

After change #19803 illuminance reported is too small (with turned on light I get only 23 lx).

What did you expect to happen?

It was reporting well until change #19803.

How to reproduce it (minimal and precise)

Using presence detector TS0225 (_TZE200_2aaelwxk) and update Z2M to newest version.

image

Zigbee2MQTT version

1.39.1-1

Adapter firmware version

20221226

Adapter

Sonoff Dongle-P

Setup

HA Add-on

Debug log

No response

@hagier hagier added the problem Something isn't working label Aug 3, 2024
@trackhacs
Copy link

i have the same issue. repairing did not fix it.

after moving it to ZHA it works again as expected.

First trouble with ikea lamp, now this. ZHA uses differnt Sonoff dongle though.

@Koenkk
Copy link
Owner

Koenkk commented Aug 4, 2024

@kkondyl can you confirm it reports the correct illuminance in your case now? I probably have to revert Koenkk/zigbee-herdsman-converters@1a923cf because of this.

@kkondyl
Copy link

kkondyl commented Aug 4, 2024

@kkondyl can you confirm it reports the correct illuminance in your case now? I probably have to revert Koenkk/zigbee-herdsman-converters@1a923cf because of this.

I confirm that after update to 1.39.1 all my presence sensors ZG-205Z (_TZE200_2aaelwxk) firmware version 0122052017 are reporting correct illuminance!
My sensors are like the one in below link:
https://smarthomescene.com/reviews/tuya-zigbee-presence-sensor-zg-205z-review/

@ViktorAkselrod
Copy link

I have the same issue.
After update 1.39.1 the sensor ZG-205Z/A (_TZE200_2aaelwxk) shows absolutely underestimated values.
Max 28lx after update (2400lx before)

@felipejgribeiro
Copy link

felipejgribeiro commented Aug 5, 2024

Same problem here... :(
My Illuminance is showing 27lx as max for _TZE200_2aaelwxk (TS0225). Before it was around 24000lx.

@bmmmm
Copy link

bmmmm commented Aug 6, 2024

My illuminance values were completely wrong and "low" as well.
I downgraded to version 1.38.0-1 and it works again for me as expected

@Koenkk
Copy link
Owner

Koenkk commented Aug 7, 2024

@kkondyl and the others, could you provide the data/database.db entry of your device?

@kkondyl
Copy link

kkondyl commented Aug 7, 2024

@kkondyl and the others, could you provide the data/database.db entry of your device?

please check below one of my 4x active devices:
{"id":36,"type":"Router","ieeeAddr":"0xa4c1380e100c5e50","nwkAddr":41289,"manufId":4417,"manufName":"_TZE200_2aaelwxk","powerSource":"DC Source","modelId":"TS0225","epList":[1,242],"endpoints":{"1":{"profId":260,"epId":1,"devId":1026,"inClusterList":[0,3,1280,57346,61184,60928,57344,1024],"outClusterList":[3,57346,61184,60928,57344],"clusters":{"genBasic":{"attributes":{"modelId":"TS0225","manufacturerName":"_TZE200_2aaelwxk","powerSource":4,"zclVersion":3,"appVersion":130,"stackVersion":2,"hwVersion":1,"swBuildId":"0122052017"}},"ssIasZone":{"attributes":{"iasCieAddr":"0xe0798dfffea7bcf7","zoneState":0}},"msIlluminanceMeasurement":{"attributes":{"measuredValue":1}}},"binds":[],"configuredReportings":[],"meta":{}},"242":{"profId":41440,"epId":242,"devId":97,"inClusterList":[],"outClusterList":[33],"clusters":{},"binds":[],"configuredReportings":[],"meta":{}}},"appVersion":130,"stackVersion":2,"hwVersion":1,"swBuildId":"0122052017","zclVersion":3,"interviewCompleted":true,"meta":{},"lastSeen":1723059635728}

@ViktorAkselrod
Copy link

ViktorAkselrod commented Aug 7, 2024

{"id":22,"type":"Router","ieeeAddr":"0xa4c1387471f15cad","nwkAddr":31848,"manufId":4417,"manufName":"_TZE200_2aaelwxk","powerSource":"DC Source","modelId":"TS0225","epList":[1,242],"endpoints":{"1":{"profId":260,"epId":1,"devId":1026,"inClusterList":[0,3,1280,57346,61184,60928,57344,1024],"outClusterList":[3,57346,61184,60928,57344],"clusters":{"genBasic":{"attributes":{}},"ssIasZone":{"attributes":{"iasCieAddr":"0xe0798dfffe99847c","zoneState":0}},"msIlluminanceMeasurement":{"attributes":{"measuredValue":1}}},"binds":[],"configuredReportings":[],"meta":{}},"242":{"profId":41440,"epId":242,"devId":97,"inClusterList":[],"outClusterList":[33],"clusters":{},"binds":[],"configuredReportings":[],"meta":{}}},"appVersion":130,"stackVersion":2,"hwVersion":1,"swBuildId":"0122052017","zclVersion":3,"interviewCompleted":true,"meta":{},"lastSeen":1723065573439}

@matriphe
Copy link

matriphe commented Aug 8, 2024

mine:

{
  "id": 4,
  "type": "Router",
  "ieeeAddr": "0xa4c138d723b0376b",
  "nwkAddr": 16902,
  "manufId": 4417,
  "manufName": "_TZE200_2aaelwxk",
  "powerSource": "DC Source",
  "modelId": "TS0225",
  "epList": [
    1,
    242
  ],
  "endpoints": {
    "1": {
      "profId": 260,
      "epId": 1,
      "devId": 1026,
      "inClusterList": [
        0,
        3,
        1280,
        57346,
        61184,
        60928,
        57344,
        1024
      ],
      "outClusterList": [
        3,
        57346,
        61184,
        60928,
        57344
      ],
      "clusters": {
        "genBasic": {
          "attributes": {
            "zclVersion": 3
          }
        },
        "ssIasZone": {
          "attributes": {
            "iasCieAddr": "0x90395efffe3ed413",
            "zoneState": 0
          }
        },
        "msIlluminanceMeasurement": {
          "attributes": {
            "measuredValue": 31954
          }
        }
      },
      "binds": [],
      "configuredReportings": [],
      "meta": {}
    },
    "242": {
      "profId": 41440,
      "epId": 242,
      "devId": 97,
      "inClusterList": [],
      "outClusterList": [
        33
      ],
      "clusters": {},
      "binds": [],
      "configuredReportings": [],
      "meta": {}
    }
  },
  "appVersion": 131,
  "stackVersion": 2,
  "hwVersion": 1,
  "swBuildId": "0122052017",
  "zclVersion": 3,
  "interviewCompleted": true,
  "meta": {},
  "lastSeen": 1723132196691
}

@hagier
Copy link
Author

hagier commented Aug 11, 2024

@kkondyl and the others, could you provide the data/database.db entry of your device?

{
  "id": 52,
  "type": "Router",
  "ieeeAddr": "0xa4c138d51ff3f611",
  "nwkAddr": 57334,
  "manufId": 4417,
  "manufName": "_TZE200_2aaelwxk",
  "powerSource": "DC Source",
  "modelId": "TS0225",
  "epList": [
    1,
    242
  ],
  "endpoints": {
    "1": {
      "profId": 260,
      "epId": 1,
      "devId": 1026,
      "inClusterList": [
        0,
        3,
        1280,
        57346,
        61184,
        60928,
        57344,
        1024
      ],
      "outClusterList": [
        3,
        57346,
        61184,
        60928,
        57344
      ],
      "clusters": {
        "msIlluminanceMeasurement": {
          "attributes": {
            "measuredValue": 24314
          }
        },
        "genBasic": {
          "attributes": {
            "modelId": "TS0225",
            "manufacturerName": "_TZE200_2aaelwxk",
            "powerSource": 4,
            "zclVersion": 3,
            "appVersion": 130,
            "stackVersion": 2,
            "hwVersion": 1,
            "swBuildId": "0122052017"
          }
        },
        "ssIasZone": {
          "attributes": {
            "iasCieAddr": "0x00124b0029dbfef6",
            "zoneState": 0
          }
        }
      },
      "binds": [],
      "configuredReportings": [],
      "meta": {}
    },
    "242": {
      "profId": 41440,
      "epId": 242,
      "devId": 97,
      "inClusterList": [],
      "outClusterList": [
        33
      ],
      "clusters": {},
      "binds": [],
      "configuredReportings": [],
      "meta": {}
    }
  },
  "appVersion": 130,
  "stackVersion": 2,
  "hwVersion": 1,
  "swBuildId": "0122052017",
  "zclVersion": 3,
  "interviewCompleted": true,
  "meta": {},
  "lastSeen": 1723398730507
}

@PTR-AA
Copy link

PTR-AA commented Aug 11, 2024

{"id":33,"type":"Router","ieeeAddr":"0xa4c13806db2c0815","nwkAddr":60580,"manufId":4417,"manufName":"_TZE200_2aaelwxk","powerSource":"DC Source","modelId":"TS0225","epList":[1,242],"endpoints":{"1":{"profId":260,"epId":1,"devId":1026,"inClusterList":[0,3,1280,57346,61184,60928,57344,1024],"outClusterList":[3,57346,61184,60928,57344],"clusters":{"genBasic":{"attributes":{"zclVersion":3}},"ssIasZone":{"attributes":{"iasCieAddr":"0x00212effff066efb","zoneState":0}},"msIlluminanceMeasurement":{"attributes":{"measuredValue":1}}},"binds":[],"configuredReportings":[],"meta":{}},"242":{"profId":41440,"epId":242,"devId":97,"inClusterList":[],"outClusterList":[33],"clusters":{},"binds":[],"configuredReportings":[],"meta":{}}},"appVersion":130,"stackVersion":2,"hwVersion":1,"swBuildId":"0122052017","zclVersion":3,"interviewCompleted":true,"meta":{},"lastSeen":1723404208193}

Edit / Ps:
Mine is the "bigger" squarish version, whereas kkondyl's device is the slimmer version. Maximum brightness of mine before Z2M 1.39.1 2953lx, with 1.39.1 max 30lx.

@Koenkk
Copy link
Owner

Koenkk commented Aug 12, 2024

Since all the attributes are the same swBuildId, appVersion, stackVersion are the same, we cannot distinguish these devices so I have to revert Koenkk/zigbee-herdsman-converters@1a923cf (since it seems to be wrong for more people now than before). I expect that some version of this device are a bit crappy (no uncommon with Tuya)

Changes will be available in the dev branch tomorrow.

@hagier
Copy link
Author

hagier commented Aug 12, 2024

@Koenkk I bought light meter for measuring and calibrating.

Now sensor is correct for low values (~10lx) but when exposed to light it shows wrong values:

image

image

I tried to assign "Illuminance calibration" (x1000%) to multiply values but now it's not correct in low light:

image

image

Will reverting #19803 change calculations or just multiple value?

@Koenkk
Copy link
Owner

Koenkk commented Aug 13, 2024

@hagier it will just multiply the values, it seems the illuminance sensor is not very reliable?

@originalcom
Copy link

I have the same problem. These work surprigingly well as a low cost LUX sensor. I have one in a clear box outside and use it for dawn / dusk and various other functions. Is it possible to add a manual definition to overide the inbuilt one for this or do I have to restore the previous version?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
problem Something isn't working
Projects
None yet
Development

No branches or pull requests

10 participants