zigbee2mqtt icon indicating copy to clipboard operation
zigbee2mqtt copied to clipboard

TZ3000_b28wrpvx Measurement 0 when there is consumption

Open gedas07 opened this issue 1 year ago • 12 comments

What happened?

I have a bssed that, having a raspberry pi4 plugged in, its instantaneous consumption goes to zero, and remains at zero

What did you expect to happen?

No response

How to reproduce it (minimal and precise)

No response

Zigbee2MQTT version

1.35.0-dev commit

Adapter firmware version

0x26660700

Adapter

ConBee2/RaspBee2

Debug log

No response

gedas07 avatar Jan 02 '24 01:01 gedas07

Same here, What happened? After the 1.35.0 update, the consumption goes to 0

Zigbee2MQTT version 1.35.0-dev commit

Adapter firmware version zStack3x0 ITead_Sonoff_Zigbee_3.0_USB_Dongle_Plus Coordinator revision: 20230507

Zigbee model TS011F Zigbee Manufacturer TZ3000_typdpbpg Model TS011F_plug_1

image

nortuzar avatar Jan 02 '24 01:01 nortuzar

Could you provide the debug log when power goes to 0 when it shouldn't?

See this on how to enable debug logging.

Koenkk avatar Jan 02 '24 08:01 Koenkk

same for me image 2 seconds later image

updated yesterday to 1.35 and this happened image

looks like this comes from #19680

b2un0 avatar Jan 02 '24 08:01 b2un0

same here, upgraded at 17:48 image

I have the issue on TS011F plugs (_TZ3000_amdymr7l) but not on the TS0121 devices.

netweaver1970 avatar Jan 02 '24 08:01 netweaver1970

Could you provide the debug log when power goes to 0 when it shouldn't?

See this on how to enable debug logging.

this? info 2024-01-02 01:55:54: MQTT publish: topic 'zigbee2mqtt/medidor_cuarto_z', payload '{"child_lock":"UNLOCK","current":0.077,"energy":0.49,"indicator_mode":"off/on","last_seen":"2024-01-02T00:55:54.345Z","linkquality":255,"power":4,"power_outage_memory":"restore","power_phase_c":null,"state":"ON","update":{"installed_version":192,"latest_version":192,"state":"idle"},"update_available":false,"voltage":221}'

info 2024-01-02 01:55:54: MQTT publish: topic 'zigbee2mqtt/medidor_cuarto_z', payload '{"child_lock":"UNLOCK","current":0.084,"energy":0.49,"indicator_mode":"off/on","last_seen":"2024-01-02T00:55:54.424Z","linkquality":255,"power":4,"power_outage_memory":"restore","power_phase_c":null,"state":"ON","update":{"installed_version":192,"latest_version":192,"state":"idle"},"update_available":false,"voltage":222}' and when goes to 0 info 2024-01-02 01:57:20: MQTT publish: topic 'zigbee2mqtt/medidor_cuarto_z', payload '{"child_lock":"UNLOCK","current":0.084,"energy":0.49,"indicator_mode":"off/on","last_seen":"2024-01-02T00:57:20.426Z","linkquality":255,"power":0,"power_outage_memory":"restore","power_phase_c":null,"state":"ON","update":{"installed_version":192,"latest_version":192,"state":"idle"},"update_available":false,"voltage":222}'

info 2024-01-02 01:57:25: MQTT publish: topic 'zigbee2mqtt/medidor_cuarto_z', payload '{"child_lock":"UNLOCK","current":0.077,"energy":0.49,"indicator_mode":"off/on","last_seen":"2024-01-02T00:57:25.421Z","linkquality":255,"power":0,"power_outage_memory":"restore","power_phase_c":null,"state":"ON","update":{"installed_version":192,"latest_version":192,"state":"idle"},"update_available":false,"voltage":222}'

gedas07 avatar Jan 02 '24 09:01 gedas07

another

