Giter VIP home page Giter VIP logo

nilan2mqtt's Introduction

Quality Gate Status

NOTE: Development is in progress.

nilan2mqtt fetches Nilan (R) heatpump CTS700 readings and settings via modbus and sends them to MQTT broker in regular intervals. It also executes commands retrieved from MQTT. Compatible with Home Assistant.

Environment variables:

  • NILAN_ADDR - Nilan heatpump address, including port. E.g. 192.168.1.15:502
  • MQTT_ADDR - Address of MQTT broker, e.g. "192.168.1.18:1883"
  • MQTT_USER - (optional) MQTT broker username
  • MQTT_PWD - (optional) MQTT broker password

Local build and run

go get all
go build -o nilan2mqtt cmd/nilan2mqtt/main.go
NILAN_ADDR="<heatpump addr>" MQTT_ADDR="<MQTT broker addr>" ./nilan2mqtt 

Docker build

docker build -t pjuzeliunas/nilan2mqtt:dev .

Docker run

docker run -e NILAN_ADDR="<heatpump addr>" -e MQTT_ADDR="<MQTT broker addr>" --restart=unless-stopped --net=host --name=nilan2mqtt -d pjuzeliunas/nilan2mqtt:dev

Also available in DockerHub: pjuzeliunas/nilan2mqtt

nilan2mqtt's People

Contributors

pju-dawn avatar pjuzeliunas avatar

Stargazers

 avatar  avatar  avatar

Watchers

 avatar  avatar

Forkers

ristoavila lauer

nilan2mqtt's Issues

exception '2' (illegal data address), function '131'

When starting the docker, the log starts showing fetch errors.
Any suggestions on how to troubleshoot?

I read that the modbus adresses could differ from the software versions, but not sure if this is the case.
I have a Air9 system as well.

2022/08/19 14:20:55 error (fetch errors) - modbus: exception '2' (illegal data address), function '131'
2022/08/19 14:20:55 error (fetch settings) - modbus: exception '2' (illegal data address), function '131'
2022/08/19 14:20:55 error (fetch readings) - modbus: exception '2' (illegal data address), function '131'
2022/08/19 14:20:40 error (fetch errors) - modbus: exception '2' (illegal data address), function '131'
2022/08/19 14:20:40 error (fetch settings) - modbus: exception '2' (illegal data address), function '131'
2022/08/19 14:20:40 error (fetch readings) - modbus: exception '2' (illegal data address), function '131'
2022/08/19 14:20:25 error (fetch errors) - modbus: exception '2' (illegal data address), function '131'
2022/08/19 14:20:25 nilan2mqtt is running
2022/08/19 14:20:25 error (fetch settings) - modbus: exception '2' (illegal data address), function '131'
2022/08/19 14:20:25 error (fetch readings) - modbus: exception '2' (illegal data address), function '131'
2022/08/19 14:20:25 sending HA configuration via MQTT
2022/08/19 14:20:25 connection to MQTT broker established

Dead project?

I have been using our implementation for more than a year now, but I want to add some extra values, and maybe implement it as an AddOn in HomeAssistant, so its easier for others to use this great plugin.

Would it be preferable for me to fork the project and proceed with the enhancements independently, or would you prefer a more collaborative approach with me acting as a contributor here?

It's worth noting that while I'm not proficient in Go development, I'm confident in my ability to extend the functionality of your codebase with the extra features I have in mind.

Looking forward to your guidance on the best course of action.

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.