Sign inSign up

glaurent/docker-vesync-wsproxy

By glaurent

•Updated almost 8 years ago

A container running vesync-wsproxy to control Etekcity WiFi Smart Plug

Image
0

317

glaurent/docker-vesync-wsproxy repository overview

⁠docker-vesync-wsproxy

A container running vesync-wsproxy to control Etekcity WiFi Smart Plug

Based on:

Build Status

⁠Pull image

docker pull glaurent/docker-vesync-wsproxy

⁠Usage

⁠Create container:
docker create --name=vesync-wsproxy \
  -p 16522:16522 \
  -p 17273:17273 \
  -v /etc/localtime:/etc/localtime:ro \
  -v /etc/timezone:/etc/timezone:ro \
  glaurent/docker-vesync-wsproxy
⁠Setup

The setup process is a little annoying. You'll need your local DNS server to return the IP address of the server hosting this proxy for the hostname server2.vesync.com. You'll then need to make sure your server is still able to resolve server2.vesync.com correctly.

Once that's done and your proxy is running, you may need to power cycle the outlet to encourage it to find your server.

⁠General Goals
  • enable the outlet to remain "smart" if the server goes offline (the outlet already remembers configured timers, but it would lose the ability to be turned on/off or configured.)
  • watch and validate the network traffic between the outlet and some strange server (block unrecognized traffic over the websocket by default. /upgrade is technically recognized, but still blocked.)
  • enable integration of the outlet with other environments. The service port can be targeted with IFTTT's Maker channel to take actions, and that concept can be extended further.
⁠Non-goals
  • replace the mobile app. Yes, it's a quirky app, but I don't really see myself committing to rewrite the whole thing.
  • develop custom firmwares. This proxy allows to spoof an /upgrade packet which will trigger an OTA firmware update. But without some other way to reset the firmware, this is likely to result in a brick. No go for now.
    ( However this is really just an ESP8266 shaped like a plug. There are whole communities of people that write firmware for this stuff out there.)

Tag summary

Content type

Image

Digest

Size

34.5 MB

Last updated

almost 8 years ago

docker pull glaurent/docker-vesync-wsproxy