debug 2024-01-02 11:35:01: Received Zigbee message from 'medidor_cuarto_z', type 'read', cluster 'genTime', data '["localTime"]' from endpoint 1 with groupID null info 2024-01-02 11:35:01: MQTT publish: topic 'zigbee2mqtt/medidor_cuarto_z', payload '{"child_lock":"UNLOCK","current":0.119,"energy":0.49,"indicator_mode":"off/on","last_seen":"2024-01-02T10:35:01.030Z","linkquality":255,"power":0,"power_outage_memory":"restore","power_phase_c":null,"state":"ON","update":{"installed_version":192,"latest_version":192,"state":"idle"},"update_available":false,"voltage":217}'

debug 2024-01-02 11:35:36: Received Zigbee message from 'medidor_cuarto_z', type 'attributeReport', cluster 'genBasic', data '{"65506":54,"65508":0,"appVersion":192}' from endpoint 1 with groupID null info 2024-01-02 11:35:36: MQTT publish: topic 'zigbee2mqtt/medidor_cuarto_z', payload '{"child_lock":"UNLOCK","current":0.119,"energy":0.49,"indicator_mode":"off/on","last_seen":"2024-01-02T10:35:36.658Z","linkquality":255,"power":0,"power_outage_memory":"restore","power_phase_c":null,"state":"ON","update":{"installed_version":192,"latest_version":192,"state":"idle"},"update_available":false,"voltage":217}'

debug 2024-01-02 11:37:49: Received Zigbee message from 'medidor_cuarto_z', type 'attributeReport', cluster 'seMetering', data '{"currentSummDelivered":[0,49]}' from endpoint 1 with groupID null info 2024-01-02 11:37:49: MQTT publish: topic 'zigbee2mqtt/medidor_cuarto_z', payload '{"child_lock":"UNLOCK","current":0.119,"energy":0.49,"indicator_mode":"off/on","last_seen":"2024-01-02T10:37:49.240Z","linkquality":255,"power":0,"power_outage_memory":"restore","power_phase_c":null,"state":"ON","update":{"installed_version":192,"latest_version":192,"state":"idle"},"update_available":false,"voltage":217}'

debug 2024-01-02 11:37:49: Received Zigbee message from 'medidor_cuarto_z', type 'attributeReport', cluster 'haElectricalMeasurement', data '{"activePower":8,"rmsCurrent":105,"rmsVoltage":218}' from endpoint 1 with groupID null info 2024-01-02 11:37:49: MQTT publish: topic 'zigbee2mqtt/medidor_cuarto_z', payload '{"child_lock":"UNLOCK","current":0.105,"energy":0.49,"indicator_mode":"off/on","last_seen":"2024-01-02T10:37:49.315Z","linkquality":255,"power":8,"power_outage_memory":"restore","power_phase_c":null,"state":"ON","update":{"installed_version":192,"latest_version":192,"state":"idle"},"update_available":false,"voltage":218}'

debug 2024-01-02 11:38:24: Received Zigbee message from 'medidor_cuarto_z', type 'attributeReport', cluster 'genBasic', data '{"65506":54,"65508":0,"appVersion":192}' from endpoint 1 with groupID null info 2024-01-02 11:38:24: MQTT publish: topic 'zigbee2mqtt/medidor_cuarto_z', payload '{"child_lock":"UNLOCK","current":0.105,"energy":0.49,"indicator_mode":"off/on","last_seen":"2024-01-02T10:38:24.437Z","linkquality":255,"power":8,"power_outage_memory":"restore","power_phase_c":null,"state":"ON","update":{"installed_version":192,"latest_version":192,"state":"idle"},"update_available":false,"voltage":218}'

