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

The smart plug(SP-EUC01) support 'Electrical Measurement'? #64

Open
jian-yu opened this issue Feb 29, 2020 · 6 comments
Open

The smart plug(SP-EUC01) support 'Electrical Measurement'? #64

jian-yu opened this issue Feb 29, 2020 · 6 comments

Comments

@jian-yu
Copy link
Contributor

jian-yu commented Feb 29, 2020

No description provided.

@jian-yu jian-yu changed the title Is The smart plug(SP-EUC01) support 'Electrical Measurement'? Feb 29, 2020
@jian-yu
Copy link
Contributor Author

jian-yu commented Feb 29, 2020

if supported, please tell me what mqtt cmd should be sent?

@jian-yu
Copy link
Contributor Author

jian-yu commented Feb 29, 2020

when i sent the cmd
mosquitto_pub -h localhost -t "AqaraHub/04CF8CDF3C7660C6/1/out/El ectrical Measurement/Read Attributes" -m '{"attributes":[0]}'

to the mqtt, it will return info as following

[OnPublishCommandLong] Destination 346650586750804166, endpoint 1, cluster name 'Electrical Measurement', command name 'Read Attributes'
[SendCommand] Encoded payload: 00 00
[SendCommand] Looking up Short Address from IEEE address
[FRAME] >> SREQ UTIL_ADDRMGR_EXT_ADDR_LOOKUP c6 60 76 3c df 8c cf 04
[FRAME] << SRSP UTIL_ADDRMGR_EXT_ADDR_LOOKUP 71 bc
[SendCommand] Response received, short address: 48241
[FRAME] >> SREQ AF_DATA_REQUEST 71 bc 01 01 04 0b 00 00 1e 05 00 1a 00 00 00
[FRAME] << SRSP AF_DATA_REQUEST 00
[FRAME] << AREQ AF_DATA_CONFIRM 00 01 00
[SendCommand] Command sent
[FRAME] << AREQ ZDO_SRC_RTG_IND 71 bc 00
[ZnpApi] Unhandled frame AREQ ZDO_SRC_RTG_IND
[FRAME] << AREQ AF_INCOMING_MSG 00 00 04 0b 71 bc 01 01 00 7e 00 e4 e8 72 00 00 0b 08 1a 01 00 00 00 1b 08 00 00 00 71 bc 1d
[FRAME] >> SREQ UTIL_ADDRMGR_NWK_ADDR_LOOKUP 71 bc
[FRAME] >> SREQ UTIL_ADDRMGR_NWK_ADDR_LOOKUP 71 bc
[FRAME] << SRSP UTIL_ADDRMGR_NWK_ADDR_LOOKUP c6 60 76 3c df 8c cf 04
[PublishValue] Publishing to 'AqaraHub/04CF8CDF3C7660C6/1/in/Electrical Measurement/Read Attributes Response': {"records":[{"Attribute identifier":0,"Attribute value":{"success":{"type":"map32","value":[false,false,false,true,false,false,false,false,false,false,false,false,false,false,false,false,false,false,false,false,false,false,false,false,false,false,false,false,false,false,false,false]}}}]}
[OnZclCommand] Looks like something per-attribute. Publishing per-attribute too
[PublishValue] Publishing to 'AqaraHub/04CF8CDF3C7660C6/1/in/Electrical Measurement/Read Attributes Response/0x0000': {"success":{"type":"map32","value":[false,false,false,true,false,false,false,false,false,false,false,false,false,false,false,false,false,false,false,false,false,false,false,false,false,false,false,false,false,false,false,false]}}
[FRAME] << SRSP UTIL_ADDRMGR_NWK_ADDR_LOOKUP c6 60 76 3c df 8c cf 04

i think there have some attr not to support well

@Frans-Willem
Copy link
Owner

Hi Jian-Yu,

I haven't filled in the "Electrical measurement" cluster at all, so AqaraHub doesn't know how to handle it: https://github.com/Frans-Willem/AqaraHub/blob/master/clusters.info#L1042

Please try to expand it by looking at the clusters that are filled in, and look up the Zigbee Cluster Library specification. Once you filled in the attributes and commands, it might just work :)

@jian-yu
Copy link
Contributor Author

jian-yu commented Mar 7, 2020

When I added some attributes to the 'cluster.info', I successfully read the electrical information of the SP-EUC01.

@Frans-Willem
Copy link
Owner

Would you be able to create a pull request for the required changes?

@jian-yu
Copy link
Contributor Author

jian-yu commented Mar 17, 2020

Happy to serve

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants