zigbee2mqtt icon indicating copy to clipboard operation
zigbee2mqtt copied to clipboard

Aqara Power Plug (SP-EUC01) not updating; some attributes missing

Open internetfreak opened this issue 5 years ago • 50 comments

I have an issue like similar to this one https://github.com/Koenkk/zigbee2mqtt/issues/4804 Since this issue is closed, I decided to open a new one to track it.

What happened

Got myself an aqara EU power plug (SP-EUC01), paired it with my CC2562RB (the one from slaesh). Power measurement only happens very occasionally to none at all (device is seen reporting every few minutes at most if it wants to). Already tried to reconfigure and re-pair the device and updated the firmware of my stick but nothing changes. Also, none of the mentioned properties other than stat, power and linkquality are reported (voltage, current etc are missing in the output)

What did you expect to happen

Power and other atributes should be reported regularly, e.g. every few seconds (my Bitron AV2010/25 for example do report every few seconds)

How to reproduce it (minimal and precise)

  1. Pair SP-EUC01
  2. Add some consumer to the plug (e.g. PC/Server)
  3. Watch the zigbee2mqtt log for changes under the devices address/friendly name and see whether updates come in regularly.

Debug info

Zigbee2MQTT version: 1.18.1 Adapter hardware: CC2562RB Adapter firmware version: coordinator_20210120 (latest available)

internetfreak avatar Mar 28 '21 16:03 internetfreak

Same problem here. Worked for a couple of days and then suddenly nothing.

Simsalaba avatar Apr 10 '21 23:04 Simsalaba

I have same issue here. CURRENT, voltage, temperature and energy are not being updated/reported. Power, lqi and switch works.

Debug info

Zigbee2MQTT version: 1.18.2 Adapter hardware: CC2531 Adapter firmware version: CC2531_SOURCE_ROUTING_20201128

rsypen avatar Apr 12 '21 06:04 rsypen

I have same issue here. CURRENT, voltage, temperature and energy are not being updated/reported (N/A). Power, lqi and switch works.

Debug info

Zigbee2MQTT version: 1.18.2-1 Adapter hardware: CC2531 Adapter firmware version: CC2531_SOURCE_ROUTING_20201128

Milan6407 avatar Apr 15 '21 18:04 Milan6407

According to https://github.com/Koenkk/zigbee-herdsman-converters/issues/1050#issuecomment-673111969 not all revisions of this device support these features. You can also try reconfiguring the device via the zigbee2mqtt frontend by clicking on it and pressing the yellow refresh icon.

Koenkk avatar Apr 17 '21 12:04 Koenkk

Mine worked perfectly for a couple of days until I hit the update button in home assistant.

Simsalaba avatar Apr 20 '21 13:04 Simsalaba

Reconfiguring via frontend does not help as well. From all potential values only power would be really interesting for me (the others could be nice to have but I wanted to measure power consumption of selected devices). Compared to for example the Bitron devices that plug is way smaller (although still big enough to block ports on a power strip), so it seems more attractive

internetfreak avatar Apr 28 '21 10:04 internetfreak

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

github-actions[bot] avatar May 29 '21 00:05 github-actions[bot]

I have the same issue.

How can i get my current firmware version like you did @Milan6407 ?

Adapter firmware version: CC2531_SOURCE_ROUTING_20201128

Frontend offers me to update my plugs ? Is-it a good ideal ? Maybe fix this issue ? Any tips before making a mistake ? ^^ image

pyjacques avatar May 31 '21 17:05 pyjacques

I have the same issue, bought this one to measure current power-usage and historical (kwh). But I can only see the current watt using. Anyone figure out a way to solve this?

yabbah avatar Jun 06 '21 17:06 yabbah

Updates firmware of my plug but still having the issue that the plug seems to only update once every few minutes. For example, my Bitron sockets update themselves every few seconds. Is there something to configure or am I really out of luck and it is some kind of lottery when purchasing that socket if it works correctly?

internetfreak avatar Jun 06 '21 18:06 internetfreak

I am also not seeing the power consumption of my plug. zigbee2mqtt is logging these lines from time to time:

Jun 20 09:12:25 crappy zigbee2mqtt[1148515]: Zigbee2MQTT:debug 2021-06-20 09:12:25: Received Zigbee message from '0x04cf8cdf3c8240ce', type 'attributeReport', cluster 'aqaraOpple', data '{"247":{"data":[100,16,1,3,40,27,152,57,41,92,47,63,149,57,211,196,79,64,150,57,0,64,13,69,151,57,120,251,65,64,5,33,1,0,154,32,0,8,33,22,1,7,39,0,0,0,0,0,0,0,0,9,33,1,2,11,32,0,155,16,1],"type":"Buffer"}}' from endpoint 1 with groupID null
Jun 20 09:12:25 crappy zigbee2mqtt[1148515]: Zigbee2MQTT:debug 2021-06-20 09:12:25: No converter available for 'SP-EUC01' with cluster 'aqaraOpple' and type 'attributeReport' and data '{"247":{"data":[100,16,1,3,40,27,152,57,41,92,47,63,149,57,211,196,79,64,150,57,0,64,13,69,151,57,120,251,65,64,5,33,1,0,154,32,0,8,33,22,1,7,39,0,0,0,0,0,0,0,0,9,33,1,2,11,32,0,155,16,1],"type":"Buffer"}}'

