Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/pjuzeliunas/nilan2mqtt
Nilan CTS700 modbus to MQTT adapter
https://github.com/pjuzeliunas/nilan2mqtt
home-assistant modbus mqtt nilan raspberry-pi
Last synced: 3 months ago
JSON representation
Nilan CTS700 modbus to MQTT adapter
- Host: GitHub
- URL: https://github.com/pjuzeliunas/nilan2mqtt
- Owner: pjuzeliunas
- License: mit
- Created: 2022-02-11T19:57:14.000Z (almost 3 years ago)
- Default Branch: main
- Last Pushed: 2022-11-18T09:59:44.000Z (about 2 years ago)
- Last Synced: 2024-10-09T06:48:06.070Z (4 months ago)
- Topics: home-assistant, modbus, mqtt, nilan, raspberry-pi
- Language: Go
- Homepage:
- Size: 5.99 MB
- Stars: 3
- Watchers: 2
- Forks: 2
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
[![Quality Gate Status](https://sonarcloud.io/api/project_badges/measure?project=pjuzeliunas_nilan2mqtt&metric=alert_status)](https://sonarcloud.io/summary/new_code?id=pjuzeliunas_nilan2mqtt)
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="" MQTT_ADDR="" ./nilan2mqtt
```## Docker build
```
docker build -t pjuzeliunas/nilan2mqtt:dev .
```## Docker run
```
docker run -e NILAN_ADDR="" -e MQTT_ADDR="" --restart=unless-stopped --net=host --name=nilan2mqtt -d pjuzeliunas/nilan2mqtt:dev
```Also available in DockerHub: [pjuzeliunas/nilan2mqtt](https://hub.docker.com/repository/docker/pjuzeliunas/nilan2mqtt)