Home Assistant template for Energy consumption based on TNB (Tenaga Nasional Berhad) Malaysia
This template only supports for single phase user. Will add for 3 phase soon inshaAllah
- Energy Sensor Integration (via CT Clamp, Smart RCCB and others) -> refer here
(Highly recommended - Shelly EM or 3EM with CT Clamp)
- Copy all files into your Home Assistant directory and paste all files into
\config
. - Enable package in configuration.yaml by adding the following line into the config file
homeassistant:
packages: !include_dir_named HAMY/
- Restart Home Assistant to take effect.
- Create new dashboard (lovelace) and copy the templates lovelace-ui-1phase.yaml
- Define energy source
- Bro Ishak for initial template
- Bro Hannan
- HomeAssistantMalaysia
This template uses TNB bill calculation method to calculate energy consumption only, and does not include other charges such as 1% late payment, 1.6% Kumpulan Wang Tenaga Boleh Baharu (RE Fund), Power Factor surcharge, Connected Load Charge (CLC) penalty etc.
More info from TNB here