Git Product home page Git Product logo

chargepoint's Introduction

ChargePoint for Home Assistant

beta_badge hacs_badge

Installation

Manual

Clone it in custom_components in your config folder. It should appears as an entity in your config (please it could takes as long as 30 secs before being accessible).

Also, it might be slow activating / deactivating since it's reverse engineered and slow as well on your phone. Please be patient (about 30 secs before the operation is updated). Meaning, if you activate from deactivation state, you will see the "button turning blue" as activated and couples of seconds afterwards going back to grey (deactivated), just wait 30 secs and it will update as blue. The ChargePoint API is slow too.

Using Home Assistant Community Store (HACS)

The easiest way to install (and ensure you are always running the latest version), first setup Home Assistant Community Store (HACS), and then add the "Integration" repository: drynish/chargepoint

Config Example

chargepoint:
  email: [email protected]
  password: SECRET

  # temporarily this is required (see MITM steps below)
  userid: 0000000
  secret: 'AAAAAAA'

Known Issues

My first custom_component for Home Assistant. I've been testing it for two days and it seems to work, however as I'm not totally aware of ChargePoint api. I needed to get some secret passphrase using mitmproxy.

If you want to use that module, you have to complete the following:

  • Create a pyChargePoint.cfg file like this:
[DEFAULT]
secret = AAAAAAA
userid = 0000000

DO NOT PUT apostrophies around secret ... it won't work!!!

The CP-Session-Token is a token sent with each transmission through your phone, so you'll have to proxy your phone to your computer and analyze packets sent when opening chargepoint app. (mitmweb)

Search for it when you see connection to https://mc-ca.chargepoint.com/map-prod/v2. You need to look for userid too.

I will continue to look forward trying to find ways to obtain those without requiring to install mitmproxy but for now it's the only way

That's all... Good luck! :)

Michel

Future

  • replace the MITM credential mechanism
  • YAML based Home Assistant configuration not yet implemented

See Also

chargepoint's People

Contributors

drynish avatar rsnodgrass avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.