https://github.com/zubir2k/homeassistanttnb
⚡ Home Assistant template for Energy consumption based on TNB (Tenaga Nasional Berhad) Malaysia
https://github.com/zubir2k/homeassistanttnb
energy-monitor home-assistant home-assistant-config home-automation homeassistant malaysia mytnb template tnb yaml
Last synced: 3 months ago
JSON representation
⚡ Home Assistant template for Energy consumption based on TNB (Tenaga Nasional Berhad) Malaysia
- Host: GitHub
- URL: https://github.com/zubir2k/homeassistanttnb
- Owner: zubir2k
- License: unlicense
- Created: 2023-02-08T14:12:15.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2025-02-03T17:08:46.000Z (8 months ago)
- Last Synced: 2025-04-14T16:55:34.872Z (6 months ago)
- Topics: energy-monitor, home-assistant, home-assistant-config, home-automation, homeassistant, malaysia, mytnb, template, tnb, yaml
- Homepage:
- Size: 16.6 KB
- Stars: 13
- Watchers: 1
- Forks: 2
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Funding: .github/FUNDING.yml
- License: LICENSE
Awesome Lists containing this project
README
# HomeAssistantTNB 
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## Requirements
1. Energy Sensor Integration (via CT Clamp, Smart RCCB and others) -> refer [here](https://www.home-assistant.io/docs/energy/electricity-grid/) \
(Highly recommended - Shelly EM or 3EM with CT Clamp)- Shelly EM - [link](https://s.lazada.com.my/s.U1C72)
- Shelly 3EM - [link](https://s.lazada.com.my/s.U1wAX)## Installation
1. Copy all files into your Home Assistant directory and paste all files into `\config`.
2. Enable package in [configuration.yaml](configuration.yaml) by adding the following line into the config file```yaml
homeassistant:
packages: !include_dir_named HAMY/
```3. Restart Home Assistant to take effect.
4. Create new dashboard (lovelace) and copy the templates [lovelace-ui-1phase.yaml](lovelace-ui-1phase.yaml)
5. Define energy source
## Visual
### Main Dashboard
### Daily Notification
### Home Assistant Energy Dashboard
## Special Thanks
- [Bro Ishak](https://github.com/ishakmuhamad) for initial template
- [Bro Hannan](https://www.lazada.com.my/shop/nh-smart-home)
- [HomeAssistantMalaysia](https://www.facebook.com/groups/homeassistantmalaysia)## Disclaimer
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](https://www.mytnb.com.my/residential/understand-your-bill/bill-calculator)