Comments (39)
I found the reason why it didn't work before. I had the wrong esp32 template in front of me. Pinout was different. This matches the esp32 on the board:
I dumped the firmware and will now try to flash ESPHome.
Test points WIFI UFC V01:
TP3 -> GPIO0
TP4 -> GPIO3, RXD0
TP5 -> GPIO1, TXD0
TP1 -> 3V3
TP2 -> GND
from esphome-yeelight-ceiling-light.
Yes! This command will work!
from esphome-yeelight-ceiling-light.
The miio model name is just yeelight.light.ceilc
.
I used this configuration as base and it almost worked out of the box. Some adjustments were needed to get it working with esp-idf framework.
My config can be found here.
from esphome-yeelight-ceiling-light.
Please never power your ceiling lamp using 230VAC if it's open for flashing!! Just power the ESP using 3,3V. As soon the ESP is flashed remove all cables, close the cover and attach the lamp to the ceiling again.
from esphome-yeelight-ceiling-light.
FYI: The fuse blew up, I changed it, flashed the lamp. Working like a charm.
from esphome-yeelight-ceiling-light.
Please give it a try using ESPHome. Just avoid the api
componnent and use the mqtt
component to talk to your lamp instead. I assume OpenHAB supports MQTT too.
I don't know how to convince the Arduino IDE to enable the required single core build.
from esphome-yeelight-ceiling-light.
- The bluetooth remote is supported if you replace the ESP32 to a dual core version
- Attach RX, TX, GND and VCC to the ESP32. Pull-down the GPIO0 on boot-up. Flash the esphome yaml.
- I wasn't able to dump the OEM firmware. At the moment there is no way back.
from esphome-yeelight-ceiling-light.
Is it working with esphome?
from esphome-yeelight-ceiling-light.
The device is esp32 based. If somebody identifies the GPIOs it can be used with esphome. I could provide some instructions to get it done if you own a multimeter.
from esphome-yeelight-ceiling-light.
@BotoX How did you open it? Can you tell me, where the clips are located and which tools you used to remove the cover.
@syssi What do you mean with "The bluetooth remote is supported if you replace the ESP32 to a dual core version"? It supports WIFI and Yeelight's bluetooth remote with original firmware. Maybe it's already a dual-core ESP32 inside. Or did someone figure out, that it's just a single-core?
from esphome-yeelight-ceiling-light.
In general yeelight safes money by using a single-core ESP32. I haven't seen a yeelight device yet equipped with a dual-core ESP32 by factory. The stock firmware is "optimized" to allow BLE and WiFi coexisting on a single core. ESP-IDF + ESPHome will crash on boot-time if you enable BLE. If you want to use BLE with ESPHome a dual-core ESP32 is required at the moment.
from esphome-yeelight-ceiling-light.
I wasn't able to dump the OEM firmware. At the moment there is no way back.
This isn't true anymore. You should try to dump the flash. I could provide some instructions.
from esphome-yeelight-ceiling-light.
This isn't true anymore. You should try to dump the flash. I could provide some instructions.
Hi @syssi is there something special when creating a backup?
Found some example for esptool:
python ./esptool.py --port /dev/ttyUSB4 --baud 115200 read_flash 0x00000 0x400000 backup.img
Does this work for yeelight?
Also thanks for the create work here!
from esphome-yeelight-ceiling-light.
Did anyone found gpio pins yet? I have the 550C model. If I'm not wrong it has specific LEDs for nightlight?
from esphome-yeelight-ceiling-light.
If you provide some high-res photos I could try to help to identify the pins.
from esphome-yeelight-ceiling-light.
I'll look into it at weekend and try to figure most of it out.
from esphome-yeelight-ceiling-light.
You can find some other issues with details about how to identify the correct GPIOs at this project. Good look! Feel free to ask if something is unclear.
from esphome-yeelight-ceiling-light.
Edit:
I gave up, soldering to this esp32wroom seems impossible with my equipment
from esphome-yeelight-ceiling-light.
You could use a multimeter to measure the continuity between the RX, TX and the GPIO0 pin an the test pins (TPx
) on the back of the board. If you can find test pins for RX, TX and GPIO0 it's easier to solder.
from esphome-yeelight-ceiling-light.
I guess there arent any testpoins on the back. There are only 8 pins from the esp going to the mainboard.
from esphome-yeelight-ceiling-light.
I'm talking about the back of the small daughter board not the LED driver board. All pins of the ESP should be soldered to the daughter board.
from esphome-yeelight-ceiling-light.
TP3
should be GPIO0
f.e.
from esphome-yeelight-ceiling-light.
Good job!
from esphome-yeelight-ceiling-light.
ESPHome flashed. Everything works, but I also noticed that the network connection is more unstable than with original firmware.
from esphome-yeelight-ceiling-light.
My yeelights are pretty stable (1 reconnect per day). Is your access point far away?
from esphome-yeelight-ceiling-light.
This is my wifi config:
wifi:
ssid: !secret wifi_ssid
password: !secret wifi_password
fast_connect: true
use_address: 192.168.xxx.xxx
power_save_mode: LIGHT
reboot_timeout: 5min
from esphome-yeelight-ceiling-light.
AP isn't too far away (-68dBm).
Nevermind, it stopped being unstable.
from esphome-yeelight-ceiling-light.
@marrobHD I would like to add your ceiling lamp to the list of supported device. Do you like to contribute your config yaml? Do you know the miio model name (something like yeelink.light.ceilingXX
)?
from esphome-yeelight-ceiling-light.
I can confirm that this is also working for the Yeelight Arwen A2001. This is the same light, but without the RGB lights. It is identified as yeelink.light.ceil29.
from esphome-yeelight-ceiling-light.
@spn91 Do you own the 50 or 60cm version? I'm asking because of the model identifier. So I can add an question mark to the identifier of the other version.
from esphome-yeelight-ceiling-light.
It is the smaller version.
from esphome-yeelight-ceiling-light.
This also works for the 550S. I have a dump of the original firmwares. Both 2.1.7_0009 and 2.1.7_0011 (this one from the OTA download aswell, but something still seem to be missing).
I wish to be able to do OTA provision to ESPHome in the future, so I have network traffic captures of the devices as well as decoded mobile app source code, but have not gotten further as of today.
from esphome-yeelight-ceiling-light.
I have an issue with connecting the lamp correctly.
I do exactly as described here:
TP3 -> GPIO0
TP4 -> GPIO3, RXD0
TP5 -> GPIO1, TXD0
TP1 -> 3V3
TP2 -> GND
additionally I connect GPIO0 to GND, rest is as always: RXD0 -> TXD, TXD0 -> RXD and 3V3 -> 3V3, GND -> GND.
If I turn on the lamp with CH340G or FT232RL WITHOUT USB cable attached, the lamp goes into flash mode. But If I connect the USB Cable to either flashing devices, the lamp shorts (and is dead). What am I doing wrong?
from esphome-yeelight-ceiling-light.
Good job!
from esphome-yeelight-ceiling-light.
@BotoX How did you open it? Can you tell me, where the clips are located and which tools you used to remove the cover.
@syssi What do you mean with "The bluetooth remote is supported if you replace the ESP32 to a dual core version"? It supports WIFI and Yeelight's bluetooth remote with original firmware. Maybe it's already a dual-core ESP32 inside. Or did someone figure out, that it's just a single-core?
@BotoX @ChrisMuc I'd also be interested to understand how you can remove the cover. Information on this would be very much appreciated! I'm able to lift a bit the side using a plastic slider but I don't get beyond that.
from esphome-yeelight-ceiling-light.
Hi there!
I connected to the Xiaomi YLXD013-C (esp32-woom-32d) lamp via UART and tried to upload the program via Arduino IDE, the upload happened, but the terminal said: “running on single core variant of a chip, but app is built with multi-core support" and esp kept rebooting all the time.
Please tell me how to flash this esp without using esphome firmware.
P.S. The lamp is planned to be used in OpenHAB.
from esphome-yeelight-ceiling-light.
Does anybody now if the LEDs in the lamp are controlled with a WS2812B protocol? There are four wires to the lamp PCB, which is one more which is strictly needed fro WS2812B.
from esphome-yeelight-ceiling-light.
@rdorsch Why do you think it's WS2812B? IMO the LEDs cannot be controlled individually. You have to control the complete string using PWM.
from esphome-yeelight-ceiling-light.
I had a LED stripe with WS2812B. But you are right, looking at the PCB it even says VW+, VW-, VC+, VC- for the warm and cold white LEDs.
from esphome-yeelight-ceiling-light.
Related Issues (20)
- Error 'platformio/toolchain-esp32ulp @ ~1.22851.0' on 'linux_aarch64' HOT 11
- Light delay after AC power on HOT 23
- Add yeelink.light.fancl5 support HOT 144
- Add `YLYK01YL-VENFAN` and `YLYB01YL-BHFRC` support
- Support for Yeelight Arwen 450/550S HOT 4
- yeelink.light.strip2 support - Lightstrip Plus (YLDD04YL) HOT 29
- Not an issue, just broken pin HOT 4
- yeelink.light.ceiling20 vs. yeelink.light.ceiling22 HOT 10
- Support for Yeelight Color1?? [YLDP02YL] HOT 1
- YLLD01YL dissasembly HOT 3
- Custom firmware will avoid connecting drops? HOT 17
- YLXD41YL bootloop in esphome 2022.12 HOT 13
- Anyone expirience with BL proxy from ESPHome on yeelight? HOT 8
- Yeelight Meteorite (ceiling10): replacing board HOT 6
- [BUG] Could not find the package with espressif/toolchain-riscv32-esp HOT 1
- OTA progress effect
- Yeelight Light Strip1S on/off button does not work HOT 6
- Issues with restoring to the previous state after updates and power outages. HOT 5
- Improve boot times HOT 6
- Add support for yeelink.light.lamp10 (YLLD01YL) HOT 7
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from esphome-yeelight-ceiling-light.