Skip to content

Latest commit

 

History

History
47 lines (36 loc) · 1.71 KB

Control_MQTT.md

File metadata and controls

47 lines (36 loc) · 1.71 KB

MQTT Control Module

Introduction

The MQTT Control Module allows control over the TWCManager Tesla Wall Charger controller using MQTT topics. By publishing commands via MQTT, the behaviour of the charger (such as charger timing and mode) can be controlled.

Status

Detail Value
Module Name MQTTControl
Module Type Status
Status In Development

Configuration

The following table shows the available configuration parameters for the MQTT Control module.

Parameter Value
enabled required Boolean value, true or false. Determines whether we will enable MQTT control.
brokerIP required The IP address of the MQTT broker. We subscribe to control topics under this MQTT broker.
topicPrefix required MQTT topic prefix for control topics.
username optional Username for connecting to MQTT server (if authentication is required).
password optional Password for connecting to MQTT broker (if authentication is required).

JSON Configuration Example

"control": {
  "MQTT": {
    "enabled": true,
    "brokerIP": "192.168.1.2",
    "topicPrefix": "TWC",
    "username": "mqttuser",
    "password": "mqttpass"
  }
}

MQTT Topics

MQTT Topic Value Description
prefix/control/chargeNow AA,SS Starts charging at AA amps for SS seconds immediately. e.g. 8,3600 = 8 Amps for 1 hour
prefix/control/chargeNowEnd None Stops immediate charging.
prefix/control/stop None Stops TWCManager.