debug 2024-01-02 11:38:56: Received Zigbee message from 'medidor_cuarto_z', type 'attributeReport', cluster 'haElectricalMeasurement', data '{"rmsCurrent":0}' from endpoint 1 with groupID null info 2024-01-02 11:38:56: MQTT publish: topic 'zigbee2mqtt/medidor_cuarto_z', payload '{"child_lock":"UNLOCK","current":0.105,"energy":0.5,"indicator_mode":"off/on","last_seen":"2024-01-02T10:38:56.326Z","linkquality":255,"power":0,"power_outage_memory":"restore","power_phase_c":null,"state":"ON","update":{"installed_version":192,"latest_version":192,"state":"idle"},"update_available":false,"voltage":218}' debug 2024-01-02 11:38:56: Received Zigbee message from 'medidor_cuarto_z', type 'attributeReport', cluster 'haElectricalMeasurement', data '{"activePower":0}' from endpoint 1 with groupID null info 2024-01-02 11:38:56: MQTT publish: topic 'zigbee2mqtt/medidor_cuarto_z', payload '{"child_lock":"UNLOCK","current":0.105,"energy":0.5,"indicator_mode":"off/on","last_seen":"2024-01-02T10:38:56.369Z","linkquality":255,"power":0,"power_outage_memory":"restore","power_phase_c":null,"state":"ON","update":{"installed_version":192,"latest_version":192,"state":"idle"},"update_available":false,"voltage":218}'

gedas07 avatar Jan 02 '24 10:01 gedas07

Could be something related that the state of the plug is OFF? Thats weird because my desktop is up and running

{
    "child_lock": "UNLOCK",
    "current": 0.1,
    "energy": 1253.21,
    "indicator_mode": "on/off",
    "last_seen": "2024-01-02T15:52:13+00:00",
    "linkquality": 72,
    "power": 0,
    "power_outage_memory": "on",
    "state": "OFF",
    "update": {
        "installed_version": 192,
        "latest_version": 192,
        "state": "idle"
    },
    "voltage": 226
}

After the update image

nortuzar avatar Jan 02 '24 15:01 nortuzar

Does this always happen when the current drops to 0? There was a change in z2m 1.35.0 which sets the power to 0 when current is 0.

Koenkk avatar Jan 02 '24 21:01 Koenkk

But my current is 0.105. I don't know if in another version of z2m works fine , because i buyed the BSSED socket last week

gedas07 avatar Jan 02 '24 21:01 gedas07

Could you provide the debug log including the 20 seconds after this?

Koenkk avatar Jan 02 '24 21:01 Koenkk

Could you provide the debug log including the 20 seconds after this?

https://github.com/Koenkk/zigbee2mqtt/issues/20493#issuecomment-1873863577

I think is this?

gedas07 avatar Jan 02 '24 21:01 gedas07

Does this always happen when the current drops to 0? There was a change in z2m 1.35.0 which sets the power to 0 when current is 0.

For my the current is mostly 0.1 A, but the watts stays in 0

nortuzar avatar Jan 03 '24 00:01 nortuzar

@gedas07

Could you check if the issue is fixed with the following external converter:

  • save this as file next to configuration.yaml as ext_converter.js
  • add it to configuration.yaml:
external_converters:
  - ext_converter.js
  • start z2m, check if issue is fixed

Koenkk avatar Jan 03 '24 09:01 Koenkk

@gedas07

Could you check if the issue is fixed with the following external converter:

  • save this as file next to configuration.yaml as ext_converter.js
  • add it to configuration.yaml:
external_converters:
  - ext_converter.js
  • start z2m, check if issue is fixed

ok thanks, I'm trying it, but how do I know it has taken the file? Additionally, my socket is TZ3000_b28wrpvx and I don't see it in the ext_converter.js file, is this normal? Will it work the same? And finally the photo doesn't match.

Thanks again

gedas07 avatar Jan 03 '24 10:01 gedas07

I updated the converter, to check if it is loaded correctly, go to the z2m frontend -> device and check the the description ends with CUSTOM.

Koenkk avatar Jan 03 '24 12:01 Koenkk

Yes , correct , i see CUSTOM But in the ext_converter.js not see TZ3000_b28wrpvx is normal ? will it work the same? Thanks a lot

