SunLogin integration
cx3Y/sunlogin · vv3.0.8
向日葵设备接入HomeAssistant
In Apple Home through HomeKit Bridge
What HomeKit Bridge makes of each kind of entity this integration creates, read from its source code. A device only gets the ones that apply to it.
| Entity | Shows up as | Note |
|---|---|---|
switch | Switch or outlet | |
sensor | Sensor (temperature, humidity, air quality…) |
1 report below say how a device from this integration behaves in the Home app.
What people report
Supports SunLogin (Sunlogin) smart plugs and strips; newer P1Pro firmware closes the LAN port, and V3 plugs may need DNS injection off.
- Works2
- Partly works2
| Device | In Home Assistant | In Apple Home | What they said | Source |
|---|---|---|---|---|
| SunLogin P1Pro V3 power strip | Works Cloud | Unavailable after HA update until DNS injection turned offSaved copy智能插线板P1Pro-V3 Z240 不再可用 固件:0.0.0 安装了HASS 2月最新的更新,就变成这样了 早知道不更新呢 Excerpt saved from GitHub on 2026-10-23. | Issue #17 · 2025-02 | |
| SunLogin power strip (Xiaomi-style three switches) | Works | Works in Home Bridges to HomeKit as a power strip | Three switch entitiesSaved copy前几天添加了小米的集成,空气净化器模式用的插座,里面有三个开关,像智能插座做这样应该更好看一些(也支持拆分使用,但我编组不好操作单个了) Excerpt saved from GitHub on 2026-10-23. | Issue #11 · 2024-12 |
| SunLogin C2-BLE smart plug | Partly works Local | Intermittently unavailable on latest plugin; 3.0.4 workedSaved copy向日葵C2-BLE回退插件到3.0.4可用,最新版本插件插座在HA中是不可用状态 Excerpt saved from GitHub on 2026-10-23. | Issue #20 · 2025-05 | |
| SunLogin P1Pro smart plug | Partly works Cloud | IP add fails on newer firmware that closes port 6767Saved copy使用IP地址添加P1Pro提示Unknown error occurred 日志记录器: aiohttp.server 来源: /usr/local/lib/python3.13/site-packages/aiohttp/web_protocol.py:481 首次出现: 08:57:31 (3 次出现) 上次记录: 09:05:24 Error handling request from 127.0.0.1 Traceback (most recent call last): File "/usr/local/lib/python3.13/site-packages/urllib3/connection.py", line 198, in _new_conn sock = connection.create_connection( (self._dns_host, self.port), ... ... socket_options=self.socket_options, ) File "/usr/local/lib/python3.13/site-packages/urllib3/util/connection.py", line 85, in create_connection raise err File … Excerpt saved from GitHub on 2026-10-23. | Issue #29 · 2025-12 |
Gathered from GitHub issues, pull requests, discussions and docs, and from r/homeassistant. These are individual reports, so check the linked thread and the date before you buy.
How it connects
Cloud polling
Goes through the maker’s cloud, asking it for updates every so often. Needs the internet and an account.
Details
| Installs (analytics) | 91 (0.01%) |
|---|---|
| GitHub stars | 87 |
| Latest version | v3.0.8 (2025-09-14) |
| Set up in the UI | Yes |
| Maintainers | @cx3Y |
| License | Apache-2.0 |
Notable forks
Forks with stars, or with code pushed at least 90 days after the original’s last push. Useful when the original goes quiet.
| Fork | Stars | Last push | Description |
|---|---|---|---|
| Gaimoydev/sunlogin Newer code | ★ 1 | 2026-09-02 | 向日葵设备接入HomeAssistant |
| FarEastSea/sunlogin Newer code | ★ 0 | 2026-08-26 | 向日葵设备接入HomeAssistant |
In ReReHome
Whatever HomeKit Bridge shares reaches Apple Home as normal HomeKit accessories behind your Home Assistant bridge, so ReReHome shows and controls them like any other.
Bridges get their own settings page listing the accessories behind them.
Sources
- Documentation: https://github.com/cx3Y/sunlogin
- Source code: https://github.com/cx3Y/sunlogin
- Issues: https://github.com/cx3Y/sunlogin/issues
- HACS: https://hacs.xyz