magico13 / PyEmVue

Python Library for the Emporia Vue Energy Monitor
MIT License
185 stars 36 forks source link

Add support for Smart Plug #7

Closed magico13 closed 3 years ago

magico13 commented 3 years ago

I've got one on the way already and am planning on adding support for whatever features it provides. At minimum I expect that to be the ability to turn the plug on and off but if there is also data I can pull, or scheduling capabilities, then I'll want to include that as well if possible.

magico13 commented 3 years ago

There's some code for this in master but I need to do more testing around it and also probably add another get request to pull back just the outlets and not all devices, since there's an API method for that.

magico13 commented 3 years ago

You can now get the list of plugs or get it off the VueDevice, and also update the state to turn plugs on and off. There's a test file that will loop through all of them and turn them off and then on.