GithubHelp home page GithubHelp logo

frtz13 / energyrouter Goto Github PK

View Code? Open in Web Editor NEW
5.0 1.0 1.0 336 KB

License: GNU General Public License v3.0

Python 100.00%
energy home-assistant homeassistant mqtt self-consumption solar-energy appdaemon appdaemon-apps esphome-devices

energyrouter's Introduction

Energy Router

When is this project useful?

  • You have some energy production (typically solar panels).

  • You want to self-consume as much as possible of this energy.

  • You have a device (typically a water heater) which could consume the part of the energy, which would otherwise be injected into the public electricity grid.

  • You have an energy meter which measures the power consumed by your household (typically a Shelly EM). The power can be either positive (power is consumed) or negative (power is injected into the public electricity grid).

What do you need?

An MQTT broker (available as an add-on for Home Assistant, and maybe for other home automation systems).

An energy meter providing measurements via the MQTT broker, or which is accessible as a Sensor in Home Assistant.

Some "always-on" computer for running the Energy Router script. You will need one to run the MQTT broker, anyway.

A home automation system interacting with the MQTT broker will be very helpful. This lets you control the operation of the whole thing. You will find some hints on how to do it with Home Asssistant in the Wiki.

The dimmer. You will need some basic electronic skills to assemble it yourself. You will also need to program its ESP8266 micro controller with ESPHome, which is also available as an add-on for Home Assistant.

Note (*): The preferred way for the energy meter communication is shown in the diagram. With Home Assistant, the Energy Router can also get energy meter readings from a Sensor state.

If you do not use a home automation system, and do not already have an MQTT broker running, you may want to have a look at another project, using less prerequisites: the Zero-Surplus-Dimmer.

The Energy Router at work

The orange line corresponds to the grid power readings of the energy meter, the central horizontal line being zero.

The blue line corresponds to the power sent to the water heater (multiplied by -1). We see the regulation at work, as soon as the orange line reaches negative values.

How to assemble...

For more information how to put this together, please see the Wiki.

energyrouter's People

Contributors

frtz13 avatar phiber57 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

Forkers

phiber57

energyrouter's Issues

Declare sensor

hi how to declare this sensor for the apexchart card ?

  • entity: sensor.house_real_power

Thanks for your work

Little mistake in the code

I find a mistake in your code:
switch:
- name: "Energy router mode auto"
state_topic: "home/solarheat-dimmer/mode"
value_template: >
{%- if int(value) == -1 -%}ON{%- else -%}OFF{%- endif -%}
availability:
- topic: "home/waterheater-dimmer/RouterLWT"
payload_available: "online"
payload_not_available: "offline"
state_on: "ON"
state_off: "OFF"
command_topic: "home/waterheater-dimmer/mode"
payload_on: -1
payload_off: 0
optimistic: false
qos: 0
retain: true
icon: mdi:routes

That doesn't work , we need to change solarheat with waterheater and it's work

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.