Closed magico13 closed 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.
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.
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.