I have followed the lead of a couple other HA developers to setup my TED5000 that i bought back in 2012 but forgot about it until i started integrating my home with Home Assistant (which by the way is awesome). I have two MTUs in my house and I do not know how to define them in the configuration.yaml or sensor.yaml. Below is the yaml code I currently have setup. As you can see I am cobbling this together.
In configuration I have the following:
utility_meter:
energy_daily:
source: sensor.energy_spent
cycle: daily
tariffs:
- standard
energy_monthly:
source: sensor.energy_spent
cycle: monthly
tariffs:
- standard
In sensors.yaml I have the following:
- platform: rest
resource_template: http://xxx.xxx.x.xxx/history/secondhistory.xml?MTU=0&COUNT=1&INDEX=1
name: ted5000_sec
scan_interval: 1
timeout: 1
json_attributes_path: "$.History.['SECOND']"
value_template: "200"
json_attributes:
- "POWER"
- "VOLTAGE"
- platform: template
sensors:
ted5000_power_sec:
friendly_name: Power Consumption
unit_of_measurement: W
value_template: "{{ state_attr('sensor.ted5000_sec', 'POWER') }}"
ted5000_voltage_sec:
friendly_name: Incoming Voltage
unit_of_measurement: V
value_template: "{{ state_attr('sensor.ted5000_sec', 'VOLTAGE') | multiply(0.1) }}"
- platform: integration
source: sensor.ted5000_power_sec
name: energy_spent
unit_prefix: k
round: 2
Any help someone can provide I would really appreciate it.