gedas07 avatar Jan 03 '24 12:01 gedas07

Yes , correct , i see CUSTOM

But in the ext_converter.js not see TZ3000_b28wrpvx is normal ? will it work the same?

Thanks a lot

yes thats normal, does it work OK now?

Koenkk avatar Jan 03 '24 18:01 Koenkk

Yes , correct , i see CUSTOM But in the ext_converter.js not see TZ3000_b28wrpvx is normal ? will it work the same? Thanks a lot

yes thats normal, does it work OK now?

For the moment works perfectly , thanks a lot

image And it,s possible to change the image ? image

gedas07 avatar Jan 03 '24 19:01 gedas07

Hello, yesterday around 1:00 p.m. when I copied the ext_converter.js file, I reinstalled zigbee2mqtt with version 1.35.0, and a raspberry is always installed in that socket, and this morning it has returned to 0 w sometimes, I attach photos.

image

image

gedas07 avatar Jan 04 '24 10:01 gedas07

I load the converter an it didnt work for me Zigbee Model: TS011F Zigbee Manufacturer: _TZ3000_typdpbpg Description: Smart plug (with power monitoring) CUSTOM

State

{
    "child_lock": "UNLOCK",
    "current": 0.09,
    "energy": 1254.5,
    "indicator_mode": "on/off",
    "last_seen": "2024-01-04T12:29:49+00:00",
    "linkquality": 69,
    "power": 0,
    "power_outage_memory": "on",
    "state": "ON",
    "update": {
        "installed_version": 192,
        "latest_version": 192,
        "state": "idle"
    },
    "voltage": 225,
    "update_available": null
}

I dont know if its relevant, but when im inside the device details, a pop up appears with some kind of error image

nortuzar avatar Jan 04 '24 12:01 nortuzar

@gedas07

raspberry is always installed in that socket, and this morning it has returned to 0 w sometimes, I attach photos.

please provide the log of that

@nortuzar your issue should be fixed now.

Changes will be available in the dev branch in a few hours from now.

Koenkk avatar Jan 04 '24 15:01 Koenkk

@gedas07

raspberry is always installed in that socket, and this morning it has returned to 0 w sometimes, I attach photos.

please provide the log of that

@nortuzar your issue should be fixed now.

Changes will be available in the dev branch in a few hours from now.

