Giter Site home page Giter Site logo

esphome-sdm630's Introduction

ESPHome+SDM630

1. About

This repository is an instruction how to use energy meter SDM630 Modbus V2 with ESP32/8266 loaded with ESPHome. Program is meant to read all needed data from the counter if you need something more feel free to modify the code.

2. Needed things to start

  1. SDM630 Modbus V2 can be bought from Aliexpress example link below: https://pl.aliexpress.com/item/32755125115.html?spm=a2g0s.9042311.0.0.7f515c0fyqdQLy
  2. Modbus konwerter from RS485 to UART https://pl.aliexpress.com/item/1005001346792286.html?spm=a2g0o.productlist.0.0.379b6239Khooh1&algo_pvid=null&algo_expid=null&btsid=2100bdcf16209689305085851eb468&ws_ab_test=searchweb0_0,searchweb201602_,searchweb201603_
  3. ESP board can be ESP8266 or ESP32
  4. Home Assistant with ESPHome addon installed

3. Connection diagram

Wemos D1 ESP32 image

Wemos D1 ESP8266 image

Usually any board which is compatible with ESPHome should work. Only connect TX port of ESP to TX of converter, RX to RX, A+ from converter to A+ of SDM630, B- to B- and G to G.

4. Programming

  1. Download folder SDM and paste it into below location of your Home Assistant server \\your_Home_Assistant_address\config\esphome\custom_components If folder custom_components doesn't exist create it.
  2. Create New node according to your board type. Paste example code to your node and modify it according to your code and configuration!!
  3. Validate code, compile and upload it.
  4. Rememmber that RS converter and SDM630 need to be connected and powered on, otherwise in logs you will see nothing and ESP board will be resetting and unavailable. So the best way to test is the code working, connect ing SDM630 normal cable with plug to wall socket and make connection according to diagram in point 3
  5. If we have brand new ESP it is necessary to download Firmware generated in ESPHome and upload it with below tool: https://github.com/esphome/esphome-flasher/releases/tag/v1.3.0

esphome-sdm630's People

Contributors

krzysiek2788 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.