How to set up a YEELIGHT 10W RGB E27 tied to mihome? How to add it in a configuration with a token?
you can’t. The HA Xiaomi integration doens’t support Yeelights.
Instead, remove the bulb from mihome, install the appropriate yeelight app on your phone and follow this: https://www.home-assistant.io/components/yeelight/
Actually mine are auto discovered, I have to block them in discovery
Only autodiscovered if you have them setup in the Yeelight App (otherwise you can’t enable LAN mode)
I originally then used discovery but 50% of the time it took up to 30 mins for them to be discovered after a restart so I set discovery to ignore them and manually configure now. But whatever works reliably for you…
Ah yes, your right, id also recommend setting them up with the app first.
You won’t get them to work in HA at all without the app first…
Hello,
After updating to 0.94.1, mi yeelights light not make autodiscover.
My configuration is this one:
- In my configuration.yaml i have this:
# Discover some devices automatically discovery: ignore: - yeelight
And i have a light.yaml file where i have all lights:
- platform: yeelight
devices:
192.168.1.152:
name: Entrada1
192.168.1.150:
name: Cocina
# 192.168.1.151:
# name: Color
192.168.1.153:
name: Entrada2
192.168.1.154:
name: Pasillo1
192.168.1.155:
name: Pasillo2
192.168.1.156:
name: MesitaNastya
192.168.1.157:
name: MesitaSasha
192.168.1.163:
name: Hab11
192.168.1.164:
name: Hab12
192.168.1.165:
name: Hab13
Some one knows why the autodiscover doesn’t work? it’s my mistake or maybe 0.94.1 version?
thanks
you have discovery of yeelight set to ignore, and instead specify the IP addresses.
What is broken?
@walaj, thanks for reply.
Sorry,
I wanted to say that until version 0.94.1, i didn’t used autodiscover. After update to version 0.94.1, my yeelight light not appeared.
The only method is enabling the autodiscover… and as in HA website says, i want use the manual method:
https://www.home-assistant.io/components/yeelight/#example-configuration-manual
are the IP addresses of the bulbs static?
There has been a breaking change You need to follow the instructions for manual configuration in the link you’ve posted.
Always check for breaking changes before updating (or after if you find out something is not working )
Thanks for reply @sjee,
So in my case that i’m using a light.yaml file and in my configuration.yaml file look likes this:
input_number: !include input_number.yaml
input_select: !include input_select.yaml
light: !include light.yaml
media_player: !include media_player.yaml
notify: !include notify.yaml
scene: !include scenes.yaml
script: !include scripts.yaml
sensor: !include sensors.yaml
switch: !include switches.yaml
zone: !include zones.yaml
I need to take out from light.yaml file the yeelight configuration and create a new yeelight.yaml file, for example?
Now light.yaml file (OLD)
- platform: yeelight
devices:
192.168.1.152:
name: Entrada1
192.168.1.150:
name: Cocina
# 192.168.1.151:
# name: Color
192.168.1.153:
name: Entrada2
192.168.1.154:
name: Pasillo1
192.168.1.155:
name: Pasillo2
192.168.1.156:
name: MesitaNastya
192.168.1.157:
name: MesitaSasha
192.168.1.163:
name: Hab11
192.168.1.164:
name: Hab12
192.168.1.165:
name: Hab13
- platform: xiaomi_miio
name: Philips Comedor1
host: 192.168.1.160
token: !secret philips_token3
model: philips.light.candle2
- platform: xiaomi_miio
name: Philips Comedor2
host: 192.168.1.161
token: !secret philips_token4
model: philips.light.candle2
- platform: xiaomi_miio
name: Philips Comedor3
host: 192.168.1.158
token: !secret philips_token1
model: philips.light.candle2
New light.yaml file (NEW)
- platform: xiaomi_miio
name: Philips Comedor1
host: 192.168.1.160
token: !secret philips_token3
model: philips.light.candle2
- platform: xiaomi_miio
name: Philips Comedor2
host: 192.168.1.161
token: !secret philips_token4
model: philips.light.candle2
- platform: xiaomi_miio
name: Philips Comedor3
host: 192.168.1.158
token: !secret philips_token1
model: philips.light.candle2
yeelight.yaml file
devices:
192.168.1.152:
name: Entrada1
192.168.1.150:
name: Cocina
# 192.168.1.151:
# name: Color
192.168.1.153:
name: Entrada2
192.168.1.154:
name: Pasillo1
192.168.1.155:
name: Pasillo2
192.168.1.156:
name: MesitaNastya
192.168.1.157:
name: MesitaSasha
192.168.1.163:
name: Hab11
192.168.1.164:
name: Hab12
192.168.1.165:
name: Hab13
Thanks
that should work - sorry - I missed the breaking change.