-
Notifications
You must be signed in to change notification settings - Fork 1
Installation
How to install the SmartGhar HACS integration on Home Assistant. The whole flow happens locally on your home network — no SmartGhar account, no cloud anywhere in the HA path.
- A SmartGhar Hub (TankSync) on firmware rx-v2.7.0 or newer, claimed via the SmartGhar PWA, and connected to your home Wi-Fi
- Home Assistant 2024.1.0 or newer (any flavor: HAOS, Container, Supervised, Core)
- HACS installed — see HACS prerequisites if you haven't done that
- HA and the hub on the same network — see Multi-Hub-Setup if they're separated by VLAN
Until the integration is submitted to HACS default repos, install via custom repository:
- HACS → Integrations → ⋮ (top right) → Custom repositories
- Paste the URL:
https://github.com/Techposts/smartghar-homeassistant - Category: Integration → click Add
- Search HACS for "SmartGhar" → click the card → Download
Settings → System → Restart Home Assistant
This is required — HA reads each integration's manifest.json zeroconf list only at startup, so the auto-discovery filter for _smartghar._tcp doesn't activate until you restart.
Two paths.
After the restart, your Settings → Devices & Services page should show a new "Discovered" card at the top:
🔔 SmartGhar Hub discovered — Configure
Click Configure → Submit. Done.
If discovery doesn't fire, see Troubleshooting#auto-discovery-doesnt-fire — the most common reason is HA running in a Docker container with bridge networking that blocks multicast. Use manual entry instead.
Settings → Devices & Services → Add Integration → SmartGhar
Enter the hub's IP address (find it in the hub's local web UI System tab, your router's DHCP table, or by running dns-sd -B _smartghar._tcp on a Mac on the same LAN).
Leave Local API token blank unless you've enabled token auth on the hub web UI.
Settings → Devices & Services → SmartGhar → click your hub. You should see:
- One device card for the hub (manufacturer: SmartGhar, model: TankSync Hub, firmware version)
- One sub-device per attached tank, linked to the hub via HA's
via_device - Sensors for level, voltage, LoRa signal, connection state on each tank
- Editable entities: tank name, capacity, LED brightness
- Buttons: Identify Hub, Identify Tank, Restart Hub, Check for firmware updates
- Update entity in HA's sidebar Updates section
Tank readings populate after the next TX wake (~3 minutes).
Each hub auto-discovers independently. After adding one, the second hub will appear as a separate "Discovered" card. Add each one — they show up as separate device cards under SmartGhar.
See Multi-Hub-Setup for naming conventions, area assignment, and dashboard examples.
DHCP renewals are handled automatically. The integration stores the hub's IP, and when the hub re-broadcasts via mDNS (typically on boot or WiFi reconnect), HA's zeroconf integration updates the stored IP transparently — usually within an hour without any action from you.
HACS → ⋮ → Reload data ← forces an immediate version-check
HACS → SmartGhar card → Update available → Install
Settings → System → Restart Home Assistant
You should see the new version in the integration's device card after restart. The CHANGELOG describes what changed.
HACS → SmartGhar → ⋮ → Remove
Settings → Devices & Services → SmartGhar → ⋮ → Delete (if entry persists)
Settings → System → Restart Home Assistant
Uninstalling does not affect the hub itself or the SmartGhar PWA; both continue to work normally.
Built by SmartGhar · GitHub · Discussions · MIT licensed (code) / Apache-2.0 (protocol)