Home Assistant integration + Lovelace card for Genshin Impact, Honkai: Star Rail, Zenless Zone Zero, and Honkai Impact 3rd.
⚠️ Uses the unofficial HoYoLAB API. This may break if miHoYo changes their endpoints.
| Genshin Impact | Honkai: Star Rail | Zenless Zone Zero | Honkai Impact 3rd | |
|---|---|---|---|---|
| Stamina/Resin | ✅ Original Resin | ✅ Trailblaze Power | ✅ Battery Charge | ✅ Stamina |
| Recovery timer | ✅ | ✅ | ✅ | ✅ |
| Daily tasks | ✅ Commissions | ✅ Daily Training | ✅ Engagement | — |
| Weekly content | ✅ Trounce Blossom | ✅ Echo of War, Simulated/Divergent Universe, Currency Wars | ✅ Bounty, Weekly Task | ✅ Weekly Dungeon |
| Extra counters | ✅ Realm Currency, Transformer, Expeditions | ✅ Reserve Power, Assignments | ✅ VHS Store, Card Punch, Investigation, Cafe | ✅ Bounty |
- In HACS → Integrations → Add custom repository → enter this repo URL → Category: Integration
- Search HoYoverse → Install
- Restart Home Assistant
The Lovelace card is bundled with the integration — no separate frontend install needed.
Copy custom_components/hoyoverse/ into your Home Assistant config/custom_components/ directory and restart.
- Open hoyolab.com and log in
- Press F12 → Console tab
- Paste:
document.cookie - Copy the values of
ltoken_v2andltuid_v2
Settings → Devices & Services → Add Integration → HoYoverse
- Enter your
ltoken_v2andltuid_v2 - For each game you play: enter your in-game UID and select your server
Add via the Lovelace UI card picker (HoYoverse Card) or manually in YAML:
type: custom:hoyoverse-card
game: genshin # genshin | hsr | zzz | hi3| Option | Required | Description |
|---|---|---|
game |
✅ | genshin, hsr, zzz, or hi3 |
Entity IDs follow the pattern sensor.<key> (e.g. sensor.genshin_resin).
genshin_resin— Current Original Resingenshin_resin_recovery_time— Seconds until fullgenshin_commissions— Daily commissions donegenshin_commission_reward_claimed— Extra reward claimedgenshin_realm_currency— Realm currency (with recovery time)genshin_expeditions— Active expeditionsgenshin_transformer_ready— Parametric transformer statusgenshin_trounce_blossom— Trounce blossom discount remaininggenshin_stored_attendance— Stored attendance
hsr_stamina— Trailblaze Powerhsr_stamina_recovery_time— Seconds until fullhsr_reserve_stamina— Reserve powerhsr_daily_training— Daily training scorehsr_echo_of_war— Weekly Echo of War clearshsr_expeditions— Active assignmentshsr_simulated_universe— Simulated Universe scorehsr_divergent_universe— Divergent Universe scorehsr_currency_wars— Currency Wars score
zzz_battery_charge— Current batteryzzz_battery_recovery_time— Seconds until fullzzz_engagement— Daily engagement valuezzz_vhs_store— VHS store statuszzz_card_punch— Card punch statuszzz_bounty— Bounty commission countzzz_investigation_points— Investigation pointszzz_weekly_task— Weekly task pointszzz_abyss_refresh— Shiyu Defense reset timerzzz_cafe— Cafe statuszzz_member_card— Inter-Knot Membership status
hi3_stamina— Current staminahi3_stamina_recovery_time— Seconds until fullhi3_bounty— Bounty counthi3_weekly_elite_dungeon— Weekly elite dungeon clears
- Data refreshes every 15 minutes (HoYoLAB rate limit)
- Your
ltoken_v2resets if you change your password - Make sure your HoYoLAB account data is set to public in profile settings