This is on the latest release (9bd46932c365e886ed0b1f9b8740d8cce632230c) as well as on dev (76a0cd507fee00b9cc21d2bc85d1da405265febb).

andir avatar Jun 20 '21 10:06 andir

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

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

this started happening to me now (4 outlets)

Debug info

Zigbee2MQTT version: 1.20.0 commit: 41b67fdd Adapter hardware: ConBee II Adapter firmware version: 0x266f0700

ratsoid avatar Jul 21 '21 15:07 ratsoid

Same Issue here,

Debug info: 1.21.0 commit: 70891ee Coordinator type: zStack3x0 Coordinator revision: 20200805 Frontend version: 0.5.18 Adapter Hardware : Electrolama zig-a-zig-ah! (zzh!)

SMAW avatar Aug 16 '21 10:08 SMAW

According to Koenkk/zigbee-herdsman-converters#1050 (comment) not all revisions of this device support these features. You can also try reconfiguring the device via the zigbee2mqtt frontend by clicking on it and pressing the yellow refresh icon.

Two of four plugs (firmware 09-10-2019 and 09-22-2020) were missing all attributes but on/off state, power stuck at 0. Likely the same issue. Fixed by reconfiguring the device (yellow refresh button).

islepnev avatar Aug 16 '21 11:08 islepnev

According to Koenkk/zigbee-herdsman-converters#1050 (comment) not all revisions of this device support these features. You can also try reconfiguring the device via the zigbee2mqtt frontend by clicking on it and pressing the yellow refresh icon.

Two of four plugs (firmware 09-10-2019 and 09-22-2020) were missing all attributes but on/off state, power stuck at 0. Likely the same issue. Fixed by reconfiguring the device (yellow refresh button).

Checked, mine is also from 09-22-2020, attributes are null.. Power is sometimes working, also after an reconfigure, still same issue... Reconfigure also takes about 1 second

SMAW avatar Aug 16 '21 12:08 SMAW

If I can add my experience, my 3 Aqara plugs send correctly :

  • state
  • power
  • lqi

but these are not recieved:

  • energy
  • temperature
  • voltage
  • current

I am using slaesh stick and zigbee2mqtt of course.

One month ago, I had the opportunity to test my plugs with a Conbee II and DeCOnz. I don't remember for the others, but at least Energy was working fine.

I deduce the problem we are facing probably doesn't come from the plug itself.

OnilDu39 avatar Aug 18 '21 16:08 OnilDu39

Can someone provide the debug logging starting from the point where you attach a known load to the plug (e.g. a 100w bulb).

See https://www.zigbee2mqtt.io/information/debug.html on how to enable debug logging.

Koenkk avatar Aug 18 '21 17:08 Koenkk

I am new to all of this, but let me give it a try.

First, I am seeing the same as others reported. I get power reported (and linkquality). Attributes energy, temperature, voltage and current show null.

This is the debug log from a point I powered it on with an 8W bulb:

debug 2021-08-19 00:37:02: Received Zigbee message from '0x04cf8cdf3c89f4cb', type 'attributeReport', cluster 'genOnOff', data '{"onOff":1}' from endpoint 1 with groupID 0
info  2021-08-19 00:37:02: MQTT publish: topic 'zigbee2mqtt/0x04cf8cdf3c89f4cb', payload '{"current":null,"energy":null,"linkquality":92,"power":0,"power_phase_c":null,"state":"ON","temperature":null,"update":{"state":"idle"},"update_available":false,"voltage":null}'
debug 2021-08-19 00:37:08: Received Zigbee message from '0x04cf8cdf3c89f4cb', type 'attributeReport', cluster 'haElectricalMeasurement', data '{"activePower":82}' from endpoint 1 with groupID 0
info  2021-08-19 00:37:08: MQTT publish: topic 'zigbee2mqtt/0x04cf8cdf3c89f4cb', payload '{"current":null,"energy":null,"linkquality":81,"power":8.2,"power_phase_c":null,"state":"ON","temperature":null,"update":{"state":"idle"},"update_available":false,"voltage":null}'
debug 2021-08-19 00:39:26: Received Zigbee message from '0x04cf8cdf3c89f4cb', type 'attributeReport', cluster 'haElectricalMeasurement', data '{"activePower":24}' from endpoint 1 with groupID 0
info  2021-08-19 00:39:26: MQTT publish: topic 'zigbee2mqtt/0x04cf8cdf3c89f4cb', payload '{"current":null,"energy":null,"linkquality":73,"power":2.4,"power_phase_c":null,"state":"ON","temperature":null,"update":{"state":"idle"},"update_available":false,"voltage":null}'
debug 2021-08-19 00:39:38: Received Zigbee message from '0x04cf8cdf3c89f4cb', type 'attributeReport', cluster 'haElectricalMeasurement', data '{"activePower":82}' from endpoint 1 with groupID 0
info  2021-08-19 00:39:38: MQTT publish: topic 'zigbee2mqtt/0x04cf8cdf3c89f4cb', payload '{"current":null,"energy":null,"linkquality":78,"power":8.2,"power_phase_c":null,"state":"ON","temperature":null,"update":{"state":"idle"},"update_available":false,"voltage":null}'

