I saw there have been requests for a Smart Oil Gauge integration going back years, with the main blocker being that the official API requires a monthly subscription fee. I built one that uses your existing smartoilgauge.com account credentials instead — no API key, no subscription needed.
What it does:
Creates four sensors per tank:
Oil Level — gallons remaining
Oil Percent — fill percentage
Oil Gauge Battery — battery health (Good / Ok / Poor)
Oil Gauge Last Read — last time the sensor uploaded a reading
Updates every 60 minutes.
Install via HACS:
HACS → Integrations → three dots → Custom repositories
Add https://github.com/bergb91-coder/ha-smartoilgauge as an Integration
Thank you for building this integration - great help to those of us not yet very familiar with Home Assistant.
But I am having an issue with install. On step 2 to 3, I am getting an error when trying to add the Custom Repository:
<Integration bergb91-coder/ha-smartoilgauge> Repository structure for v1.0.0 is not compliant
So won't download. Please advise.
I just tried the Manual install instructions. It seems to have added the integration, but I am getting a "Failed to set up" error (and I am pretty sure I entered the correct user/pw):
This error originated from a custom integration.
Logger: custom_components.smartoilgauge.api
Source: custom_components/smartoilgauge/api.py:36
Integration: Smart Oil Gauge (documentation, issues)
First occurred: 10:07:10 PM (2 occurrences)
Last logged: 10:13:09 PM
i had the same issue when installing via repository: <Integration bergb91-coder/ha-smartoilgauge> Repository structure for v1.0.0 is not compliant
Then for the manual install, after adding the integration, it failed to setup. After talking with Claude, I changed the api.py, which fixed it.