mirror of
https://github.com/home-assistant/home-assistant.io.git
synced 2025-07-23 17:27:19 +00:00
Xiaomi MiIO light: Philips Eyecare Smart Lamp 2 integration (#4825)
* Xiaomi Philips Eyecare Smart Lamp 2 features added. * New device added. * Marker removed
This commit is contained in:
parent
a7e701dc92
commit
cdbdfea05d
@ -13,9 +13,54 @@ ha_version: 0.53
|
||||
ha_iot_class: "Local Polling"
|
||||
---
|
||||
|
||||
The `xiaomi_miio` platform allows you to control the state of your Xiaomi Philips LED Ball Lamp, Xiaomi Philips LED Ceiling Lamp and Xiaomi Philips Eyecare Lamp 2.
|
||||
The `xiaomi_miio` platform allows you to control the state of your Xiaomi Philips LED Ball Lamp, Xiaomi Philips Zhirui LED Bulb E14 Candle Lamp, Xiaomi Philips LED Ceiling Lamp and Xiaomi Philips Eyecare Lamp 2.
|
||||
|
||||
Currently, the supported features are `on`, `off`, `set_cct` (colortemp) , `set_bright` (brightness).
|
||||
## Features
|
||||
|
||||
### Philips LED Ball Lamp and Philips Zhirui LED Candle Lamp
|
||||
|
||||
* Power (on, off)
|
||||
* Brightness
|
||||
* Color temperature (175...333 mireds)
|
||||
* Scene (1, 2, 3, 4)
|
||||
* Delayed turn off (Resolution in seconds)
|
||||
* Attributes
|
||||
- model
|
||||
- scene
|
||||
- delayed_turn_off
|
||||
|
||||
### Philips LED Ceiling Lamp
|
||||
|
||||
* Power (on, off)
|
||||
* Brightness
|
||||
* Color temperature (175...370 mireds)
|
||||
* Scene (1, 2, 3, 4)
|
||||
* Night light mode (on, off)
|
||||
* Delayed turn off (Resolution in seconds)
|
||||
* Attributes
|
||||
- model
|
||||
- scene
|
||||
- delayed_turn_off
|
||||
- night_light_mode
|
||||
- automatic_color_temperature
|
||||
|
||||
### Philips Eyecare Smart Lamp 2
|
||||
|
||||
* Eyecare light (on, off)
|
||||
* Ambient light (on, off)
|
||||
* Brightness (of each light)
|
||||
* Scene (1, 2, 3, 4)
|
||||
* Night light mode (on, off)
|
||||
* Delayed turn off (Resolution in seconds)
|
||||
* Eye fatigue reminder / notification (on, off)
|
||||
* Eyecare mode (on, off)
|
||||
* Attributes
|
||||
- model
|
||||
- scene
|
||||
- delayed_turn_off
|
||||
- night_light_mode
|
||||
- reminder
|
||||
- eyecare_mode
|
||||
|
||||
Please follow the instructions on [Retrieving the Access Token](/components/vacuum.xiaomi_miio/#retrieving-the-access-token) to get the API token to use in the `configuration.yaml` file.
|
||||
|
||||
@ -35,7 +80,7 @@ Configuration variables:
|
||||
- **host** (*Required*): The IP of your light.
|
||||
- **token** (*Required*): The API token of your light.
|
||||
- **name** (*Optional*): The name of your light.
|
||||
- **model** (*Optional*): The model of your light. Valid values are `philips.light.bulb`, `philips.light.sread1`, `philips.light.ceiling` and `philips.light.zyceiling`. This setting can be used to bypass the device model detection and is recommended if your device isn't always available.
|
||||
- **model** (*Optional*): The model of your light. Valid values are `philips.light.bulb`, `philips.light.candle2`, `philips.light.sread1`, `philips.light.ceiling` and `philips.light.zyceiling`. This setting can be used to bypass the device model detection and is recommended if your device isn't always available.
|
||||
|
||||
{% configuration %}
|
||||
host:
|
||||
@ -76,3 +121,51 @@ Delayed turn off.
|
||||
|---------------------------|----------|-------------------------------------------------------|
|
||||
| `entity_id` | yes | Only act on a specific light. Else targets all. |
|
||||
| `time_period` | no | Time period for the delayed turn off. |
|
||||
|
||||
### {% linkable_title Service `light.xiaomi_miio_reminder_on` %} (Eyecare Smart Lamp 2 only)
|
||||
|
||||
Enable the eye fatigue reminder/notification.
|
||||
|
||||
| Service data attribute | Optional | Description |
|
||||
|---------------------------|----------|-------------------------------------------------------|
|
||||
| `entity_id` | yes | Only act on a specific light. Else targets all. |
|
||||
|
||||
### {% linkable_title Service `light.xiaomi_miio_reminder_off` %} (Eyecare Smart Lamp 2 only)
|
||||
|
||||
Disable the eye fatigue reminder/notification.
|
||||
|
||||
| Service data attribute | Optional | Description |
|
||||
|---------------------------|----------|-------------------------------------------------------|
|
||||
| `entity_id` | yes | Only act on a specific light. Else targets all. |
|
||||
|
||||
### {% linkable_title Service `light.xiaomi_miio_night_light_mode_on` %} (Eyecare Smart Lamp 2 only)
|
||||
|
||||
Turn the smart night light mode on.
|
||||
|
||||
| Service data attribute | Optional | Description |
|
||||
|---------------------------|----------|-------------------------------------------------------|
|
||||
| `entity_id` | yes | Only act on a specific light. Else targets all. |
|
||||
|
||||
### {% linkable_title Service `light.xiaomi_miio_night_light_mode_off` %} (Eyecare Smart Lamp 2 only)
|
||||
|
||||
Turn the smart night light mode off.
|
||||
|
||||
| Service data attribute | Optional | Description |
|
||||
|---------------------------|----------|-------------------------------------------------------|
|
||||
| `entity_id` | yes | Only act on a specific light. Else targets all. |
|
||||
|
||||
### {% linkable_title Service `light.xiaomi_miio_eyecare_mode_on` %} (Eyecare Smart Lamp 2 only)
|
||||
|
||||
Turn the eyecare mode on.
|
||||
|
||||
| Service data attribute | Optional | Description |
|
||||
|---------------------------|----------|-------------------------------------------------------|
|
||||
| `entity_id` | yes | Only act on a specific light. Else targets all. |
|
||||
|
||||
### {% linkable_title Service `light.xiaomi_miio_eyecare_mode_off` %} (Eyecare Smart Lamp 2 only)
|
||||
|
||||
Turn the eyecare mode off.
|
||||
|
||||
| Service data attribute | Optional | Description |
|
||||
|---------------------------|----------|-------------------------------------------------------|
|
||||
| `entity_id` | yes | Only act on a specific light. Else targets all. |
|
||||
|
Loading…
x
Reference in New Issue
Block a user