This integration creates sensors for each line and displays the remaining and used data usage for the month. If you have a Mint Mobile family, it will also pull in the data usage for each line. The sensor name includes additional attributes about the line.
WARNING: Running Multiple Clients (Token Invalidation)
Mint Mobile's API rotates refresh tokens and only allows one active session per account. Running another automated client (like the TypeScript MQTT bridge) or logging into the official mobile app will invalidate the integration's token.
When this happens, Home Assistant logs a
401 Unauthorizedwarning and automatically recovers via a full login. To avoid warnings, do not run other automated API clients.
- Number of months purchased for plan
- Days remaining in month (The number of days left in the data plan month)
- Days remaining for plan (The number of days left that you have purchased)
- Phone number
- Line name
- Last updated
During setup you can specify how often the integration checks Mint Mobile for new data. The value is in hours and defaults to 12. Values less than 1 hour are not allowed.
If you want to have the following attributes as additional sensors, during the setup process or under the integration options menu check 'Display Attributes As Additional Sensors'.
- Number of months purchased for plan
- Days remaining in month (The number of days left in the data plan month)
- Days remaining for plan (The number of days left that you have purchased)
Enjoying my integration? Help me out and buy me a ☕ for $3!
HACS (Recommended)
- Have HACS installed, this will allow you to easily update
- Add
https://github.com/ryanmac8/HA-Mint-Mobileas a custom repository and Type: Integration - Click install under "Mint Mobile", restart your instance.
- Download this repository as a ZIP (green button, top right) and unzip the archive
- Copy the
mintmobilefolder inside thecustom_componentsfolder to the Home Assistant/<config path>/custom_components/directory- You may need to create the
custom_componentsin your Home Assistant installation folder if it does not exist - On Home Assistant (formerly Hass.io) and Home Assistant Container the final location should be
/config/custom_components/mintmobile - On Home Assistant Supervised, Home Assistant Core, and Hassbian the final location should be
/home/homeassistant/.homeassistant/custom_components/mintmobile
- You may need to create the
- Restart your instance.
