Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Tessie Custom Charger #18680

Closed
bill340 opened this issue Feb 8, 2025 · 2 comments
Closed

Tessie Custom Charger #18680

bill340 opened this issue Feb 8, 2025 · 2 comments

Comments

@bill340
Copy link

bill340 commented Feb 8, 2025

Is there still any possibility to implement a custom charger based on tessie?
#17274
works actually really well for me since some months now.
Only since some time it does not display any "charged" kWh anymore. It stays at 0. Don't know if it has anything to do with the tessie charger or something else.
Here is my evcc.yaml that I use sucessfully with the tessie charger:
...
chargers:

  • name: tessiechargercher

# REPLACE VIN with your VIN

# REPLACE TOKEN with your token

# REPLACE {{ .lat }} and {{ .lon }} with your location's latitude and longitude

type: custom
power:
  source: http
  uri: https://api.tessie.com/XP7YGCEK8RBxxxxxx/state?use_cache=true
  headers:
    Authorization: Bearer xxxxxxxxxxxxxxxxx
  jq: |
    if ((.drive_state.latitude - xx.xxxx | abs) < 0.001) and
       ((.drive_state.longitude - xx.xxxx | abs) < 0.001) then
      .charge_state.charger_power * 1000
    else
      0
    end
  cache: 30s
energy:
  source: http
  uri: https://api.tessie.com/XP7YGCEK8RBxxxxxx/state?use_cache=true
  headers:
    Authorization: Bearer xxxxxxxxxxxxxxxxx
  jq: |
    if ((.drive_state.latitude - xx.xxxx | abs) < 0.001) and
       ((.drive_state.longitude - xx.xxxx | abs) < 0.001) then
      .charge_state.charge_energy_added
    else
      0
    end
  cache: 30s
status:
  source: http
  cache: 30s
  uri: https://api.tessie.com/XP7YGCEK8RBxxxxxx/state?use_cache=true
  headers:
    Authorization: Bearer xxxxxxxxxxx
  jq: |
    if ((.drive_state.latitude - xx.xxxx | abs) < 0.001) and
       ((.drive_state.longitude - xx.xxxx | abs) < 0.001) then
      if .charge_state.charging_state == "Charging" then "C"
      elif .charge_state.charging_state == "Complete" then "D"
      elif .charge_state.charge_port_door_open then "B"
      else "A"
      end
    else
      "A"
    end
enabled:
  source: http
  uri: https://api.tessie.com/XP7YGCEK8RBxxxxxxx/state?use_cache=true
  headers:
    Authorization: Bearer xxxxxxxxxxxxxxxxxxx
  jq: |
    if ((.drive_state.latitude - xx.xxxx | abs) < 0.001) and
       ((.drive_state.longitude - xx.xxxx | abs) < 0.001) then
      .charge_state.charging_state == "Charging"
    else
      false
    end
  cache: 30s
maxcurrent:
  source: http
  uri: [https://api.tessie.com/XP7YGCEK8RBxxxxxxxx/command/set_charging_amps?retry_duration=40&wait_for_completion=true&amps=${maxcurrent}](https://api.tessie.com/XP7YGCEK8RBxxxxxxxx/command/set_charging_amps?retry_duration=40&wait_for_completion=true&amps=$%7bmaxcurrent%7d)
  headers:
    Authorization: Bearer xxxxxxxxxxxxxxxxxxx
  method: POST
enable:
  source: http
  uri: https://api.tessie.com/XP7YGCEK8xxxxxxxx/command/{{ if .enable }}start{{ else }}stop{{ end }}_charging?retry_duration=40&wait_for_completion=true
  headers:
    Authorization: Bearer xxxxxxxxxxxx
  method: POST
@mucki12
Copy link
Contributor

mucki12 commented Feb 8, 2025

Sorry, no ideas from me. I just want to follow this thread because I'm currently considering every possible control option, as there are always problems with the final version of evcc and Tesla. Maybe that could be a solution.

@andig
Copy link
Member

andig commented Feb 9, 2025

Lets continue in #17274

@andig andig closed this as completed Feb 9, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants