Hi,
i bought this smart plug
https://www.aliexpress.com/item/32968895032.html
When searching for flash instructions, i found out, it’s probably this one
I have succesfuly flashed it using tuya-convert with tasmota. I played with several templates, could not find the right one. I decided to swtich to esphome for debuging.
This is my latest config
substitutions:
dev_name: avatto_plug_rgbw_001
esphome:
name: ${dev_name}
platform: ESP8266
board: esp01_1m
wifi:
# Enable logging
logger:
level: DEBUG
# Enable Home Assistant API
api:
ota:
switch:
#found
- platform: gpio
name: "${dev_name}_relay"
pin: GPIO15
id: relay
- platform: shutdown
name: "${dev_name}_shutdown"
- platform: restart
name: "${dev_name}_restart"
output:
#found - red
- platform: esp8266_pwm
pin: GPIO05
frequency: 1000 Hz
id: output_red
#found - blue
- platform: esp8266_pwm
pin: GPIO12
frequency: 1000 Hz
id: output_blue
#found - white
- platform: esp8266_pwm
pin: GPIO04
frequency: 1000 Hz
id: output_white
# - platform: esp8266_pwm
# pin: GPIO14
# frequency: 1000 Hz
# id: output_green
#status_led:
# pin:
# number: GPIO09
# inverted: True
light:
- platform: monochromatic
name: "${dev_name}_led_red"
output: output_red
- platform: monochromatic
name: "${dev_name}_led_blue"
output: output_blue
- platform: monochromatic
name: "${dev_name}_led_white"
output: output_white
- platform: monochromatic
name: "${dev_name}_led5"
output: output_green
binary_sensor:
#found
- platform: gpio
pin:
number: GPIO13
mode: INPUT_PULLUP
inverted: True
name: "${dev_name}_button"
on_press:
- switch.toggle: relay
sensor:
# - platform: hlw8012
# sel_pin:
# number: GPIO03
# inverted: True
# cf_pin: GPIO02
# cf1_pin: GPIO14
# current_resistor: 0.0025
# voltage_divider: 840
# current:
# name: "${dev_name}_current"
# unit_of_measurement: A
# voltage:
# name: "${dev_name}_voltage"
# unit_of_measurement: V
# power:
# name: "${dev_name}_power"
# id: power
# unit_of_measurement: W
# change_mode_every: 1
# update_interval: 10s
- platform: wifi_signal
name: "${dev_name}_wifi_signal"
update_interval: 30s
- platform: uptime
name: "${dev_name}_uptime"
update_interval: 120s
text_sensor:
- platform: version
name: "${dev_name}_version"
I had some boot problems when i was trying GPIO09 as LED PWM pin. But i managed to recover.
Now, it seems to be bricked after trying the same thing with GPIO14. It does not ping.
I also did no manage to find the power monitoring chip, yet.
So i guess, i will have to pry it open. Or is there another way to flash it again using tuya-convert?