it took me while to notice that something wasn’t quite right on the phone wifi. after connecting to the vtrust AP and observing the “you are connected message”, the top nav bar on the screen wasn’t showing the usual WIFI symbol that I would normally see when connected to any other wifi. It wasn’t until I found that extra menu, and clicked a button, did the phone actually then decide it was connected. This turned out to be absolutely crucial to the operation of tuya-convert.
When I got a batch of teckin ones after the change that was the message of doom (or something very similair). I opened one up in the end to verify a change of microcontroller. Would happily have a go with one to try. Were they from Amazon ? might order a single to test. I wish the manufacturers would change the part nos when a significant element changes.
Fantastic news! I went with a bare raspberryPi 3B, and a completely fresh install. I used a D1 mini as wifi device instead of my phone. This all worked as expected, and I have now flashed the first device. I don’t know what went wrong with the setup on my linux desktop, and I suspect I never will. I am now off to configure the device fully, then I will flash the others.
Thanks for all your help and offers of help - much appreciated!
Could I suggest that you update your earlier post to note this, to avoid people reading it and thinking the UP111 is no longer an ESP device? Just something like “EDIT: false alarm, all flashed and working!”?
Indeed - I will do this! Done
I also put a review on the Amazon link explaining that these work.
The Gosund 4-pack has gone down to £28.89 this morning. Not too bad, so I just picked up another set.
interesting… I bought a pair of gosund smart sockets and tuya-convert reports an “issue” when trying to flash it… could swear I’d read somewhere the UK gosund plug was compatible
Earlier in this topic, in fact. Of course, there’s no telling when they might move from ESP to some other chipset, perhaps even without changing the model number, but the ones I bought a few weeks ago flashed to ESPHome with tuya-convert, although it wasn’t without its issues. They work perfectly now.
What issue are you seeing?
The device connects but there’s no further logs than that… then after a few mins the tuya-convert script reports…Timed out while waiting for the device to (re)connect
Attempting to diagnose the issue…
An ESP82xx based device connected according to your wifi log.
If this is the device you are trying to flash, another issue may be preventing it from flashing.
Otherwise, it could be that the device does not use an ESP82xx or it did not connect.
For additional information, check the *.log files inside the scripts folder.
Please include these logs when opening a new issue on our GitHub issue tracker.
the logs only show the device connecting… nothing else is recorded
let me know how that goes… a day ago I bought a twin pack off amazon and tuya-convert can’t flash them!!
@stryker - Yeah, they arrived earlier, and I just booted up a Pi to see if I could flash one chosen at random.
No problems at all.
I see here two other very recent reports of buying and successfully flashing. I’d suggest trying again (as sometimes they can be a bit finicky) or maybe try using another machine
Purchased 24 last Thursday - Have so far converted 12 with one stuck with a fast flashing red led. Not sure why or how to fix.
Very happy so far
I am really curious about the stuck one.
Did you try to flash it a few times? My experience has been that occasionally one takes a few attempts. I put it down to my own incompetence, but maybe there is more to it than that.
Hi fellas,
I have a few TP Link plugs, and want to ditch them for something a little more reliable.
I’m never used ESPHOME or flashed any plugs, I’ve just ordered a UP111 Gosund plug, can someone please confirm the following guide is the right one to use
https://esphome.io/cookbook/brilliant-mirabella-genio-smart-plugs.html#create-the-esphome-firmware
I’ve flashed 20 and have 4 more arrived today.
Up to step 2.7 is covered by just installing the ESP Home addon to home assistant
2.7 i used a PI3, and a Wemos1 as the sink for the AP.
Once flashed I used this as the configuration
esphome:
name: pn_washingmachine
comment: Washing Machine (Gosund UP111)
platform: ESP8266
board: esp01_1m
wifi:
ssid: "WiFi"
password: "P@ssw0rd!"
# Enable fallback hotspot (captive portal) in case wifi connection fails
ap:
ssid: "${switch_id} Fallback"
password: "P@ssw0rd!"
captive_portal:
# Enable logging
logger:
# Enable Home Assistant API
api:
reboot_timeout: 0s
password: "Passw0rd!"
ota:
password: "Passw0rd!"
web_server:
port: 80
auth:
username: admin
password: "Passw0rd!"
time:
- platform: homeassistant
substitutions:
# Unique ID for Sensors.
switch_id: "pn_washingmachine"
binary_sensor:
# Push Button
- platform: gpio
id: ${switch_id}_in_switch1
internal: true
pin: GPIO3
name: " Switch 1"
filters:
- invert:
on_click:
min_length: 50ms
max_length: 350ms
then:
- switch.toggle: ${switch_id}_relay1
# Template Sensor - Tracks Relay, Switches LED to Match (Internal Only)
- platform: template
name: "${switch_id} Template 1"
id: ${switch_id}_template1
internal: true
lambda: |-
if (id(${switch_id}_relay1).state) {
return true;
} else {
return false;
}
on_state:
- if:
condition:
- binary_sensor.is_on: ${switch_id}_template1
then:
- switch.turn_on: ${switch_id}_led_blue
# - switch.turn_off: ${switch_id}_led_red
- light.turn_off: led_red
- if:
condition:
- binary_sensor.is_off: ${switch_id}_template1
then:
- switch.turn_off: ${switch_id}_led_blue
# - switch.turn_on: ${switch_id}_led_red
- light.turn_on: led_red
################################################################################
switch:
# Restart Switch in HA
- platform: restart
name: "${switch_id} Restart"
# Relay Output
- platform: gpio
pin: GPIO14
id: ${switch_id}_relay1
name: "${switch_id} Relay"
# Blue LED Output
- platform: gpio
pin: GPIO1
internal: true
id: ${switch_id}_led_blue
inverted: yes
name: "${switch_id} Touch Status Led Blue"
# Red LED Output
# - platform: gpio
# pin: GPIO13
# internal: true
# id: ${switch_id}_led_red
# inverted: True
# name: "${switch_id} Touch Status Led Red"
# restore_mode: ALWAYS_OFF
output:
# Red LED Output
- platform: esp8266_pwm
pin: GPIO13
id: ${switch_id}_led_red
inverted: True
light:
- platform: monochromatic
name: "${switch_id} Red LED"
internal: true
output: ${switch_id}_led_red
id: led_red
sensor:
- platform: hlw8012
sel_pin:
number: GPIO12
inverted: True
cf_pin: GPIO04
cf1_pin: GPIO05
# Calibration
current_resistor: 0.0025 # Value of shunt resistor in ohms (higher value gives lower watt readout) 0.00221
voltage_divider: 880 # Resistance ratio of internal voltage divider resistors (lower value gives lower voltage readout) 871
current:
name: "${switch_id} Current"
unit_of_measurement: A
id: "energy_Amperage"
voltage:
name: "${switch_id} Voltage"
unit_of_measurement: V
id: "energy_Voltage"
power:
name: "${switch_id} Power"
unit_of_measurement: W
id: "energy_Wattage"
change_mode_every: 8
update_interval: 10s
- platform: total_daily_energy
name: "${switch_id} Total Daily Energy"
power_id: "energy_Wattage"
filters:
# Multiplication factor from W to kW is 0.001
- multiply: 0.001
unit_of_measurement: kWh
accuracy_decimals: 1
- platform: template
name: "${switch_id} Apparent Power"
unit_of_measurement: VA
lambda: return id(energy_Voltage).state * id(energy_Amperage).state;
- platform: template
name: "${switch_id} Power Factor"
lambda: return id(energy_Wattage).state / (id(energy_Voltage).state * id(energy_Amperage).state);
# Extra sensor to keep track of plug uptime
- platform: uptime
name: "${switch_id} Uptime Sensor"
# Wifi Signal
- platform: wifi_signal
name: "${switch_id} WiFi Signal Sensor"
update_interval: 60s
So zero flash failures out of 20/24?
3 failures out of 24. I sent them back on R.M.A and the new set of 4 flashed without issue
Sorry.
I missed your question. Yes I sure did - one I got to come back to fast flash so I could try again
The other 3 essentially were dead. The led would light up flash for about 1 second and then nothing. Lights out and no reset sequence I could try would get any life back.
After about 2 hours of google and plugging in and out 6 times in 10 second cycles and all other quack sequences I gave up
Then I looked at the option on return and purchased a replacement box of 4
D
hi guys,
I’ve successfully flashed my first plug to run esphome.
I brought a UP111 gave it a static IP address both in my router and on the plug, yet I’ve noticed it will randomly become unavailable for anything between 5 - 20secs. is this common or have i missed something.