We have 1 Luna and 3 other Ceiling lights, availability is not an issue since I assigned fixed IP to them in the DHCP. Is your wifi stable enough? 2.4 GHz can get quite congested. You should make sure the lamp is on the latests firmware (upgrade with the yeelight app).
The ambient RGB support would need more work, and I don’t have the time right now to implement it.
Regarding your second point: I’m planning to implement moonlight functionality by remapping the brightness slider: 1-10% in home assistant maps to moonlight mode 1-100%, and 11-100% would map to normal mode 1-100%. It’s not too hard to do, I’m just busy with other projects these days.
Sounds great but wont moonlight mode restrict color temperature changing? So in your implementation 1-10% brightness = moonlight mode = fixed color temperature (warm).
Hi, @syssi can you help me please with my yeelight.
I have this problem, these errors are in the homeassistant.log
Oct 23 14:44:01 hassbian hass[29615]: File “/srv/homeassistant/lib/python3.5/site-packages/homeassistant/helpers/entity_platform.py”, line 128, in _async_setup_platform
Oct 23 14:44:01 hassbian hass[29615]: File “/srv/homeassistant/lib/python3.5/site-packages/homeassistant/components/light/yeelight.py”, line 125, in setup_platform
Log Details (ERROR)
Error while setting up platform yeelight
Traceback (most recent call last):
File “/srv/homeassistant/lib/python3.5/site-packages/homeassistant/helpers/entity_platform.py”, line 128, in _async_setup_platform
SLOW_SETUP_MAX_WAIT, loop=hass.loop)
File “/usr/lib/python3.5/asyncio/tasks.py”, line 400, in wait_for
return fut.result()
File “/usr/lib/python3.5/asyncio/futures.py”, line 293, in result
raise self._exception
File “/usr/lib/python3.5/concurrent/futures/thread.py”, line 55, in run
result = self.fn(*self.args, **self.kwargs)
File “/srv/homeassistant/lib/python3.5/site-packages/homeassistant/components/light/yeelight.py”, line 125, in setup_platform
from yeelight.enums import PowerMode
ImportError: cannot import name ‘PowerMode’
and homeassistant discovery services seems this
Oct 23 14:44:28 hassbian hass[29615]: 2018-10-23 14:44:28 INFO (MainThread)
[homeassistant.components.discovery] Found new service: yeelight {‘host’: ‘192.168.0.48’, ‘device_type’: ‘ceiling1’, ‘properties’: {‘epoch’: ‘1’, ‘mac’: ‘7811dc6d17b7’}, ‘port’: 54321, ‘hostname’: ‘yeelink-light-ceiling1_mibt73094532.local.’, ‘mac_address’: ‘7811dc6d17b7’}
Which HA version do you use? It looks like your python-yeelight version is outdated:
# shutdown homeassistant first
su - homeassistant
source /srv/homeassistant/bin/activate
pip3 install -U yeelight
# and may be
pip3 install -U homeassistant
# start homeassistant again
Not really i´m interested if some figured this out. But i use a Workaround which works pretty well for me.
I created a Script to switch the Lamp to Moonlight Mode. If you want to switch back you just have to change the Light Temperature. The brightness Silder Works from 0-100 in each Mode for itself.
Are your lights all named the same ? I just have one yeelight so i can´t test how the behavior of my Script is with more than one. Maybe you create a normal Group. Group Tutorial