Bedside Lamp 2 without Homekit [SOLVED]

Tags: #<Tag:0x00007fc4070e10a0> #<Tag:0x00007fc4070e0df8>

Hi there!

I just bought a Yeelight / Xiaomi Bedside Lamp 2 and I managed to set it up as a Homekit accessory, but I wanted to do it manually.
For what I could understand from Home Assistant Integration description, I would have more control doing it manually, for example the nightlight mode.
So after I added it to my “configuration.yaml”, I got a new entity but it is unavailable!

Configuration.yaml
Captura de Tela 2020-03-16 às 23.51.11

Can someone point me in the right direction, please?
Thanks!!

[Solution edit]

I was missing the “LAN Control” that has to be enabled using the Yeelight app (https://www.yeelight.com/en_US/developer).

I assume you did this step in the ‘Initial Setup’?

BINGOOO!!! It worked!!
I was missing the “LAN Control” since I had configured the bedside lamp with the Mi Home app…
The Mi Home app do not have the option to enable it. I had to use the Yeelight app (https://www.yeelight.com/en_US/developer)!!
Thanks!!

1 Like

Any special reason that I’m unable to set “All open” in “LAN Control”?
Have 2 Bedside Lamps 2 on 2.0.6_0041.

I am able to control them via HomeKit & via Alexa (they are set to homeland China).

Hi,
I am having the same problem.
I have two of these bedside lamps2 in the lounge and can only control them via Alexa, but not via Homeassistant, as the LAN control in the Yeelight app for these lamps have gone with latest firmware update 2.0.6_0041.

I wonder if it is possible to downgrade firmware to these? :frowning:

2 Likes

Same problem here. After upgrading my bslamp2 to 2.0.6_0041 LAN control was blocked. Yeelight says it’s Xiaomi that instructed them to do so due to “security risks”. I think it’s BS and Yeelight shouldn’t have done this without a warning.
Not all to happy I whipped out my soldering iron and found the relevant places on the circuit board to extract the firmware with Esptool. It seems like Yeelight have removed/disabled LAN control from the FW, but unfortunately I’m not very familiar with the programming. Maybe there is someone a little more competent than me that can have a look at the code. If anyone has extracted any FW-versions prior to 2.0.6_0041 it can be flashed this way or we can compare the versions to activate LAN control. There is also a lot of other interesting programming(BT may possibly be activated?).

1 Like

In line with the title of the post - I ultimately managed to connect to these lamps via the HomeKit integration on HomeAssistant.
Although the lamps will NOT show in the Yeelight Integration, as they were when LAN control was available, it is still possible to use the Entities which the HomeKit integration create for the lamps and control them.

Just a tip if you haven’t seen it advertised; Yeelight has made a version 2.0.6_0042 with LAN control available for those who wants this, but you have to ask to be whitelisted on the Yeelight forum to get it…

Nah. It is not necessary for now. Thanks for the tip, though! :+1: