Git Product home page Git Product logo

dtuprocontroller's Introduction

DTUProController

Hoymiles DTU-Pro zeroexport controller for 6 Microinverter. Beacuse of the bugs in the Hoymiles DTU-Pro, while doing zero export, I wrote this python script for controlling the Hoymiles DTU-Pro for a "real" zero export.

Data Logger and zero export Controller for Hoymiles DTU-Pro / Microinverter MI1500,MI1200,MI600,MI300,HM1500,HM1200,HM600,HM300,TSUN TSOL-M800 series over RS485/ModbusRTU This script controls zero export power to the grid over DTUPro, monitoring over mqtt/nodered

usage: *.py Controller=0/1 [1=controler&datalog] [0=only datalogger], Output=1/0

dtupro_ctrl.py 1 1 ; script running as zeroexport controller , no output to the console

dtupro_ctrl.py 0 1 ; script is running as datalogger/no zerp export , output to the console

What do you need:

  • SET !! DTU-Pro as Remote Control/Modbus Protocol
  • SET !! DTU-Pro RS485 device number to 101 or change it in script
  • SET !! DTSU666 grid meter device number to 22 or change it in script (DDSU666 or whatever CHINT compatible is also ok)
  • SET !! Registeradress in dtudtsuregister.json, if you have another Gridmeter
  • for RaspberryPi or PC get a USB/RS485 stick
  • connect DTU-Pro, DTSU666 and PC or Pi over RS485 twisted pair (take care of A/B)
  • install python3
  • install pymodbus
  • install MQTT mosquitto
  • install Node-Red, if you want to use my Node-red functions for data-graphics
  • CONFIGURE "dtupro_ctrl.py" in script under CONFIGURATION
  • start the script in terminal
  • if you want to handle have more than 6 inverters, set it in script

Please, place any issues here: https://github.com/Ziyatoe/DTUProController/issues

This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or any later version.

This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with this program. If not, see https://www.gnu.org/licenses/

NO COMMERCIAL USE !!

Copyright 2022 Z.TOe

If you do any modification to this python script please SHARE with me, thank you!!!!-

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.