Home

Awesome

nodejs-poolController-mqtt

License: AGPL v3 Join the chat at https://gitter.im/nodejs-poolController/Lobby

MQTT integration for the nodejs-poolController pool equipment controller written by tagyoureit. This allows communication and control of Pentair (and other supported model) pool equipment via MQTT, allowing for integration with any home automation systems which can interact with MQTT messages.

This allows easy integration with other home automation softwares such as Node-RED and allows the development of a dashboard for use on a mobile phone such as the following:

<img src="https://github.com/crsherman/nodejs-poolController-mqtt/blob/master/images/IMG_0600.PNG" height="400"> <img src="https://github.com/crsherman/nodejs-poolController-mqtt/blob/master/images/IMG_0601.PNG" height="400">

Changelog

Requirements

Optional

Installation

Manual Instructions

  1. Add the following to the package.json file in the nodejs-poolController folder
"jsonata": "^1.5.3",
"mqtt": "^2.17.0",
  1. Add the following to the config.json file in the nodejs-poolController folder (precaution: make a backup copy of your config.json or customized configuration file.)
"integrations": {
        "outputSocketToMQTT": 1
    },
"outputSocketToMQTT": {
        "level": "debug"
    },
  1. Modify outputSocketToMQTT.js (line 46) to specify the IP address of YOUR MQTT server on your network. ALTERNATIVELY, you can set environment variables where you start npm:
export MQTT_BROKER_ADDRESS="http://192.168.1.179:1883"

...and optionally a username and password (if required):

export MQTT_USERNAME=your-mqtt-username
export MQTT_PASSWORD=your-mqtt-password
  1. Add the outputSocketToMQTT.js file to the nodejs-poolController/src/integrations folder on your Rapsberry Pi

  2. Run npm install in the nodejs-poolController folder where package.json exists

Home Assistant

See Hass.io Add-on (Docker installation) for easy installation in Home Assistant environments.

See Also

Credits

If I have missed anyone or group that my integration code utilizes I apologize. Please let me know and I will add the appropriate credits.