Giter VIP home page Giter VIP logo

mqtt-to-smartevse's Introduction

mqtt-to-smartevse

This is a small project to interface with the SmartEVSE from Stegen. Disclaimer: I'm very very bad at C so the code is very rudimentary. You can help me clean it up if you are more fluent in C than me.

It was written for an ESP32 with a ttl->RS485 (like the max3485) transceiver on Serial2. It uses the ModbusMaster library and the pubsubclient library.

Pin reference ESP32 -> MAX3485 module:

  • ESP32 3.3V -> MAX3485 VCC
  • ESP32 GND -> MAX3485 GND
  • ESP32 TX2 -> MAX3485 TXD
  • ESP32 RX2 -> MAX3485 RXD
  • ESP32 GPIO4 -> MAX3485 DE/RE (connect these two pins together with some solder). This is used to switch between receiving and transmitting, RS485 is half duplex.

MAX3485 -> SmartEVSE:

  • A -> A
  • B -> B

Currently it exposes three functions over mqtt:

  • smartevse/start -> start charging (disable locking feature of SmartEVSE), payload does not matter
  • smartevse/stop -> stop charging (enable locking feature of SmartEVSE), payload does not matter
  • smartevse/current -> set current in amps (6A -> post 6 to this topic, integers only)

mqtt-to-smartevse's People

Stargazers

 avatar  avatar  avatar Maarten avatar Joel avatar Albert Hakvoort avatar  avatar Duncan Roosma avatar

Watchers

Jan van Haarst avatar Sander van de Geijn avatar Chris van Lith avatar  avatar  avatar  avatar KoVeCo avatar  avatar

mqtt-to-smartevse's Issues

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.