Esicoo YX-WS01 Smart Plug

Picked up a 4-pack of these:

With the help of the Tasmota template that I found here:

https://blakadder.github.io/templates/esicoo.html

I got them running using ESPHome (converted using tuya-convert):

substitutions:
  device_name: esicoo_yx_ws01_1
  friendly_name: Esicoo YX-100 1

esphome:
  name: ${device_name}
  platform: ESP8266
  board: esp01_1m

wifi:
  ssid: yourwifissid
  password: yourwifipassword

api:
  password: yourapipassword

ota:
  password: yourotapassword

logger:

output:
  - platform: gpio
    id: led1
    pin:
      number: GPIO13
      inverted: true

light:
  - platform: binary
    name: Status LED
    id: status_led
    internal: true
    output: led1

switch:
  - platform: gpio
    name: ${friendly_name}
    id: ${device_name}
    pin:
      number: GPIO14
    on_turn_on:
      then:
        - light.turn_on: status_led
    on_turn_off:
      then:
        - light.turn_off: status_led

binary_sensor:
  - platform: status
    name: ${friendly_name} Status
    id: ${device_name}_status

  - platform: gpio
    id: button
    internal: true
    pin:
      number: GPIO1
      mode: INPUT
    on_press:
      then:
        - switch.toggle: ${device_name}

sensor:
  - platform: wifi_signal
    name: ${friendly_name} Wifi Signal
    id: ${device_name}_wifi_signal
    update_interval: 15s
2 Likes