About
SunLogin integration connects SunLogin smart plug devices to Home Assistant through the vendor's cloud. It adds sensors for power, current, voltage and electricity use over several periods, plus power readings by time slot. It also adds switches for the relays, the LED, a default switch and a remote switch. Setup runs in the UI and asks for a local IP address, plus either a username with a password or a username with a verification code. Options cover adding, editing and deleting devices, and several update intervals. Further options include a DNS injector with its own server and interval, and a proxy.
Automatic summary of the README and code of cx3Y/sunlogin. Something wrong, or are you the maintainer and want your own text here? Get in touch
Supports
Uses the vendor's cloud Needs an internet connection and an account with the vendor.
From the Marketplace Installed through the Marketplace, formerly HACS.
Provides
- Switches
- Sensors
Setting it up
Install it from the Marketplace and restart Home Assistant, then add it under Settings, Devices and services.
SunLogin Configuration
- Username
- Password
Local Configuration
- IP address
SunLogin Configuration
- Username
- Verification Code
Add subswitch
- ID
- Name
- Friendly name
- Current
- Current Consumption
- Voltage
- Add another switch
After setup
- Add a new device
- Edit a device
- Delete a device
- Reconfigure Cloud API account
- Set remote update interval
- Set local update interval
- Set power consumption update interval
- Set configuration update interval
- Set token update interval
- Enable devices update
- Set devices update interval
- Enable DNS injector
- Set DNS server
- Set DNS update interval
- Enable proxy
Texts from the code of cx3Y/sunlogin.
Entities
- SensorsPower, Current, Voltage, Electricity(hour), Electricity(day), Electricity(week), Electricity(mounth), Electricity(last month), Power(slot0), Power(slot1), Power(slot2), Power(slot3), and 52 more
- SwitchesLed, Default, Relay0, Relay1, Relay2, Relay3, Relay4, Relay5, Relay6, Relay7, Remote
Shows in Vulpo
Quick Toggle card, Chart card, Apple Watch, Control Center.Information
- Installs
- 93 sharing analytics
- GitHub stars
- 88
- Connection
- Uses the vendor's cloud
- Upkeep
- No update in 6 to 18 months
- Version
- v3.0.8,
- Kind
- Marketplace integration
- Needs
- Needs the Marketplace (HACS on 2026.10 and older)
- Domain
sunlogin- Source
- github.com/cx3Y/sunlogin
- Issues
- Report an issue











