ngardiner / TWCManager

Control power delivered by a Tesla Wall Charger using two wires screwed into its RS-485 terminals.
The Unlicense
130 stars 55 forks source link

TWCManager

Stable Release Development Release Build Status GitHub commits Docker Pulls Contributors

Screenshots

Screenshot Screenshot

How it works

Would you like a full list of features available in TWCManager? Click here

Installation and Configuration

All installation and configuration documentation (Physical and Software) is contained in the documentation repository here

Interfaces

To enable TWCManager to gather the solar generation information that it requires to adjust the charging rate, we provide Interfaces to allow information to be retrieved (EMS Interfaces) and Interfaces to allow us to provide information to external systems to inform them of current charging output and number of cars currently charging.

Communication Interfaces

Platform Details
Dummy Interface to simulate a TWC device for testing
RS485 Communicate over RS485 Serial or basic TCP communications
TCP Communicate over more complex TCP network channels (In Development)

Control Interfaces

Platform Details
HTTPControl Allows control via embedded HTTP server (with RESTful API interface)
MQTTControl Allows control via MQTT
OCPPControl Allows integration with OCPP
WebIPCControl Allows control via PHP scripts (sysv IPC)

EMS Interfaces

EMS Interfaces read solar generation and/or consumption values from an external system. Current EMS interfaces are:

Platform Status Details
Dutch SmartMeter In Development Supports DSMR Serial Protocol
DSMReader Available Supports DSM Reader via MQTT
Efergy Available Supports Efergy Pro Sensors
Enphase Available Supports Enphase Enlighten API
Fronius Inverter Available Supports Fronius Inverter API
Growatt Available Support for Growatt Battery systems
HomeAssistant Available Supports HomeAssistant sensors
IoTaWatt Available Supports Iotawatt outputs
Kostal (Pico/Plenticore) Available Support for Kostal Inverters via ModBus
Open Energy Monitor Available Support Open Energy Monitor integration
openHAB Available Supports openHAB items
OpenWeatherMap Available Supports OpenWeatherMap forecast-based tracking where inverter EMS is not available.
P1 Monitor Available Supports P1 Monitor (Energy Monitoring tool for Pi)
SmartMe Available Support for smart-me.com API
SmartPi Available Support for SmartPi Smart Meter
SolarEdge Available Support for SolarEdge API
SolarLog Available Supports SolarLog Base API
Tesla Powerwall2 Available Support for Tesla Powerwall 2
The Energy Detective Available Support for TED (The Energy Detective)
URL Available Support for URL based generation/consumption values (eg Node-RED)
Volkszähler Available Support for Volkszahler

Logging Interfaces

Logging interfaces allow recording of statistics and values such as Green Energy data, Slave TWC status and Voltage and Amperage data to various interfaces.

This can be useful if you would like to track charger activity and use it for graphing or statistics purposes.

Module Details
Console Print output to console
CSV Log data to CSV files
Files Log data to a log files
MySQL Log data to a MySQL Database
Sentry Log data to a Sentry project
SQLite Log data to a SQLite Database

Status Interfaces

Status interfaces publish TWCManager status information to external systems. Current Status interfaces are:

Platform Details
HomeAssistant Provides HASS sensors to monitor TWCManager State
MQTT Publishes MQTT topics to monitor TWCManager State

Vehicle Interfaces

Platform Details
TeslaAPI Allows start/stop charging via Tesla API
TeslaMate TeslaMate integration (Tesla API Tokens)

Warnings

It is important to read and understand the following warnings before using this tool:

Limitations

Attribution