nodejs-poolController is an application to communicate and control your Pentair compatible pool equipment.
- Want to include a low cost controller for your pool?
- Want a web interface for your system?
- Want to turn your pumps on remotely?
- Want to have your home automation system talk to your pool?
- Want to control your pumps or chlorinator without a pool controller?
Equipment supported
- Controllers: IntelliCenter, Intellitouch, EasyTouch, No controller (standalone equimpent)
- Pumps: Intelliflow VS/VSF/VF, older models
- Chlorinators: Intellichlor, Aqua-Rite and OEM brands
- Heaters: Gas, solar, heatpump
- Intellichem and homegrown chemical controllers
- Intellivalve (coming soon)
- Home Automation: SmartThings, Hubitat, ISY, Vera, Siri, Echo
In short, everything! 6.0 is a complete re-write of the application. Huge props to @rstrouse for his wisdom and guidance in refactoring the code.
- IntelliCenter - now supported
- Configuring and running the app - all new. Start over with the Installation instructions.
- Automatic detection of your pool equipment. Previous versions of the app would detect the configuration of your pool but you still had to tell the app if you had IntelliTouch/EasyTouch/IntelliCom. This is now done automatically.
- Configuration and state information. Config.json now only stores information related to the configuration of the app. There are separate files in the /data directory that store (and persist) pool configuration and state information.
- API's - completely changed. See separate API documentation (*link here)
- Outbound Sockets - Now more granular to make the web app more responsive
- Web app - Now a separate installion for a true client/server metaphore.
Dashpanel Client Screenshot
Webclient Client Screenshot
This code requires a physical RS485 adapter to work.
This is only the server code. See clients below for web or other ways to read/control the pool equipment.
If you don't know anything about NodeJS, these directions might be helpful.
- Install Nodejs (v12 recommended). (https://nodejs.org/en/download/)
- Update NPM (https://docs.npmjs.com/getting-started/installing-node).
- Download the latest code release
OR
clone with
git clone [email protected]:tagyoureit/nodejs-poolController.git
- Unzip into nodejs-poolController.
- Run 'npm install' in the new folder (where package.json exists). This will automatically install all the dependencies (serial-port, express, sockets.io, etc).
- Run the app with
npm start
.npm start
will compile the Typescript code. You should use this every time you download/clone/pull the latest code.npm run start:cached
will run the app without compiling the code which can be much faster.
- Running
npm start
will also create aconfig.json
file for your installation. If you need to modify any properties (e.g. the path to your serialport adapter, enabling socat, etc) then stop the app, edit theconfig.json
per the instructions below, and start the app again. - Verify your pool equipment is correctly identified by inspecting the
/data/*.json
files. - Install a webclient for a browser experience and/or a binding to have two way control with Home Automation systems.
@wurmr created Docker Dockerfile and pre-built containers.
See the wiki.
To do anything with this app, you need a client to connect to it. A client can be a web application or Home Automation system.
- nodejs-poolController-dashPanel. This is built primarily around the IntelliCenter but will work with *Touch.
- nodejs-poolController-webClient. Built primarily around EasyTouch/IntelliTouch but will work with other systems.
- This app has the default to only listen to clients from localhost (127.0.0.1). If you need to have clients connect from other machines you will need to change the ip in
config.json
.
**NOTE: Existing integrations built of 5.3 or earlier WILL NOT WORK. They need to be upgraded to leverage 6.0. **
Ready for 6.0;
- Vera Home Automation Hub - A plugin that integrates with nodejs-poolController.
- SmartThings/Hubitat by @bsileo (prev help from @johnny2678, @donkarnag, @arrmo)
- Homebridge/Siri/EVE by @gadget-monk, adopted from @leftyflip
Need to be updated:
- Another SmartThings Controller by @dhop90
- ISY. Original credit to @blueman2, enhancements by @mayermd
- ISY Polyglot NodeServer created by @brianmtreese
- MQTT created by @crsherman.
- InfluxDB
- For discussions, recommendations, designs, and clarifications, we recommend you join our Gitter Chat room.
- Check the wiki for tips, tricks and additional documentation.
- For bug reports you can open a github issue,
v6 adds all new configuration and support for virtual pumps, chlorinators (and soon, Intellichem)
- Ability to load different config.json files
- Automatic upgrade of config.json files (tbd)
- Automatic version notification of newer releases available (tbd)
- Most of the output to console has been eliminated.
rs485Port
- set to the name of you rs485 controller. See wiki for details and testing.portSettings
- should not need to be changed for RS485mockPort
- opens a "fake" port for this app to communicate on. Can be used with packet captures/replays.netConnect
- used to connect via SocatnetHost
andnetPort
- host and port for Socat connection.
inactivityRetry
- # of seconds the app should wait before trying to reopen the port after no communications. If your equipment isn't on all the time or you are running a virtual controller you may want to dramatically increase the timeout so you don't get console warnings.
servers
- setting for different servers/serviceshttp2
- not used currentlyhttp
- primary server used for api connections without secure communicationsenabled
- self-explanatoryip
- The ip of the network address to listen on. Default of127.0.0.1
will only listen on the local loopback (localhost) adapter.0.0.0.0
will listen on all network interfaces. Any other address will listen exclusively on that interface.port
- Port to listen on. Default is4200
.httpsRedirect
- Redirect http traffic to httpsauthentication
- Enable basic username/password authentication. (Not implemented yet.)authFile
- Location of the encrypted password file. By default,/users.htpasswd
. If you haveauthentication=1
then create the file users.htpasswd in the root of the application. Use a tool such as http://www.htaccesstools.com/htpasswd-generator/ and paste your user(s) into this file. You will now be prompted for authentication.
https
- See http options above.sslKeyFile
- Location of key filesslCertFile
- Location of certificate file
mdns
- Not currently used.ssdp
- Enable for automatic configuration by the webClient and other platforms.
app
- Application wide settingsenabled
- Enable/disable logging for the entire applicationlevel
- Different levels of logging from least to most: 'error', 'warn', 'info', 'verbose', 'debug', 'silly'
packet
- Configuration for the
- @Rstrouse for helping make the 6.0 rewrite and Intellicenter possible, continuing to make monumental changes, and driving this project forward in numerous ways. My knowledge of coding in general has benefitted greatly from working with him.
- Jason Young (Read both posts, they are a great baseline for knowledge)
- Michael Russe ceesco CocoonTech - Registration required for CocoonTech. Jason Young used this material for his understanding in the protocol as well. There is a very detailed .txt file with great information
that I won't post unless I get permission. Looks like it was publicly posted to Pastebin. - Michael Usner for taking the work of both of the above and turning it into Javascript code.
- rflemming for being the first to contribute some changes to the code.
- Awesome help from @arrmo and @blueman2 on Gitter
nodejs-poolController. An application to control pool equipment. Copyright (C) 2016, 2017. Russell Goldin, tagyoureit. [email protected]
This program is free software: you can redistribute it and/or modify it under the terms of the GNU Affero General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.
This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Affero General Public License for more details.
You should have received a copy of the GNU Affero General Public License along with this program. If not, see http://www.gnu.org/licenses/