Skip to content
Home Assistant TestFlight
Sensors

SunLogin integration

cx3Y/sunlogin · vv3.0.8

HACSCloud polling

向日葵设备接入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.

EntityShows up asNote
switchSwitch or outlet
sensorSensor (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
DeviceIn Home AssistantIn Apple HomeWhat they saidSource
SunLogin P1Pro V3 power stripWorks CloudUnavailable after HA update until DNS injection turned off
Saved 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)WorksWorks in Home
Bridges to HomeKit as a power strip
Three switch entities
Saved copy
前几天添加了小米的集成,空气净化器模式用的插座,里面有三个开关,像智能插座做这样应该更好看一些(也支持拆分使用,但我编组不好操作单个了)

Excerpt saved from GitHub on 2026-10-23.

Issue #11 · 2024-12
SunLogin C2-BLE smart plugPartly works LocalIntermittently unavailable on latest plugin; 3.0.4 worked
Saved copy
向日葵C2-BLE回退插件到3.0.4可用,最新版本插件插座在HA中是不可用状态

Excerpt saved from GitHub on 2026-10-23.

Issue #20 · 2025-05
SunLogin P1Pro smart plugPartly works CloudIP add fails on newer firmware that closes port 6767
Saved 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 stars87
Latest versionv3.0.8 (2025-09-14)
Set up in the UIYes
Maintainers@cx3Y
LicenseApache-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.

ForkStarsLast pushDescription
Gaimoydev/sunlogin Newer code★ 12026-09-02向日葵设备接入HomeAssistant
FarEastSea/sunlogin Newer code★ 02026-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.