{"id":15641776,"url":"https://github.com/syssi/philipslight","last_synced_at":"2025-04-07T05:16:14.554Z","repository":{"id":23955561,"uuid":"100234318","full_name":"syssi/philipslight","owner":"syssi","description":"Xiaomi Philips Lights integration for Home Assistant","archived":false,"fork":false,"pushed_at":"2025-01-05T18:50:24.000Z","size":138,"stargazers_count":73,"open_issues_count":20,"forks_count":19,"subscribers_count":7,"default_branch":"develop","last_synced_at":"2025-03-31T04:07:09.214Z","etag":null,"topics":["custom-component","hacktoberfest","home-assistant","light","miio","miio-protocol","xiaomi","xiaomi-philips-lights"],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/syssi.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2017-08-14T06:13:30.000Z","updated_at":"2025-01-05T18:50:24.000Z","dependencies_parsed_at":"2025-01-15T06:07:46.474Z","dependency_job_id":"93d52c23-3f76-4a3a-b975-420800e5e8d9","html_url":"https://github.com/syssi/philipslight","commit_stats":{"total_commits":162,"total_committers":6,"mean_commits":27.0,"dds":"0.22839506172839508","last_synced_commit":"717e055b84e00327924e0e19302fe2b6bab865a9"},"previous_names":[],"tags_count":22,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/syssi%2Fphilipslight","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/syssi%2Fphilipslight/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/syssi%2Fphilipslight/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/syssi%2Fphilipslight/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/syssi","download_url":"https://codeload.github.com/syssi/philipslight/tar.gz/refs/heads/develop","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247595335,"owners_count":20963943,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["custom-component","hacktoberfest","home-assistant","light","miio","miio-protocol","xiaomi","xiaomi-philips-lights"],"created_at":"2024-10-03T11:45:06.656Z","updated_at":"2025-04-07T05:16:14.459Z","avatar_url":"https://github.com/syssi.png","language":"Python","funding_links":["https://www.buymeacoffee.com/syssi"],"categories":[],"sub_categories":[],"readme":"# Xiaomi Philips Lights\n\n![GitHub actions](https://github.com/syssi/philipslight/actions/workflows/ci.yaml/badge.svg)\n![GitHub stars](https://img.shields.io/github/stars/syssi/philipslight)\n![GitHub forks](https://img.shields.io/github/forks/syssi/philipslight)\n![GitHub watchers](https://img.shields.io/github/watchers/syssi/philipslight)\n[![\"Buy Me A Coffee\"](https://img.shields.io/badge/buy%20me%20a%20coffee-donate-yellow.svg)](https://www.buymeacoffee.com/syssi)\n\nThe component allows you to control the state of your Xiaomi Philips LED Ball Lamp, Xiaomi Philips LED Ceiling Lamp and Xiaomi Philips Eyecare Smart Lamp 2.\n\nThanks to [Rytilahti](https://github.com/rytilahti/python-mirobo) for all the work.\n\nPlease follow the instructions on [Retrieving the Access Token](https://www.home-assistant.io/integrations/xiaomi_miio/#xiaomi-cloud-tokens-extractor) to get the API token to use in the configuration.yaml file.\n\n## Supported devices\n\n| Name                             | Model                   | Model no.   | Specs |\n| -------------------------------- | ----------------------- | ----------- | ----- |\n| Philips Smart LED Ball           | `philips.light.bulb`      | 9290012800  | E27, 450lm, 3000K-5700K, 6.5W (12x0.37W / LED)  |\n| Philips Smart LED Bulb (Dimmable)  | `philips.light.hbulb`   | 9290020093  | E27, 806lm, 2700K, 9W  |\n| Philips Smart LED Ceiling Lamp   | `philips.light.ceiling`   |             | |\n| Philips EyeCare Smart Lamp       | `philips.light.sread1`    |             | ESP8266 version  |\n| Philips EyeCare Smart Lamp Gen2  | `philips.light.sread2`    |             | ESP32 version  |\n| Philips Moonlight Bedside Lamp   | `philips.light.moonlight` |             | |\n| Philips LED Ceiling Light 620mm  | `philips.light.zyceiling` |             | |\n| Philips Zhirui Smart LED Bulb E14 Candle Lamp  | `philips.light.candle`    | 9290018615  | **scrub**, E14, 200lm, 3000K-5700K, 4x0.25W CW + 4x0.25W WW / LED  |\n| Philips Zhirui Smart LED Bulb E14 Candle Lamp  | `philips.light.candle2`   |             | **crystal**, E14, 200lm, 3000K-5700K, 4x0.25W CW + 4x0.25W WW / LED  |\n| Philips Zhirui Desk Lamp         | `philips.light.mono1`     |             | |\n| Philips Zhirui Downlight         | `philips.light.downlight` |             | |\n\n## Features\n\n### Philips LED Ball Lamp\n\n* Power (on, off)\n* Brightness\n* Color temperature (175...333 mireds)\n* Scene (1, 2, 3, 4)\n* Delayed turn off (Resolution in seconds)\n* Attributes\n  - model\n  - scene\n  - delayed_turn_off\n\n### Philips LED Ceiling Lamp\n\n* Power (on, off)\n* Brightness\n* Color temperature (370-175 mireds / 2700K-5700K)\n* Scene (1, 2, 3, 4)\n* Night light mode (on, off)\n* Delayed turn off (Resolution in seconds)\n* Attributes\n  - model\n  - scene\n  - delayed_turn_off\n  - night_light_mode\n  - automatic_color_temperature\n\n### Philips Eyecare Smart Lamp 2\n\n* Eyecare light (on, off)\n* Ambient light (on, off)\n* Brightness (of each light)\n* Scene (1, 2, 3, 4)\n* Night light mode (on, off)\n* Delayed turn off (Resolution in seconds)\n* Eye fatigue reminder / notification (on, off)\n* Eyecare mode (on, off)\n* Attributes\n  - model\n  - scene\n  - delayed_turn_off\n  - night_light_mode\n  - reminder\n  - eyecare_mode\n\n### Philips Moonlight Bedside Lamp\n\n* Power (on, off)\n* Brightness\n* Color\n* Color temperature (588-153 mireds / 1700K-6500K)\n* Scene (1, 2, 3, 4)\n* Attributes\n  - model\n  - scene\n  - sleep_assistant\n  - sleep_off_time\n  - total_assistant_sleep_time\n  - brand_sleep\n  - brand\n\n## Install\n\nYou can install this custom component by adding this repository ([https://github.com/syssi/philipslight](https://github.com/syssi/philipslight/)) to [HACS](https://hacs.xyz/) in the settings menu of HACS first. You will find the custom component in the integration menu afterwards, look for 'Xiaomi Philips Lights Integration'. Alternatively, you can install it manually by copying the custom_component folder to your Home Assistant configuration folder.\n\n## Setup\n\n```\n# configuration.yaml\n\nlight:\n  - platform: xiaomi_miio_philipslight\n    name: Xiaomi Philips Smart LED Ball\n    host: 192.168.130.67\n    token: da548d86f55996413d82eea94279d2ff\n    model: philips.light.bulb\n  - platform: xiaomi_miio_philipslight\n    name: Xiaomi Philips Smart LED Ceiling Lamp\n    host: 192.168.130.68\n    token: 439e1a89ee5648d20482afa7839ef2ee\n    model: philips.light.ceiling\n  - platform: xiaomi_miio_philipslight\n    name: Xiaomi Philips EyeCare Smart Lamp 2\n    host: 192.168.130.69\n    token: e8b19da37825a3056e84c522f05efce0\n    model: philips.light.sread1\n```\n\nConfiguration variables:\n- **host** (*Required*): The IP of your light.\n- **token** (*Required*): The API token of your light.\n- **name** (*Optional*): The name of your light.\n- **model** (*Optional*): The model of your light. Valid values are `philips.light.sread1`, `philips.light.ceiling`, `philips.light.zyceiling`, `philips.light.moonlight`, `philips.light.bulb`, `philips.light.candle`, `philips.light.candle2`, `philips.light.mono1` and `philips.light.downlight`. This setting can be used to bypass the device model detection and is recommended if your device isn't always available.\n\n## Debugging\n\nIf the custom component doesn't work out of the box for your device please update your configuration to increase the log level:\n\n```\nlogger:\n  default: warn\n  logs:\n    custom_components.xiaomi_miio_philipslight: debug\n    miio: debug\n```\n\n## Platform services\n\n#### Service `xiaomi_miio_philipslight.light_set_scene`\n\nSet one of the 4 available fixed scenes.\n\n| Service data attribute    | Optional | Description                                           |\n|---------------------------|----------|-------------------------------------------------------|\n| `entity_id`               |      yes | Only act on a specific light. Else targets all.       |\n| `scene`                   |       no | Scene, between 1 and 4.                               |\n\n#### Service `xiaomi_miio_philipslight.light_set_delayed_turn_off`\n\nDelayed turn off.\n\n| Service data attribute    | Optional | Description                                                                      |\n|---------------------------|----------|----------------------------------------------------------------------------------|\n| `entity_id`               |      yes | Only act on a specific light. Else targets all.                                  |\n| `time_period`             |       no | Time period for the delayed turn off. Valid values are 5, '0:05', {'minutes': 5} |\n\n#### Service `xiaomi_miio_philipslight.light_reminder_on` (Eyecare Smart Lamp 2 only)\n\nEnable the eye fatigue reminder/notification.\n\n| Service data attribute    | Optional | Description                                           |\n|---------------------------|----------|-------------------------------------------------------|\n| `entity_id`               |      yes | Only act on a specific light. Else targets all.       |\n\n#### Service `xiaomi_miio_philipslight.light_reminder_off` (Eyecare Smart Lamp 2 only)\n\nDisable the eye fatigue reminder/notification.\n\n| Service data attribute    | Optional | Description                                           |\n|---------------------------|----------|-------------------------------------------------------|\n| `entity_id`               |      yes | Only act on a specific light. Else targets all.       |\n\n#### Service `xiaomi_miio_philipslight.light_night_light_mode_on` (Eyecare Smart Lamp 2 only)\n\nTurn the smart night light mode on.\n\n| Service data attribute    | Optional | Description                                           |\n|---------------------------|----------|-------------------------------------------------------|\n| `entity_id`               |      yes | Only act on a specific light. Else targets all.       |\n\n#### Service `xiaomi_miio_philipslight.light_night_light_mode_off` (Eyecare Smart Lamp 2 only)\n\nTurn the smart night light mode off.\n\n| Service data attribute    | Optional | Description                                           |\n|---------------------------|----------|-------------------------------------------------------|\n| `entity_id`               |      yes | Only act on a specific light. Else targets all.       |\n\n#### Service `xiaomi_miio_philipslight.light_eyecare_mode_on` (Eyecare Smart Lamp 2 only)\n\nTurn the eyecare mode on.\n\n| Service data attribute    | Optional | Description                                           |\n|---------------------------|----------|-------------------------------------------------------|\n| `entity_id`               |      yes | Only act on a specific light. Else targets all.       |\n\n#### Service `xiaomi_miio_philipslight.light_eyecare_mode_off` (Eyecare Smart Lamp 2 only)\n\nTurn the eyecare mode off.\n\n| Service data attribute    | Optional | Description                                           |\n|---------------------------|----------|-------------------------------------------------------|\n| `entity_id`               |      yes | Only act on a specific light. Else targets all.       |\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsyssi%2Fphilipslight","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsyssi%2Fphilipslight","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsyssi%2Fphilipslight/lists"}