Giter Club home page Giter Club logo

lambda-heatpump-modbus-tcp's Introduction

lambda-heatpump-modbus-tcp

(PV Überschuss Steuerung für Lambda Wärmepumpen)

Simple script to connect energy meter with a lambda heatpump over modbus tcp to prioritize execution at times of excess photovoltaic production:

heatpump-runtime

(red: consumption, green: pv production, blue: self-consumption)

Supports:

  • Solaredge energy meter (using solaredge modbus)
  • Fronius Smart Meter
  • Lambda heatpump EU08L, EU13L

Installation:

  • install pymodbus (pip3 install pymodbus)
  • install solaredge_modbus (pip3 install solaredge_modbus) if a Solaredge energy meter is used

Example usage:

python3 lambda-modbus-tcp.py --source-host 192.168.0.106 --dest-host 192.168.0.188 --source-port 1502 --source-unit=4

Example usage for Fronius Smart Meter:

python3 lambda-modbus-tcp.py --source-type fsm --source-host 192.168.0.106 --dest-host 192.168.0.188 --source-port 502 --dest-port 502 --source-unit 200 -d -i 15

Demo mode:

Using the "static meter" you can simulate a given value. E.g. to write 1500W use:

python3 lambda-modbus-tcp.py --source-type static --dest-host 192.168.0.188 -d -i 5 --source-value 1500

lambda-heatpump-modbus-tcp's People

Contributors

california444 avatar hendrikmuhs avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

Forkers

california444

lambda-heatpump-modbus-tcp's Issues

Modbus connection error

Hi,
When trying out the programme for the first time using a Fronius inverter+smart meter I received the following error message:
"Modbus Error: [Connection] Modbus TcpClient(192.168....): Connection unexpectedly closed 0.001 seconds into read of 8 bytes without response from slave before it closed connection"

In the first moment it seems to connect successfully to both the Fronius and the Lambda but after a few seconds the mentioned error message appears.

The programme runs on a RaspberryPi. First I tested it using a Modbus simulator programme instead of the Lambda heatpump - this worked fine.

Did you ever experience such behaviour? The question is whether the error is caused by the Raspberry or the Lambda HP. It sounds a bit like a timeout at Lambda but I don't have access to any deep settings there.
Which E-Meter communication type are you using in the Lambda settings? My setting is "Modbus EM300" what I cannot change myself. (Indeed there is no EM300 smart meter installed, I have the Fronius sm.). If you know: are there any Modbus timeout settings?

Lambda Modbus Smart Meter required?

Hi @hendrikmuhs, thanks for sharing your script.
You are covering exactly my future setup. I currently have a SolarEdge SE8K RWS with SolarEdge Electricity Meter installed and I am in the process of ordering a Lambda EU08L. What I'm not clear yet if I need to include the Lambda Smart Meter as well into my configuration. Does the script in your setup require the presence of the Lambda smart meeting? Any insight would be highly welcome.

Thanks!

Support Fronius Inverter

Hi @hendrikmuhs,
thanks for sharing your script.
Are you open for a PR to also support Fronius Inverter as "source"?
From the code base it looks like that this is intended.
I have a Fronius inverter and smart meter and could add a new source-type + logic for this.

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.