Code Monkey home page Code Monkey logo

Comments (39)

marrobHD avatar marrobHD commented on May 27, 2024 3

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:
ESP32-Vroom-32D

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.

syssi avatar syssi commented on May 27, 2024 1

Yes! This command will work!

cp. https://github.com/mmakaay/esphome-xiaomi_bslamp2/blob/dev/doc/flashing.md#make-a-backup-of-the-current-firmware

from esphome-yeelight-ceiling-light.

marrobHD avatar marrobHD commented on May 27, 2024 1

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.

syssi avatar syssi commented on May 27, 2024 1

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.

maumaumaumaumau avatar maumaumaumaumau commented on May 27, 2024 1

FYI: The fuse blew up, I changed it, flashed the lamp. Working like a charm.

from esphome-yeelight-ceiling-light.

syssi avatar syssi commented on May 27, 2024 1

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.

syssi avatar syssi commented on May 27, 2024
  1. The bluetooth remote is supported if you replace the ESP32 to a dual core version
  2. Attach RX, TX, GND and VCC to the ESP32. Pull-down the GPIO0 on boot-up. Flash the esphome yaml.
  3. I wasn't able to dump the OEM firmware. At the moment there is no way back.

from esphome-yeelight-ceiling-light.

soulcola avatar soulcola commented on May 27, 2024

Is it working with esphome?

from esphome-yeelight-ceiling-light.

syssi avatar syssi commented on May 27, 2024

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.

ChrisMuc avatar ChrisMuc commented on May 27, 2024

@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.

syssi avatar syssi commented on May 27, 2024

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.

syssi avatar syssi commented on May 27, 2024

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.

stefan0001 avatar stefan0001 commented on May 27, 2024

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.

marrobHD avatar marrobHD commented on May 27, 2024

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.

syssi avatar syssi commented on May 27, 2024

If you provide some high-res photos I could try to help to identify the pins.

from esphome-yeelight-ceiling-light.

marrobHD avatar marrobHD commented on May 27, 2024

I'll look into it at weekend and try to figure most of it out.

from esphome-yeelight-ceiling-light.

syssi avatar syssi commented on May 27, 2024

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.

marrobHD avatar marrobHD commented on May 27, 2024

IMG_20220520_205944
IMG_20220520_205927
IMG_20220520_205917

Edit:
I gave up, soldering to this esp32wroom seems impossible with my equipment

from esphome-yeelight-ceiling-light.

syssi avatar syssi commented on May 27, 2024

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.

marrobHD avatar marrobHD commented on May 27, 2024

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.

syssi avatar syssi commented on May 27, 2024

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.

syssi avatar syssi commented on May 27, 2024

TP3 should be GPIO0 f.e.

yeelight-wifi-ufc-v01

from esphome-yeelight-ceiling-light.

syssi avatar syssi commented on May 27, 2024

Good job!

from esphome-yeelight-ceiling-light.

marrobHD avatar marrobHD commented on May 27, 2024

ESPHome flashed. Everything works, but I also noticed that the network connection is more unstable than with original firmware.

from esphome-yeelight-ceiling-light.

syssi avatar syssi commented on May 27, 2024

My yeelights are pretty stable (1 reconnect per day). Is your access point far away?

yeelight-wifi

from esphome-yeelight-ceiling-light.

syssi avatar syssi commented on May 27, 2024

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.

marrobHD avatar marrobHD commented on May 27, 2024

AP isn't too far away (-68dBm).
Nevermind, it stopped being unstable.
Screenshot_2022-05-22-16-47-31-373-edit_io homeassistant companion android

from esphome-yeelight-ceiling-light.

syssi avatar syssi commented on May 27, 2024

@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.

spn91 avatar spn91 commented on May 27, 2024

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.

syssi avatar syssi commented on May 27, 2024

@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.

spn91 avatar spn91 commented on May 27, 2024

It is the smaller version.

from esphome-yeelight-ceiling-light.

slimcdk avatar slimcdk commented on May 27, 2024

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.

maumaumaumaumau avatar maumaumaumaumau commented on May 27, 2024

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.

syssi avatar syssi commented on May 27, 2024

Good job!

from esphome-yeelight-ceiling-light.

helgek avatar helgek commented on May 27, 2024

@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.

vladimir1vladimirovich avatar vladimir1vladimirovich commented on May 27, 2024

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.

rdorsch avatar rdorsch commented on May 27, 2024

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.

syssi avatar syssi commented on May 27, 2024

@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.

rdorsch avatar rdorsch commented on May 27, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.