Wifi Gosund plug

In a bit more detail, what I did was:

  1. Walk through: http://www.thesmarthomehookup.com/tuya-convert-walk-through-february-2019/
    (needs a rasp pi, open physical LAN port (with dhcp), and an hour of setup)

  2. Connect by browser to the IP address of the flashed plug that I saw my DHCP server give out (or ARP it, or “Net Analyzer” iOS App (https://itunes.apple.com/us/app/network-analyzer-pro/id557405467) also shows a sonoff-XXXX hostname)

  3. Configure->Configure MQTT : to what your LAN MQTT server is already

  4. Configure -> Configure Module

  5. If there’s no Gosund WP3 Module Type, select “Generic (18)” and save to cause a reboot

  6. After the reboot, it will show sufficient options to set pins (per @meingraham: https://github.com/arendst/Sonoff-Tasmota/issues/4976#issue-400951899 )

  7. GPIO4 -> Button1(17)

  8. GPIO12 -> Led1i(56)

  9. GPIO13 -> Led2i(57)

  10. GPIO14 -> Relay1(21)

If you don’t let it reboot after change to Generic(18), , it won’t let you set all the GPIO pins

Finally, my config in HA looks like:

switch
  - platform: mqtt
    name: "Sonoff"
    state_topic: "stat/sonoff/RESULT"
    value_template: "{{ value_json.POWER }}"
    command_topic: "cmnd/sonoff/POWER"
    availability_topic: "tele/sonoff/LWT"
    qos: 1
    payload_on: "ON"
    payload_off: "OFF"
    payload_available: "Online"
    payload_not_available: "Offline"
    retain: false

I’ve confirmed: it’s all local communication, no cloud polling, really nothing across my internet gateway at all as I toggle things on and off in HA and at the physical switch. This means that if I have an automation like “power-cycle the router when HA cannot ping amazon.com”, the “turn on” part of that bound will still work because it doesn’t need the gateway router online to send the signal to power on the router.

These are awesome little plugs, only $8/ea if in a 4-pack at $32.

4 Likes