@epenet I wonder if you could implement from vitals-api also the session_energy_wh and session_s. As those enable much easier seeing of charging events, instead of just logging total TWC energy. There are like 20 items or so I wonder why those are not logged all, like under temps have multiple sensors like handle, mcu etc.
What I mean is by graphics like below (I hope it is visible). This graph is from my own configuration.yaml RESTful API implementation.
also improved data could be compiled on polling & storing time, like power per phase and total power with all phases added together. With that you could have charging power but also battery and cabin preheat powers.
Hi,
I just installed the Tesla Wall Connector and used the corresponding Integration. Most interesting for me would be the energy consumed in the current session and a calculated cost (ideally from an energy source from the energy dashboard)
any chance of seeing this added @einarhauks ? (as per manifest.json) I’d also be comfortable adding a pull request but im not sure where to start - id be my first homeassistant component edit and first python code in a long time
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
Hey @afiwube,
Have you finalized your code? I’m eagerly awiting to see it in the release! I’m really currious about session numbers, and would be also great if TWC would show up on HA Energy Dashboard.
Hey the code in the pull request was when i last touched it.
Edit: also, its giving me in between updates while charging, wich was my original problem that it would only update once unplugged. Thats no longer happening.
I also would like the extra info: http://10.0.0.134/api/1/wifi_status
{“wifi_ssid”:“UGxhbmV0IEV4cHJlc3M=”,“wifi_signal_strength”:66,“wifi_rssi”:-57,“wifi_snr”:39,“wifi_connected”:true,“wifi_infra_ip”:“10.0.0.134”,“internet”:true,“wifi_mac”:“98:ED:5C:D6:94:3E”}