English | Tiếng Việt
This component utilized the simple yet powerful HTTP(S) protocol to periodically fetch the latest e-consumption data from EVN Endpoint into Home Assistant with AIOHTTP module (and a brilliant assist from BeautifulSoup for scaping useful data).
Hence, it supports installation through UI, and can easily integrate monitoring devices into HA without configuring yaml.
There are some EVN branches that require authentication to fetch the daily electric consumption data, but others do not need this field.
A qualified EVN account will consist of:
-
A username (usually your EVN Customer ID or Phone Number).
-
A password.
Note: Check the table below, if your area needed EVN Account to setup the component, please contact the corresponding support center link to get the required credentials.
Starting from the v1.1.9 version, the component has successfully provided support for the areas listed below:
EVN Branch | Vietnam Area | Is Supported | Is EVN Account Required | Support Center |
---|---|---|---|---|
EVNHCMC | Ho Chi Minh City | ☑️ | ☑️ | Link |
EVNSPC | Southern Vietnam | ☑️ | Link | |
EVNNPC | Northern Vietnam | ☑️ | Link | |
EVNHANOI | Ha Noi Capital | ☑️ | ☑️ | Link |
EVNCPC | Central Vietnam | (not yet) | ? | Link |
If your area were not yet supported, feel free to contact me, we could make it happen.
Method 1: Installation via HACS (recommended).
-
Add trvqhuy/nestup_evn custom repository to HACS.
HACS > Integrations >
Triple dots (in the upper right corner)
> Custom repositoriesEnter
trvqhuy/nestup_evn
toRepository
and chooseIntegration
fromCategory
-
Download the repository to your HA Server.
HACS > Integrations > ➕ Explore & download repositories >
EVN Data Fetcher
> Choose the latest version > Download this repository -
Reboot/restart your HA Server.
-
Voilà, your installation is completed, now you should move to Configurations section to complete.
-
Clone/download the latest release (or the repos. master branch).
-
Unzip/copy the
custom_components/nestup_evn
folder to thecustom_components
directory of your HomeAssistant installation.-
The
custom_components
directory depends on your HomeAssistant configuration directory. -
Usually, the configuration directory is within your OS Home Directory
~/homeassistant/
. -
In other words, the configuration directory of HomeAssistant is where the
configuration.yaml
file is located. -
After a correct installation, your configuration directory should look like the following.
└── ... └── configuration.yaml └── secrets.yaml └── custom_components └── nestup_evn └── __init__.py └── sensor.py └── nestup_evn.py └── ...
Note: if the
custom_components
directory does not exist, you need to create it manually. -
-
Search for
EVN Data Fetcher
in installed integrations.Settings > Devices and Services > Integrations > Add Integrations > Find
EVN Data Fetcher
-
Fulfill your
EVN Customer ID
.Requirements: the ID must meet all of the conditions below:
- Consists of exactly 13 characters.
- Starts with 'P' letter.
-
Fulfill your
EVN Credentials
(Username & Password). -
Choose your
Billing Start Date
. Note: this is the montly billing date of your electric bill from EVN. -
Congrats, everything has been done, you can use the component now.
This feature has not been released yet, this is a TO-DO task, to which the maintainer himself won't do.
However, the configuration seems not neccessary to adjust, fixed configurations are listed below.
-
EVN Retail Electricity Tariff:
The reference would always be
Household Customer Group
although this variable may varies due to usage purpose.Visit this link for more informations about electricity price.
-
Default Polling Interval:
30 minutes
is the default interval for fetching new data from EVN, which is reasonable break, otherwise it would take up resources and overwhelm the server.
If your EVN Area were not supported by this integration, contact me and together we could make it happen for the community.
Last word, the maintainer wants to thank himself for making this project happen.