This custom component allows you to retrieve the following information related to the SIM card of the ho-mobile
operator:
- remaining GB (internet/data);
- total GB provided by the plan;
- next renewal date.
- add
ho-mobile
as a custom repository - in HACS, search for
ho-mobile
and install the latest release - in Home Assistant, add the
ho-mobile
integration, insert theusername
,password
and the simnumber
and follow the instructions
- This custom component allows you to retrieve the following information related to the SIM card of the
ho-mobile
operator:- remaining GB (internet/data);
- total GB provided by the plan;
- next renewal date.
- The case of 2 or more SIM cards (phone numbers) associated with the same account (password) is supported.
- The case of 2 or more accounts is not supported.
- Copy the
ho_mobile_account
folder into your custom_components folder. - Restart Home Assistant.
- After restarting Home Assistant, add the following lines to the
configuration.yaml
file (and save):
ho_mobile_account:
phone_numbers: !secret ho_mobile_account_phone_numbers
password: !secret ho_mobile_account_password
- Go to the
secrets.yaml
file and add the following lines (and save):
ho_mobile_account_password: "inserire-qui-la-password"
ho_mobile_account_phone_numbers:
- "inserire-qui-il-numero-di-telefono-#1"
- "inserire-qui-il-numero-di-telefono-#2"
- Restart Home Assistant.
- The following entity triples should appear (one triple for each phone number):
ho_mobile_account.<phone-number>_internet
> Remaining GBho_mobile_account.<phone-number>_internet_renewal
> Next renewal dateho_mobile_account.<phone-number>_internet_threshold
> Total GB of the plan
- By default, data is updated every 15 minutes.
- You can customize the data update interval by configuring the scan_interval parameter, expressed in seconds:
ho_mobile_account:
phone_numbers: !secret ho_mobile_account_phone_numbers
password: !secret ho_mobile_account_password
scan_interval: 900