Yeah I can control them via the vesync app just fine. Did I do it correctly by creating a custom_components folder then a switch folder in the config folder where my yaml files are?
Config/custom_components/switch/vesync.py
Also. I just opened a new python file and pasted the code from the link above and corrected the devices part. Did I do that right as well? I’m new to the whole custom components thing.
Do you have a separate switch file that it called up in the config.yaml? I only have two garage door wemos d1s w/ relays set up as covers right now so I haven’t broken those out that way.
Yes, you have the right directory location, same as mine.
I also edited the python file and new to it as well
I just replaced that one line, should be line 47 and it should read:
for switch in devices:
No, my switch.yaml file is the only reference to the Etekcity switches.
So when you check your states (< >) on the menu, you can’t see any new switches there?
One thing I also did is I have in my config a device tracker (nmap and also one for my router) which scans my network and then outputs all the detected devices to known_devices.yaml which is where I went in and then saw the Etekcity switches, I then went to my customize.yaml and created friendly names and special icons for each plug.
Can you see the smart plugs on your router wireless client list?
My configuration.yaml file for the network device tracker is:
With this configuration, does it still require access to their cloud provider? I was hoping to remove the default gateway from these devices to avoid outgoing traffic to shady websites.
You still have to go through Etekcity’s servers, so this isn’t a localized option. I don’t know about everyone else, but I’m running Hassbian on an RPI3 and this works great. The only problem I’m having (which I’m sure is a user error) is that while I can get the switches to work in HA in general, I can’t get them to play nice with my floorplan.
I purchased one of these and configured the component - and I get the on/off status- but not electricity consumption. Does anyone have this working? I’ve tested on 0.69 and the release candidate for 0.70
Did you ever get an answer or figure this out? I just got one a little bit ago, simple to add it to HA and can control it but I am not seeing the power attributes yet.