To cause a change I dimmed it, and back to full.

If I use the Dev console I can get it to show me energy and temperature:

debug 2021-08-19 00:43:38: Received MQTT message on 'zigbee2mqtt/0x04cf8cdf3c89f4cb/set' with data '{"read":{"attributes":["currentSummDelivered","multiplier","divisor"],"cluster":"seMetering","options":{}}}'
debug 2021-08-19 00:43:38: Publishing 'set' 'read' to '0x04cf8cdf3c89f4cb'
debug 2021-08-19 00:43:38: Received Zigbee message from '0x04cf8cdf3c89f4cb', type 'readResponse', cluster 'seMetering', data '{"currentSummDelivered":[0,47],"divisor":1000,"multiplier":1}' from endpoint 1 with groupID 0
debug 2021-08-19 00:44:48: Received MQTT message on 'zigbee2mqtt/0x04cf8cdf3c89f4cb/set' with data '{"read":{"attributes":["currentTemperature"],"cluster":"genDeviceTempCfg","options":{}}}'
debug 2021-08-19 00:44:48: Publishing 'set' 'read' to '0x04cf8cdf3c89f4cb'
debug 2021-08-19 00:44:48: Received Zigbee message from '0x04cf8cdf3c89f4cb', type 'readResponse', cluster 'genDeviceTempCfg', data '{"currentTemperature":22}' from endpoint 1 with groupID 0
debug 2021-08-19 00:56:38: Received Zigbee message from '0x04cf8cdf3c89f4cb', type 'attributeReport', cluster 'haElectricalMeasurement', data '{"activePower":31}' from endpoint 1 with groupID 0
info  2021-08-19 00:56:38: MQTT publish: topic 'zigbee2mqtt/0x04cf8cdf3c89f4cb', payload '{"current":null,"energy":null,"linkquality":78,"power":3.1,"power_phase_c":null,"state":"ON","temperature":null,"update":{"state":"idle"},"update_available":false,"voltage":null}'

Temperature looks ok. Energy I cannot validate, but could very well be ok: 0,047 kWh, I assume (it is new) And it does seem to increase slowly.

I could not find voltage and current. To me accumulated energy is the important one.

I am not sure if it matters, but for this device I see only one entry in the "Reporting" tab, onOff. Is this what the device is asked to send automatically? For other devices it seems so. I tried to add seMetering/currentSummDelivered, but did not seem to change anything. If I do the same for temperature, it says it is not reportable: Request 'zigbee2mqtt/bridge/request/device/configure_reporting' failed with error: 'ConfigureReporting 0x04cf8cdf3c89f4cb/1 genDeviceTempCfg([{"attribute":"currentTemperature","minimumReportInterval":60,"maximumReportInterval":3600,"reportableChange":0}], {"sendWhenActive":false,"timeout":10000,"disableResponse":false,"disableRecovery":false,"disableDefaultResponse":true,"direction":0,"srcEndpoint":null,"reservedBits":0,"manufacturerCode":null,"transactionSequenceNumber":null,"writeUndiv":false}) failed (Status 'UNREPORTABLE_ATTRIBUTE')'

Firmware: 09-22-2020

Zigbee2MQTT version: 1.21.0 commit: unknown Coordinator type: zStack12 Coordinator revision: 20180507 Frontend version: 0.5.18

jnxxx avatar Aug 18 '21 23:08 jnxxx

Same her, nothing reported

state On/off state of the switch power Instantaneous measured power 2.8W energy Sum of consumed energy nullkWh temperature Measured temperature value null°C voltage Measured electrical potential value nullV current Instantaneous measured electrical current nullA linkquality Link quality (signal strength) 167lqi

MQTT publish: topic 'zigbee2mqtt/Gaestevaerelse - TV', payload '{"current":null,"energy":null,"last_seen":"2021-08-19T10:28:24.883Z","linkquality":175,"power":2.8,"state":"ON","temperature":null,"update":{"state":"idle"},"update_available":false,"voltage":null}'

but dev console Read result of 'genDeviceTempCfg': {"currentTemperature":30} Read result of 'seMetering': {"currentSummDelivered":[0,457]}

Firmware build date 09-10-2019 Zigbee2MQTT version 1.21.0 commit: 70891ee

djeclemen avatar Aug 19 '21 10:08 djeclemen