Giter VIP home page Giter VIP logo

esp32_to_sma's Introduction

SMA Inverter to MQTT via ESP32

This project uses an ESP32 to connect to an SMA SunnyBoy inverter, using Bluetooth, and regularly publish generation data via MQTT. There is also an option to publish the required topics to allow Home Assistant to automatically detect the various sensors.

It was originally forked from https://github.com/delhatch/ESP32_to_SMA, but I also heavily referenced https://github.com/SBFspot/SBFspot.

This is working for me - but the code is some what of a mess and could do with some (lots of) cleaning up.

All my development and testing was done on an SMA Sunny Boy SB 5000TL-21 (manufactured in 2021).

Setup

All required configuration is done in the site_details.h file, to create this, copy the site_details-example.h file to site_details.h and update all of the constants accordingly.

The project is developed and designed for use in VScode/PlatformIO. It may work in Arduino, but I would highly recommend using PlatformIO as it'll also automatically get the libraries etc that are required.

Flashing the image

The image initially needs to be flashed via Serial, update your platformio.ini accordingly to match your setup.

Once the first image is uploaded, and it's connected to the network, you can update using OTA updades:

  • Build the firmware.bin file (PlatfromIO Build)
  • Run curl to upload the new file, for example: curl -F "[email protected]/build/lolin_d32/firmware.bin" http://1.2.3.4/update

If you have any questions, please create a GitHub issue and I'll try to help.

esp32_to_sma's People

Contributors

delhatch avatar habuild avatar sillyfrog 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.