I have Sonoff D1 Dimmer and I want to flash it with ESP Home.
I tried this script here
I have tried to flash it with my laptop, I connected a USB cable but output is 5v, so I used a Raspberry pi 4’s, GPIO’s for power my D1 with 3.3v and GND and the USB cable green/white wire
to RX/TX on Sonoff D1, to my laptop, but no USB device pops up (I have mixed green/white with RX/TX and TX/RX).
When I connect GND/3.3v with my Raspberry pi, the LED is ON and D1 is online in the app.
If I connect GND/3.3v and GND to GPIO0 on D1 at the same time, the LED is OFF and the device is offline in the app.
but still no USB device pops up.
Raspberry pi
I have manually installed esphome on a Raspberry pi 4 here.
I used the same setup as to my laptop but still no pop up device.
In terminal i run esphome run my-d1-dimmer.yaml but I only get an ERROR “error resolving IP address of my-d1-dimmer.local is it connected to wifi?”
What can I do so I can flash my D1 with ESPHome and use the GPIO pins GND/3.3v and pin 14/15 (RX/TX) on my raspberry to flash D1.
To get D1 ready to flash, do I have to put GND to GPIO0 on D1 at the same time I connect GND/3.3v or is it enough to connect GND/3.3v and RX/TX to TX/RX on my raspberry pi?
Set the jumper on the USB-serial adapter to 3V3 and it can power the ESP from the USB port.
This is pretty much the same process as Tasmota, ESPhome, etc all use - Google Is Your Friend!
In this model you select the voltage through a jumper, 3.3v or 5v.
It is a kind of translator, the esp8266 uses serial communication, the USB does not. Or something like that, I don’t know the details.
No schematic or connection diagram, and everyone is just guessing.
Do you have an FTDI adapter?
No? Stop here and get one.
Yes? Don’t connect the Sonoff yet.
Plug the FTDI into the computer USB port and it will present when you run dmesg.
If you don’t see the FTDI on a USB port then plug the FTDI into another computer and repeat step 4. If you still don’t see it, you probably have a dead FTDI or the wrong device driver.
I got an IP number.
I find my dimmer in my router
I had to add device, under integration with my ip number/key (it didn’t auto detect).
I can control my D1 dimmer with HA.
But
Under ESPhome menu, my devices are offline. I can’t update because no connection to internet.