Posted by Agent Kith on 08 Dec 2017 in Home Automation
How To Control Your Yeelight With Google Home And Home Assistant
Basic IFTTT Commands
Now we are ready for IFTTT integration. There are only three basic commands in this domain. This table is a summary of what I’m using. Refer to the home assistant page for lights for a full listing.
Command | Command Description | Attribute | Attribute Description |
---|---|---|---|
turn_on | Turns one light on or multiple lights on using groups. | entity_id |
String or list of strings that point at entity_id s of lights. Else targets all. |
rgb_color |
A list containing three integers representing the rgb color you want the light to be. Three comma separated integers that represent the color in RGB. You can find a great chart here: Hue Color Chart | ||
brightness |
Integer between 0 and 255 for how bright the color should be. | ||
turn_off | Turns one or multiple lights off. | entity_id |
String or list of strings that point at entity_id s of lights. Else targets all. |
toggle | Toggles the state of one or multiple lights using groups. | entity_id |
String or list of strings that point at entity_id s of lights. Else targets all. |
So here are some examples:
- Turn on a YeeLight and set it to pure white at 100% brightness. Replace “music_light” in “light.music_light” with the name you have defined in the previous page
POST: http://your_server:8123/api/services/light/turn_on?api_password=_your_secret_password_
JSON:
{
“entity_id": “light.music_light",
“rgb_color
": [255,255,255],
“brightness": “255″
}
- Turn off a YeeLight
POST: http://your_server:8123/api/services/light/turn_off?api_password=_your_secret_password_
JSON:
{
"entity_id": "light.music_light"
}
Advertising
About The Author
Founder and lead architect of Snakeoil OS - the ultimate audiophile operating system for music playback. My primary focus is in applying technology without losing the human touch.