Skip to content

Automatically start charging at 21:03 if the charcing cable is connected to the car

Notifications You must be signed in to change notification settings

okko/plugit-charger-control

Repository files navigation

Plugit Charger Control

Automatically start charging at 21:03 if the charging cable is connected to the car.

IMAGE ALT TEXT HERE

Flow diagram

How it works

An AWS Lambda function authenticates with the Plugit API via Ory Kratos, checks the charger status, and starts charging if the cable is connected. It announces the result via Alexa using VoiceMonkey.

Installation

yarn install

Configuration

Create a .env file with the following variables:

API_KEY=your-api-key
PLUGIT_CHARGE_POINT_ID=your-charge-point-id
PLUGIT_CHARGE_BOX_ID=your-charge-box-id
PLUGIT_USERNAME=your-plugit-email
PLUGIT_PASSWORD=your-plugit-password
VOICEMONKEY_ACCESS_TOKEN=your-voicemonkey-access-token
VOICEMONKEY_SECRET_TOKEN=your-voicemonkey-secret-token
VOICEMONKEY_MONKEY_ID=your-monkey-name

Deployment

source .env && AWS_PROFILE=default yarn sls deploy

Local test run

source .env && yarn run-local

Features

  • Runs every night at 21:00 Finnish time (with automatic DST handling via EventBridge Scheduler)
  • Provides a Lambda URL for on-demand invocation, requires ?apiKey=your-api-key
  • Uses the Plugit mobile app API (Ory Kratos auth + app-gw) — no browser automation
  • Announces charger status via Alexa using VoiceMonkey
  • Zero runtime dependencies, ~6.5kB bundle size, 256MB Lambda

This application is in no way authorized or maintained by Plugit.

About

Automatically start charging at 21:03 if the charcing cable is connected to the car

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 2

  •  
  •