Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- ## Testing - Sensor on monthly billing from MyTNB Website (WIP)
- ## Replace the following to your credentials:
- ## 1) NOMBOR_ACC_TNB
- ## 2) USERID_MYTNB
- ## 3) PASSWORD_MYTNB
- - platform: rest
- name: My TNB
- username: USERID_MYTNB
- password: PASSWORD_MYTNB
- authentication: basic
- headers:
- User-Agent: Mozilla/5.0
- Content-Type: application/json
- resource: https://myaccount.mytnb.com.my/AccountManagement/ViewAccountProfile/RetrieveTabData?tabID=3&accountNo=NOMBOR_ACC_TNB
- scan_interval: 300
- json_attributes_path: $.records[:1]
- json_attributes:
- - BillingDate
- - Amount
- value_template: "{{ value_json[1].EnergyConsumption }}"
- unit_of_measurement: "kWh"
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement