I am pretty knew and have a good variety of brands and devices collected in the past 4 years. So far most are working right now, even Tuya and Xiaomi and partly Yeelight bedside lamp.
This yeelight has lost the possibility to activate the LAN hub / protocol via app since a january firmware update.
Therefore it can no longer be integrated at least by those who had installed that january update.
BUT I FOUND A WORK AROUND TO TURN IT ON AND OFF
#1
I have gotten the token from the Xiaomi Token extractor and while I was struggling with a lot of devices I had made a typo and added accidently the Yeelight to the xiaomi section in my configuration.yaml while I was adding my xiaomi plugs.
#2
After restarting HomeAssistant in docker I had checked all my plugs and suddenly light turned off … and on, cause one of these plugs was the bedlight lamp.
I then checked the IP adress and token and found out I had added 1 device to much to my plugs which was not a plug, a copy paste error while copying from my extractor table.
[configuration.yaml]
switch:
- platform: xiaomi_miio_plug
name: Bedlight
host: 192.168.x.yyy
token: 12345677890abcdefghijklmno
model: chuangmi.plug.m1
Maybe someone else gets more out of this incidental success cause the colour and brightness change are not working. I was able to add friendly name and light icon via customize.yaml. I tried to use the light card I had used for the xiaomi gateway which supports brighntess and colur selection, but that did not work well so far.
For HA it is a plug (switch.bedlight name) and a switch has 2 states: on or off
As a switch you can’t get a light card to work as a light.
But: this yeelight lamp is working with out lan / hub control enabled just by ip and token
I also tried all philips light and other xiaomi light models to get it running as a light, no success. I tried it dozens of different ways but nothing worked out - only the socket configuration.
But there might be some experts who can benefit from that workaround cause it means that even without lan control enabled the communication via lan is working.