Awesome, will be waiting. When we can expect this on the main branch? (because i don't want to mess anything switching from branch lol)

Thank you very much for your nice and quick help

nortuzar avatar Jan 04 '24 20:01 nortuzar

@gedas07

raspberry is always installed in that socket, and this morning it has returned to 0 w sometimes, I attach photos.

please provide the log of that

Sorry , But i don´t found the log in my folder at 4am , but today about 16:40 , another time , here the log info 2024-01-04 16:48:57: MQTT publish: topic 'zigbee2mqtt/medidor_cuarto_z', payload '{"child_lock":"UNLOCK","current":0.091,"energy":1.37,"indicator_mode":"off/on","last_seen":"2024-01-04T15:48:57.657Z","linkquality":255,"power":6,"power_outage_memory":"restore","power_phase_c":null,"state":"ON","update":{"installed_version":192,"latest_version":192,"state":"idle"},"update_available":false,"voltage":221}'

info 2024-01-04 16:49:03: MQTT publish: topic 'zigbee2mqtt/medidor_cuarto_z', payload '{"child_lock":"UNLOCK","current":0.091,"energy":1.37,"indicator_mode":"off/on","last_seen":"2024-01-04T15:48:57.657Z","linkquality":255,"power":0,"power_outage_memory":"restore","power_phase_c":null,"state":"ON","update":{"installed_version":192,"latest_version":192,"state":"idle"},"update_available":false,"voltage":221}'

info 2024-01-04 16:49:27: MQTT publish: topic 'zigbee2mqtt/medidor_cuarto_z', payload '{"child_lock":"UNLOCK","current":0.091,"energy":1.37,"indicator_mode":"off/on","last_seen":"2024-01-04T15:49:27.317Z","linkquality":255,"power":0,"power_outage_memory":"restore","power_phase_c":null,"state":"ON","update":{"installed_version":192,"latest_version":192,"state":"idle"},"update_available":false,"voltage":221}'

info 2024-01-04 16:49:52: MQTT publish: topic 'zigbee2mqtt/medidor_cuarto_z', payload '{"child_lock":"UNLOCK","current":0.091,"energy":1.37,"indicator_mode":"off/on","last_seen":"2024-01-04T15:49:27.317Z","linkquality":255,"power":0,"power_outage_memory":"restore","power_phase_c":null,"state":"ON","update":{"installed_version":192,"latest_version":192,"state":"idle"},"update_available":false,"voltage":221}'

info 2024-01-04 16:52:07: MQTT publish: topic 'zigbee2mqtt/medidor_cuarto_z', payload '{"child_lock":"UNLOCK","current":0.091,"energy":1.37,"indicator_mode":"off/on","last_seen":"2024-01-04T15:52:07.189Z","linkquality":255,"power":0,"power_outage_memory":"restore","power_phase_c":null,"state":"ON","update":{"installed_version":192,"latest_version":192,"state":"idle"},"update_available":false,"voltage":221}'

info 2024-01-04 16:53:19: MQTT publish: topic 'zigbee2mqtt/medidor_cuarto_z', payload '{"child_lock":"UNLOCK","current":0.091,"energy":1.37,"indicator_mode":"off/on","last_seen":"2024-01-04T15:53:19.023Z","linkquality":255,"power":0,"power_outage_memory":"restore","power_phase_c":null,"state":"ON","update":{"installed_version":192,"latest_version":192,"state":"idle"},"update_available":false,"voltage":221}' info 2024-01-04 16:53:19: MQTT publish: topic 'zigbee2mqtt/medidor_cuarto_z', payload '{"child_lock":"UNLOCK","current":0.084,"energy":1.37,"indicator_mode":"off/on","last_seen":"2024-01-04T15:53:19.090Z","linkquality":255,"power":7,"power_outage_memory":"restore","power_phase_c":null,"state":"ON","update":{"installed_version":192,"latest_version":192,"state":"idle"},"update_available":false,"voltage":222}'

info 2024-01-04 16:53:20: MQTT publish: topic 'zigbee2mqtt/medidor_cuarto_z', payload '{"child_lock":"UNLOCK","current":0.084,"energy":1.37,"indicator_mode":"off/on","last_seen":"2024-01-04T15:53:20.691Z","linkquality":255,"power":7,"power_outage_memory":"restore","power_phase_c":null,"state":"ON","update":{"installed_version":192,"latest_version":192,"state":"idle"},"update_available":false,"voltage":222}'

I don´t Know how i find my debug log in my folder persitent docker

I think that is enabled, i put this in my stack , but i don´t know if is correct

image

gedas07 avatar Jan 04 '24 23:01 gedas07

@gedas07 Look into the z2m data/log folder

@nortuzar I plan to release a hotfix release in the coming days

Koenkk avatar Jan 05 '24 08:01 Koenkk

@gedas07 Look into the z2m data/log folder I have these logs, but in none of them do I get debug, only info Do I have to do something else to make it come out? And can the old ones be deleted?

image image

gedas07 avatar Jan 05 '24 14:01 gedas07

See this on how to enable debug logging.

Koenkk avatar Jan 06 '24 07:01 Koenkk

Every day , again at 0

It is not a problem, but it is a wall outlet where I have to turn it off if it is more than 5 minutes without power. It is a place where I charge cell phones, laptops, etc., and where I plug in the test raspberrys. That's why it turns off when the consumption is 0, but sometimes I leave the pi on and it turns it off when giving that false consumption

image here the log debug 2024-01-07 07:47:20: Received Zigbee message from 'medidor_cuarto_z', type 'attributeReport', cluster 'genBasic', data '{"65506":54,"65508":0,"appVersion":192}' from endpoint 1 with groupID null info 2024-01-07 07:47:20: MQTT publish: topic 'zigbee2mqtt/medidor_cuarto_z', payload '{"child_lock":"UNLOCK","current":0.084,"energy":2.11,"indicator_mode":"off/on","last_seen":"2024-01-07T06:47:20.704Z","linkquality":255,"power":0,"power_outage_memory":"restore","power_phase_c":null,"state":"ON","update":{"installed_version":192,"latest_version":192,"state":"idle"},"update_available":false,"voltage":220}'

debug 2024-01-07 07:49:22: Received Zigbee message from 'medidor_cuarto_z', type 'attributeReport', cluster 'haElectricalMeasurement', data '{"rmsCurrent":0}' from endpoint 1 with groupID null info 2024-01-07 07:49:22: MQTT publish: topic 'zigbee2mqtt/medidor_cuarto_z', payload '{"child_lock":"UNLOCK","current":0.084,"energy":2.11,"indicator_mode":"off/on","last_seen":"2024-01-07T06:49:22.517Z","linkquality":255,"power":0,"power_outage_memory":"restore","power_phase_c":null,"state":"ON","update":{"installed_version":192,"latest_version":192,"state":"idle"},"update_available":false,"voltage":220}'

debug 2024-01-07 07:49:27: Received Zigbee message from 'medidor_cuarto_z', type 'attributeReport', cluster 'haElectricalMeasurement', data '{"rmsCurrent":91}' from endpoint 1 with groupID null info 2024-01-07 07:49:27: MQTT publish: topic 'zigbee2mqtt/medidor_cuarto_z', payload '{"child_lock":"UNLOCK","current":0.091,"energy":2.11,"indicator_mode":"off/on","last_seen":"2024-01-07T06:49:27.510Z","linkquality":255,"power":0,"power_outage_memory":"restore","power_phase_c":null,"state":"ON","update":{"installed_version":192,"latest_version":192,"state":"idle"},"update_available":false,"voltage":220}'

debug 2024-01-07 07:50:09: Received Zigbee message from 'medidor_cuarto_z', type 'attributeReport', cluster 'seMetering', data '{"currentSummDelivered":[0,211]}' from endpoint 1 with groupID null info 2024-01-07 07:50:09: MQTT publish: topic 'zigbee2mqtt/medidor_cuarto_z', payload '{"child_lock":"UNLOCK","current":0.091,"energy":2.11,"indicator_mode":"off/on","last_seen":"2024-01-07T06:50:09.919Z","linkquality":255,"power":0,"power_outage_memory":"restore","power_phase_c":null,"state":"ON","update":{"installed_version":192,"latest_version":192,"state":"idle"},"update_available":false,"voltage":220}' debug 2024-01-07 07:50:09: Received Zigbee message from 'medidor_cuarto_z', type 'attributeReport', cluster 'haElectricalMeasurement', data '{"activePower":7,"rmsCurrent":84,"rmsVoltage":220}' from endpoint 1 with groupID null info 2024-01-07 07:50:10: MQTT publish: topic 'zigbee2mqtt/medidor_cuarto_z', payload '{"child_lock":"UNLOCK","current":0.084,"energy":2.11,"indicator_mode":"off/on","last_seen":"2024-01-07T06:50:09.983Z","linkquality":255,"power":7,"power_outage_memory":"restore","power_phase_c":null,"state":"ON","update":{"installed_version":192,"latest_version":192,"state":"idle"},"update_available":false,"voltage":220}'

gedas07 avatar Jan 07 '24 12:01 gedas07

This issue is stale because it has been open 180 days with no activity. Remove stale label or comment or this will be closed in 30 days

github-actions[bot] avatar Jul 06 '24 00:07 github-actions[bot]