I’ve been scouring the internet trying to find a way to get this single bulb to work. I’ve tried all the fixes suggested with no luck and perhaps it’s because I’ve only just started with HA yesterday, I may have some more learning to do.
So my yeelight bulb works with the integration (i.e. it shows up when I look at the Integrations UI). There are no devices or entities and I cannot control it. I’ve seen this issue pop up many times and people have suggested manually adding it, so my config file now looks like:
discovery:
ignore:
- yeelight
yeelight: !include yeelight.yaml
My yeelight.yaml file looks like:
devices:
192.168.1.48:
name: lamp_name
model: color4
The bulb has LAN control activated, it has a static IP (as does the Pi). I then ran across this thread on github where the codeowner said:
Yeelights wont be shown there, as currently, integration doesn’t support Config Flow and/or Entity Registry . Which are needed to register entities there. You can probably use service call in automation to set desired state. I think it only won’t be show if you choose device action type.
I’m not 100% sure what this means just yet, but I tried with a simple automation to turn the lights on with:
alias: Yeelight Test
description: "TEST"
trigger:
- platform: sun
event: sunset
offset: "45"
condition: []
action:
- service: light.turn_on
entity_id: light.lamp_name
data:
brightness: 60
rgb_color: [255,0,0]
transition: 3
mode: single
This does not work and I get a “Unable to find service light.turn_on” error in the log. I’m not really sure why I’m getting this error (yet), but I figured while I do that, perhaps the kind folk in this community might save me the headache of going down multiple rabbit holes in the meantime.
More info: Latest firmware on the yeelight bulb, and I’m running Home Assistant 2020.12.1. Not sure if this is a new issue or if it’s just me.
Could really use some assistance!
Thanks!