Skip to content

berndwaibel/HomeAssistantOpenDTU

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 

Repository files navigation

OpenDTU and Shelly for photovoltaic systems - Integration into HomeAssistant

Setup

As it is now allowed in germany to use "plug-and-play" photovoltaic systems with limit of 800 Watt, I decided to build this on my garage. The hardware I used is listed here: HARDWARE.md.

After installing the PV, I decided to integrate this into a new home automation system. The possibilites I found, are described here: INTEGRATION.md.

Last but not least I decided to use "Home Assistant". Details are described here HOMEASSISTANT.md

Aim

The aim of this documentation is, to delivery the sources, and describe the decisions and some experience.

The content:

  • In src folder you could find working YAML files for integration into Home Assistant.
  • In examples folder you could find json data generated by my devices (some data are anonymized)
  • In docs folder you could find background informations

The implementation uses the REST API of the OpenDTU as described here: https://www.opendtu.solar/firmware/web_api/.

The following APIs are covered by the YAML file:

The following APIs are not covered by the YAML file:

The Integration of the OpenDTU is described here:

Usage

How to use my work?

  1. You could read what I did, just for experience.
  2. You could get the "opendtu.yaml" file and use it
    1. Change the IP addresses inside the file to your addresses.
    2. Change the numbers of the inverters to your inverter numbers.
    3. If you have not exactly 3 inverters, you need to delete or copy some parts of the YAML files.
    4. If you have not exactly 1 string per inverter, you need to delete or copy some parts of the YAML files.
  3. The configuration.yaml is only an example, you have your own.
    1. Add the last row. You need the "rest:" line.
    2. If the "rest:" line is in configuration.yaml, you do not need it in opendtu.yaml.
  4. There are two versions:
    1. The opendtu.yaml contains the whole REST API for my OpenDTU, with all data. It is include by the "rest:" line in configuration.yaml.
    2. The opendtu_small.yaml contains only the energy values, a minimum set of data.
  5. Contact me in case of questions, I will try to answer. Please give me time for that.

Links

This work is based on the following guides, which I could recommend and for which I thank a lot:

About me

My daily work is as an IT architect in different software projects, mainly programming with Java. I do use different cloud solutions, most of the time kubernetes based. So ELK, Grafana, and so on is not new to me. Home automation is new, and just a hobby.

I am living in germany, so the sources are sometimes in german language. Beg you pardon. :-)

About

Integration von OpenDTU in Home Assistant

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published