Tesla Wall Connector v3 home assistant integration with session data too

Great, would you @afiwube also do the “watt” maths implementation. As the voltage per phase and current per phase are available at API, and also create 4th data object with total power by summing power per phase.

From my configuration.yaml rest-implementation:

      - name: "TWC charging power A"
        value_template: "{{ (float(value_json.voltageA_v) * float(value_json.currentA_a)) | round(0) }}"
        device_class: power
        unit_of_measurement: W
      - name: "TWC charging power B"
        value_template: "{{ (float(value_json.voltageB_v) * float(value_json.currentB_a)) | round(0) }}"
        device_class: power
        unit_of_measurement: W
      - name: "TWC charging power C"
        value_template: "{{ (float(value_json.voltageC_v) * float(value_json.currentC_a)) | round(0) }}"
        device_class: power
        unit_of_measurement: W
      - name: "TWC charging power total"
        value_template: "{{ (float(value_json.voltageA_v) * float(value_json.currentA_a) + float(value_json.voltageB_v) * float(value_json.currentB_a) + float(value_json.voltageC_v) * float(value_json.currentC_a)) | round(0) }}"
        device_class: power
        unit_of_measurement: W
2 Likes