mqtt: sensor: - unique_id: view_road_power_now name: "Power Now" state_topic: "viewroad-status/energy/PowerTotals" unit_of_measurement: "kW" - unique_id: view_road_power_now_red name: "Power Now (Red)" state_topic: "tele/tasmo-wemosd1-7280-powermon-1/SENSOR" unit_of_measurement: "kW" value_template: "{{ value_json.ENERGY.Power[0] }}" - unique_id: view_road_power_now_white name: "Power Now (White)" state_topic: "tele/tasmo-wemosd1-7280-powermon-1/SENSOR" unit_of_measurement: "kW" value_template: "{{ value_json.ENERGY.Power[1] }}" - unique_id: view_road_power_now_blue name: "Power Now (Blue)" state_topic: "tele/tasmo-wemosd1-7280-powermon-1/SENSOR" unit_of_measurement: "kW" value_template: "{{ value_json.ENERGY.Power[2] }}" sensor: - platform: template sensors: electricity_power_total: friendly_name: "Electricity Power Total" unit_of_measurement: "W" value_template: "{{ states('sensor.tasmo_wemosd1_7280_powermon_1_energy_power_0') |float + states('sensor.tasmo_wemosd1_7280_powermon_1_energy_power_1') | float + states('sensor.tasmo_wemosd1_7280_powermon_1_energy_power_2') | float }}"