Skip to content

Implement TWC vitals API #77

@skrul

Description

@skrul

evcc now has direct support for configuring a tesla vehicle using TeslaBleHttpProxy (thanks @wimaha!), but those the use the mobile charger (rather than a TWC) still need to configure a custom charger in evcc that uses the TeslaBleHttpProxy endpoints (see my config here).

I was wondering if TeslaBleHttpProxy has enough information in order to implement the TWC vitals API? If so, mobile charger users could use the built in evcc TWC charger support, but configure it to talk to TeslaBleHttpProxy instead of a real TWC. Much of the functionality of the built-in TWC support delegates to the vehicle, but it does make use of the following fields from the vitals response:

  • contactor_closed
  • vehicle_connected
  • session_energy_wh
  • grid_v
  • currentA_a
  • currentB_a
  • currentC_a
  • voltageA_v
  • voltageB_v
  • voltageC_v

Unfortunately I don't have a TWC so I don't know if these fields map to what is available through TeslaBleHttpProxy. It seems like this should be possible since I am able to create a custom charger in evcc that uses the TeslaBleHttpProxy endpoints.

@wimaha if the mappings exist, I can do the implementation if you think this would be a useful addition to the project!

Metadata

Metadata

Assignees

No one assigned

    Labels

    backlog-enhancementacknowledged but is deferred for later consideration

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions