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

How can I get an outlet's name? #49

Open
dswhelan opened this issue Apr 17, 2023 · 4 comments
Open

How can I get an outlet's name? #49

dswhelan opened this issue Apr 17, 2023 · 4 comments

Comments

@dswhelan
Copy link

I'm experimenting with your Emporia API. I currently only have an Emporia Smart Plug (aka an outlet device) and can see that device using your API, but I don't see any way to see the name associated with that outlet. Is it possible to do so, and if so, how?

@magico13
Copy link
Owner

Short answer without me doing any test code, it should be available on the devices call, then looking for the device with that guid. Usually I work the opposite way, if you make a call for all the devices it should populate the outlet object on the outlet device and that should give you most of the data you need

@dswhelan
Copy link
Author

dswhelan commented Apr 17, 2023 via email

@magico13
Copy link
Owner

This call might do it. I thought they were returning this info on the basic call now but I might be mistaken and you might still need to do this. https://github.com/magico13/pyemvue#get-additional-device-properties

Call vue.populate_device_properties(device) with the device object from get_devices and it should fill in the remaining properties that are set in the app, like name.

@dswhelan
Copy link
Author

dswhelan commented Apr 17, 2023 via email

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