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

Ezviz smart plug - power consumption? #92

Open
MattG40 opened this issue Oct 4, 2022 · 1 comment
Open

Ezviz smart plug - power consumption? #92

MattG40 opened this issue Oct 4, 2022 · 1 comment
Labels
enhancement New feature or request question Further information is requested

Comments

@MattG40
Copy link

MattG40 commented Oct 4, 2022

Hi,

I try to read the power consumption of a Ezviz smart plug (CS-T31-16B-EU).

Does someone know how/where I can read this?

For test I tried to adapt this like below without success:

pyEzviz/pyezviz/client.py

Lines 543 to 546 in 33261c9

result[_serial] = {
"CLOUD": {_res_id: devices.get("CLOUD", {}).get(_res_id, {})},
"VTM": {_res_id: devices.get("VTM", {}).get(_res_id, {})},
"P2P": devices.get("P2P", {}).get(_serial, {}),

result[_serial] = {
"POWER": {_res_id: devices.get("POWER", {}).get(_res_id, {})},
"POWER": devices.get("POWER", {}).get(_serial, {}),
"POWER_CONSUMPTION": {_res_id: devices.get("POWER_CONSUMPTION", {}).get(_res_id, {})},
"POWER_CONSUMPTION": devices.get("POWER_CONSUMPTION", {}).get(_serial, {}),

Best regards,
MattG40

@RenierM26
Copy link
Collaborator

Hi @MattG40,

Do have you looked in the pagelist api response? Are you guessing the keys or are they returning a response? I you could share the actual response, I can build it into the API.

I only have EZVIZ cameras so will need your help to implement this.

@RenierM26 RenierM26 added enhancement New feature or request question Further information is requested labels Aug 20, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request question Further information is requested
Projects
None yet
Development

No branches or pull requests

2 participants