And its dead again. Same symptoms as before. All my other bulbs are going strong still, seems to be just an issue with this bulb.
Hello is it possible to control yeelight with switch without base station ?
Sure itās WiFi
but not with app in mobile
I would like to buy https://www.gearbest.com/access-control/pp_626695.html
but im not sure it will work without base station
Completely different systems, Yeelight are wifi and Aqara is a zigbee based system. Donāt make the mistake of assuming because it says Xiaomi in the name they are related, Yeelight are a separate company.
As @Bobby_Nobble wrote you need a gateway to use the zigbee switch. Thatās is also what is says in the descriptionā¦
Please Note:
This item must match the xiaomi multifunctional gateway to use.
Thank you for reply, is existing something like this for yeelight ? My wife will not use mobile app to switch off the yeelight, she use power switch on wall.
Assuming your using HA to control the Yeelight, otherwise why would you be here , you need to be looking for something that will trigger the relevant action in HA rather than the bulb itself. Donāt think thereās anything that will control the colour but on/off and dimming are possible. Other than that get an Echo Dot and let her shout at it, that got my missus to use them.
I just recaived first yeelight, so i doing some research how to use it, I want to automaticly switch on at mornig, but when my wife switch it off from electriciiity by swit on wall, it will not comunicate morning. So im looking for some wifi switch for xiaomi my home application to use it without their base station, by the way i bought today raspbery 3, so i can try to use HA
Music mode
Per default the bulb limits the amount of requests per minute to 60, a limitation which can be bypassed by enabling the music mode. In music mode the bulb is commanded to connect back to a socket provided by the component and it tries to keep the connection open, which may not be wanted in all use-cases.
Can somebody please provide the drawbacks of having the bulb in music mode?
Wonder if anyone could help. This is my config
light:
- platform: yeelight
devices:
192.168.1.197:
name: Outside Front Door
transition: 1000
use_music_mode: True
save_on_change: False
This is my automation:
- alias: 'Front door outside light on'
trigger:
- platform: sun
event: sunset
offset: "00:5:00"
action:
- service: homeassistant.turn_on
entity_id: light.outside_front_door
- alias: 'Front door outside light off'
trigger:
- platform: sun
event: sunrise
offset: "00:10:00"
action:
- service: homeassistant.turn_off
entity_id: light.outside_front_door
The sunrise off automation works fine, but the sunset one (turning one) doesnāt. This is what I see in the logs at the time it triggers:
2017-11-27 16:36:59 INFO (MainThread) [homeassistant.components.automation] Executing Front door outside light on
2017-11-27 16:36:59 INFO (MainThread) [homeassistant.core] Bus:Handling <Event logbook_entry[L]: name=Front door outside light on, message=has been triggered, domain=automation, entity_id=automation.front_door_outside_light_on>
2017-11-27 16:36:59 INFO (MainThread) [homeassistant.helpers.script] Script Front door outside light on: Running script
2017-11-27 16:36:59 INFO (MainThread) [homeassistant.helpers.script] Script Front door outside light on: Executing step call service
2017-11-27 16:36:59 INFO (MainThread) [homeassistant.core] Bus:Handling <Event call_service[L]: domain=homeassistant, service=turn_on, service_data=entity_id=['light.outside_front_door'], service_call_id=139989168647640-45>
2017-11-27 16:36:59 INFO (MainThread) [homeassistant.core] Bus:Handling <Event call_service[L]: domain=light, service=turn_on, service_data=entity_id=['light.outside_front_door'], service_call_id=139989168647640-46>
2017-11-27 16:36:59 DEBUG (SyncWorker_13) [yeelight.main] Music mode cache update: {'power': 'on'}
2017-11-27 16:36:59 DEBUG (SyncWorker_13) [yeelight.main] Bulb<192.168.1.197:55443, type=BulbType.Color> > {'id': 36, 'method': 'set_power', 'params': ['on', 'smooth', 1000]}
2017-11-27 16:36:59 DEBUG (SyncWorker_13) [homeassistant.components.light.yeelight] Calling <function YeelightLight.set_rgb at 0x7f51a45ab840> with (None, 1000) {}
2017-11-27 16:36:59 DEBUG (SyncWorker_13) [homeassistant.components.light.yeelight] Calling <function YeelightLight.set_colortemp at 0x7f51a45ab950> with (None, 1000) {}
2017-11-27 16:36:59 DEBUG (SyncWorker_13) [homeassistant.components.light.yeelight] Calling <function YeelightLight.set_brightness at 0x7f51a45ab730> with (None, 1000) {}
2017-11-27 16:36:59 DEBUG (SyncWorker_13) [homeassistant.components.light.yeelight] Calling <function YeelightLight.set_flash at 0x7f51a45abb70> with (None,) {}
2017-11-27 16:36:59 DEBUG (SyncWorker_13) [homeassistant.components.light.yeelight] Calling <function YeelightLight.set_effect at 0x7f51a45abc80> with (None,) {}
2017-11-27 16:36:59 INFO (MainThread) [homeassistant.core] Bus:Handling <Event state_changed[L]: entity_id=light.outside_front_door, old_state=<state light.outside_front_door=off; friendly_name=Outside Front Door, supported_features=127 @ 2017-11-27T07:07:22.388731-05:00>, new_state=<state light.outside_front_door=on; brightness=255.0, color_temp=250, min_mireds=153, max_mireds=588, rgb_color=(255, 67.92041905680745, 0), xy_color=(0.654, 0.342), effect_list=['Disco', 'Slow Temp', 'Strobe epilepsy!', 'Strobe color', 'Alarm', 'Police', 'Police2', 'Christmas', 'RGB', 'Random Loop', 'Fast Random Loop', 'Slowdown', 'WhatsApp', 'Facebook', 'Twitter', 'Stop'], friendly_name=Outside Front Door, supported_features=127 @ 2017-11-27T16:36:59.392149-05:00>>
2017-11-27 16:36:59 INFO (MainThread) [homeassistant.core] Bus:Handling <Event state_changed[L]: entity_id=group.lights, old_state=<state group.lights=off; entity_id=('light.outside_front_door', 'light.garage'), order=1, view=True, friendly_name=Lights, hidden=True, assumed_state=False @ 2017-11-27T07:07:22.390548-05:00>, new_state=<state group.lights=on; entity_id=('light.outside_front_door', 'light.garage'), order=1, view=True, friendly_name=Lights, hidden=True, assumed_state=False @ 2017-11-27T16:36:59.394039-05:00>>
2017-11-27 16:36:59 INFO (MainThread) [homeassistant.core] Bus:Handling <Event state_changed[L]: entity_id=group.all_lights, old_state=<state group.all_lights=off; entity_id=('light.garage', 'light.gateway_light_34ce0088d77c', 'light.outside_front_door'), order=12, auto=True, friendly_name=all lights, hidden=True, assumed_state=False @ 2017-11-27T07:07:22.391873-05:00>, new_state=<state group.all_lights=on; entity_id=('light.garage', 'light.gateway_light_34ce0088d77c', 'light.outside_front_door'), order=12, auto=True, friendly_name=all lights, hidden=True, assumed_state=False @ 2017-11-27T16:36:59.397902-05:00>>
2017-11-27 16:36:59 INFO (MainThread) [homeassistant.core] Bus:Handling <Event service_executed[L]: service_call_id=139989168647640-46>
2017-11-27 16:36:59 INFO (MainThread) [homeassistant.core] Bus:Handling <Event service_executed[L]: service_call_id=139989168647640-45>
2017-11-27 16:36:59 INFO (MainThread) [homeassistant.core] Bus:Handling <Event state_changed[L]: entity_id=automation.front_door_outside_light_on, old_state=<state automation.front_door_outside_light_on=on; last_triggered=2017-11-26T16:37:26.877705-05:00, friendly_name=Front door outside light on @ 2017-11-26T12:27:50.779003-05:00>, new_state=<state automation.front_door_outside_light_on=on; last_triggered=2017-11-27T16:36:59.407769-05:00, friendly_name=Front door outside light on @ 2017-11-26T12:27:50.779003-05:00>>
2017-11-27 16:37:01 INFO (MainThread) [homeassistant.core] Bus:Handling <Event state_changed[L]: entity_id=sensor.date__time, old_state=<state sensor.date__time=2017-11-27, 16:36; friendly_name=Date & Time, icon=mdi:calendar-clock @ 2017-11-27T16:36:01.379658-05:00>, new_state=<state sensor.date__time=2017-11-27, 16:37; friendly_name=Date & Time, icon=mdi:calendar-clock @ 2017-11-27T16:37:01.381224-05:00>>
2017-11-27 16:37:25 DEBUG (SyncWorker_7) [yeelight.main] Bulb<192.168.1.189:55443, type=BulbType.Color> > {'id': 3282, 'method': 'get_prop', 'params': ['power', 'bright', 'ct', 'rgb', 'hue', 'sat', 'color_mode', 'flowing', 'delayoff', 'music_on', 'name']}
2017-11-27 16:37:25 DEBUG (SyncWorker_7) [yeelight.main] Bulb<192.168.1.189:55443, type=BulbType.Color> < {'id': 3282, 'result': ['off', '100', '', '', '', '', '2', '0', '0', '', '']}
2017-11-27 16:37:30 INFO (MainThread) [homeassistant.core] Bus:Handling <Event state_changed[L]: entity_id=sun.sun, old_state=<state sun.sun=below_horizon; next_dawn=2017-11-28T11:28:14+00:00, next_dusk=2017-11-27T22:02:08+00:00, next_midnight=2017-11-28T04:45:15+00:00, next_noon=2017-11-28T16:45:01+00:00, next_rising=2017-11-28T11:58:26+00:00, next_setting=2017-11-28T21:31:35+00:00, elevation=-1.51, azimuth=242.83, friendly_name=Sun @ 2017-11-27T16:32:00.381600-05:00>, new_state=<state sun.sun=below_horizon; next_dawn=2017-11-28T11:28:14+00:00, next_dusk=2017-11-27T22:02:08+00:00, next_midnight=2017-11-28T04:45:15+00:00, next_noon=2017-11-28T16:45:01+00:00, next_rising=2017-11-28T11:58:26+00:00, next_setting=2017-11-28T21:31:35+00:00, elevation=-1.7, azimuth=242.99, friendly_name=Sun @ 2017-11-27T16:32:00.381600-05:00>>
The strange thing is I had the exact same automation working perfectly with the white bulb, but not with the color bulb. Note, these are the 110v US versions of the bulbs, bought from amazon.com
Thanks!
I would take the transition, music mode and save on change out of your yeelight config.
Also use light.turn_on or light.turn_off in your automations. i have seen reports of homeassistant.turn_on/off causing issues sometimes. I use it a lot and donāt have issues but others have had issues with some services.
Thanks, let me try that suggestion!
Iām a newbie in Home Assistant. I have several yeelight lights and besides having automation I would like to manage by voice with API.AI. Not even know where to start
Thank you
Are you trying to control your lights with voice using google home?
I prefer Dialogflow (api-ai) to manage conversations
The problem is that I do not know how to relate voice commands with lights
Hello!
Yesterday I updated the firmware of my yeelight lamps (one rgb and one white) and now I canāt see anymore both of them in HAā¦ does anyone have the same issue?
Obviously they are still working in yeelight app and MiHome app.
Thanks
From memory when you do a firmware update it resets the ādeveloper modeā to OFF. Go in using the Yeelight app and turn ādeveloper modeā back ON
I got caught by that one a couple of weeks ago
Actually itās the first thing I thought, unfortunately was not the caseā¦ I also tried to remove and add again but again nothing happen