Умная лампочка xiaomi yeelight led bulb color
Внешний вид
Укомплектована лампа в компактную фирменную коробку. На ней изображены основные особенности модели и характеристики, к этому мы вернемся чуть позже.
Лампа в коробке
Сама лампочка светодиодная, корпус белого цвета, выглядит стильно и качественно. Сверху установлен матовый рассеиватель, внутри которого размещены светодиоды. В самом корпусе спрятана микросхема, реле и Wi-Fi модуль, благодаря которым и происходит дистанционное управление умной лампой.
Цоколь E27, это самый популярный тип цоколя, который подходит для установки в большинство потолочных и настенных светильников.
С обратной стороны лампы заводская маркировка с указанием основных характеристик изделия:
Характеристики
Пройдемся по основным характеристикам Xiaomi Yeelight Smart Led Bulb 1S:
- Мощность 8,5 Вт.
- Напряжение 220-240 В.
- Частота переменного тока 50 Гц.
- Цветовая температура 2700К (теплый белый свет).
- Световой поток 800 Лм.
- Срок службы 25 тыс. часов.
- Степень защиты
- Тип цоколя E27.
- Вес 185 гр.
В целом одной такой лампочки будет достаточно для освещения около 4-5 квадратных метров помещения. Это может быть место над зоной отдыха либо в прикроватной зоне. Теплый белый свет сделает комфортной обстановку для отдыха. Мощность 8,5 Вт эквивалентна лампе накаливания мощностью 75-100 Вт. Экономия значительная! При этом не забываем про длительный срок эксплуатации.
Example configuration (Manual)
To enable those lights, add the following lines to your file:
Configuration Variables
devicesmapRequired
List of Yeelight devices.
ipmapRequired
IP address of the bulb.
namestring(Optional)
A friendly name for the device.
transitioninteger(Optional, default: 350)
Smooth transitions over time (in ms).
use_music_modeboolean(Optional, default: false)
Enable music mode.
save_on_changeboolean(Optional, default: false)
Saves the bulb state in its nonvolatile memory when changed from Home Assistant.
nightlight_switch_typestring(Optional)
Adds another entity, to control nightlight mode (for models that supports it). Currently, only is supported. It will create 2 light entities, one for normal light mode and second for nightlight mode. They are mutually exclusive.
modelstring(Optional)
Yeelight model. Possible values are , , , , , , , , , , . The setting is used to enable model specific features f.e. a particular color temperature range.
custom_effectsmap(Optional)
List of custom effects to add. Check examples below.
namestringRequired
Name of effect.
flow_paramsmapRequired
Flow params for effect.
countinteger(Optional, default: 0)
The number of times to run this flow (0 to run forever).
transitionslistRequired
List of transitions, for that effect, check .
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 integration and it tries to keep the connection open, which may not be wanted in all use-cases.
Also note that bulbs in music mode will not update their state to “unavailable” if they are disconnected, which can cause delays in Home Assistant. Bulbs in music mode may also not react to commands from Home Assistant the first time if the connection is dropped. If you experience this issue, turn the light off and back on again in the frontend and everything will return to normal.
Initial setup
Before trying to control your light through Home Assistant, you have to setup your bulb using Yeelight app. ( Android, IOS ).
In the bulb property, you have to enable “LAN Control” (previously called “Developer mode”). LAN Control may only be available with the latest firmware installed on your bulb. Firmware can be updated in the application after connecting the bulb.
Determine your bulb IP (using router, software, ping…).
Information on how to enable “LAN Control” can be found here.
Supported models
This integration is tested to work with the following models. If you have a different model and it is working please let us know.
Model ID | Model number | Product name |
---|---|---|
YLDP01YL | LED Bulb (White) | |
? | YLDP05YL | LED Bulb (White) — 2nd generation |
YLDP02YL | LED Bulb (Color) | |
YLDP03YL | LED Bulb (Color) — E26 | |
YLDP06YL | LED Bulb (Color) — 2nd generation | |
YLDP13YL | LED Bulb 1S (Color) | |
YLDD01YL | Lightstrip (Color) | |
YLDD02YL | Lightstrip (Color) | |
? | YLDD04YL | Lightstrip (Color) |
MJCTD01YL | Xiaomi Mijia Bedside Lamp — Wi-Fi Version! | |
MJCTD02YL | Xiaomi Mijia Bedside Lamp II | |
MJDP02YL | Mi LED smart Lamp — white and color Wi-Fi Version | |
MJTD01YL | Xiaomi Mijia Smart LED Desk Lamp (autodiscovery isn’t possible because the device doesn’t support mDNS due to the small amount of RAM) | |
YLXD01YL | Yeelight Ceiling Light | |
YLXD03YL | Yeelight Ceiling Light — Youth Version | |
?, may be | YLXD04YL | Yeelight Ceiling Light (Jiaoyue 450) |
YLXD05YL | Yeelight Ceiling Light (Jiaoyue 480) | |
YLXD02YL | Yeelight Ceiling Light (Jiaoyue 650) | |
YLTD03YL | Yeelight Serene Eye-Friendly Desk Lamp | |
YLDL01YL | Yeelight Meteorite Pendant Light | |
YLXD01YL | Yeelight LED Ceiling Light | |
MJTD02YL | Xiaomi Mijia Desk Lamp Pro |
Examples
In this section you find some real-life examples of how to use this light.
Custom effects
This example shows how you can add your custom effects in your configuration. To turn on the effect you can use service.
Possible transitions are , , , .
Where the array values are as per the following:
- RGBTransition: with red / green / blue being an integer between 0 and 255, duration being in milliseconds (minimum of 50) and final brightness to transition to 1-100 (%).
- HSVTransition: with hue being an integer between 0 and 359, saturation 0 -100, duration in milliseconds (minimum 50) and final brightness 1-100 (%).
- TemperatureTransition: with temp being the final color temperature between 1700 and 6500, duration in milliseconds (minimum 50) and final brightness to transition to 1-100 (%).
- SleepTransition: with duration being in integer for effect time in milliseconds (minimum 50).
More info about transitions and their expected parameters can be found in python-yeelight documentation.
Функции
Самое интересное – это именно функции Smart Led Bulb 1S (White) (YLDP15YL). Ну, во-первых, она диммируемая, а значит вы можете самостоятельно отрегулировать ее яркость. Во-вторых, она управляется через мобильное приложение, это очень удобно и характерная черта всех умных ламп. Для управления нужно скачать приложение Mi Home (Сяоми) или фирменное Yeelight.
Кроме изменения яркости освещения в приложении вы можете управлять умной лампой с помощью голосовых команд, а также настраивать отложенное включение и выключение по таймеру.
Этого достаточно чтобы можно было удобно настраивать обстановку в вечернее время и обустраивать умный дом.
Services
Service yeelight.set_mode
Set an operation mode.
Service data attribute | Optional | Description |
---|---|---|
no | Only act on specific lights. | |
no | Operation mode. Valid values are ‘last’, ‘normal’, ‘rgb’, ‘hsv’, ‘color_flow’, ‘moonlight’. |
Service yeelight.start_flow
Start flow with specified transitions
Service data attribute | Optional | Description |
---|---|---|
no | Only act on specific lights. | |
yes | The number of times to run this flow (0 to run forever). | |
yes | The action to take after the flow stops. Can be ‘recover’, ‘stay’, ‘off’. Default ‘recover’ | |
no | Array of transitions. See . |
Service yeelight.set_color_scene
Changes the light to the specified RGB color and brightness. If the light is off, it will be turned on.
Service data attribute | Optional | Description |
---|---|---|
no | Only act on specific lights. | |
no | A list containing three integers between 0 and 255 representing the RGB color you want the light to be. Three comma-separated integers that represent the color in RGB, within square brackets. | |
no | The brightness value to set (1-100). |
Service yeelight.set_hsv_scene
Changes the light to the specified HSV color and brightness. If the light is off, it will be turned on.
Service data attribute | Optional | Description |
---|---|---|
no | Only act on specific lights. | |
no | A list containing two floats representing the hue and saturation of the color you want the light to be. Hue is scaled 0-360, and saturation is scaled 0-100. | |
no | The brightness value to set (1-100). |
Service yeelight.set_color_temp_scene
Changes the light to the specified color temperature. If the light is off, it will be turned on.
Service data attribute | Optional | Description |
---|---|---|
no | Only act on specific lights. | |
no | Color temperature in Kelvin. | |
no | The brightness value to set (1-100). |
Service yeelight.set_color_flow_scene
Starts a color flow. Difference between this and , this service call uses different Yeelight API call. If the light was off, it will be turned on. There might be some firmware differences, in handling complex flows, etc.
Service data attribute | Optional | Description |
---|---|---|
no | Only act on specific lights. | |
yes | The number of times to run this flow (0 to run forever). | |
yes | The action to take after the flow stops. Can be ‘recover’, ‘stay’, ‘off’. Default ‘recover’ | |
no | Array of transitions. See . |
Service yeelight.set_auto_delay_off_scene
Turns the light on to the specified brightness and sets a timer to turn it back off after the given number of minutes. If the light is off, it will be turned on.
Service data attribute | Optional | Description |
---|---|---|
no | Only act on specific lights. | |
no | The minutes to wait before automatically turning the light off. | |
no | The brightness value to set (1-100). |