Smarthings UI for use with the nodjs-PoolController
This repository and the code in it is at end of life. It has been replaced by the version found here.
The new version is much improved on the Nodejs-PoolController side and with the device drivers / App interface in SmartThings. It is also fully compatible with Hubitat and will continue to be updated going forwqard across both platforms. The new version is not backwards compatible with this version so it will create all new devices for use in SmartThings.
SmartThings_Pentair.
An application to control pool equipment from within Smartthings.
Copyright (C) 2017-2018 Brad Sileo / bsileo / [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/.
A collection of devices designed to interface with a nodejs-poolControlller instance which is talking on the RS-485 bus to allow viewing and setting pool control options. Includes devices to manage the Pool pump, lights and heater, the spa pump and heater, the chlorinator, and any installed additional "Features".
-
Install and configure Nodejs-Poolcontroller (version 5.0+) https://github.com/tagyoureit/nodejs-poolController/tree/v5.0.0
-
Update your Nodejs-Poolcontroller installation with the SmartThings interface:
Update your configuration file to enable "OutputToSmartThings". Note that the "*" in the Address of the HUB correct as this is dynamically detected.
"outputToSmartThings": 1 }, "outputToSmartThings": { "address": "*", "port": "39500", "logEnabled": 0 },```
-
Install the new SmartApp and Devices into the Smartthings IDE (http://graph.api.smartthings.com/)
Github Approach (preferred)
- Add the repository to your Smartthings IDE. Go to My Device Handlers and click "Settings"
- In the blank line at the bottom add:
Owner | Name | Branch
bsileo | SmartThings_Pentair | Master
- Click OK
- Click "Update from Repo" and select SmartThings_Pentair
- In the dialog which appears select all items in the "New (only in GitHub)" group. Click the "Publish" checkbox. Click Execute Update.
- Repeat the "Update from Repo" from Steps 4-5 on My SmartApps
Manual Approach
-
Pool Controller
- Go to [https://graph.api.smartthings.com/ide/apps]
- Hit the "+New SmartApp" at the top right corner
- Hit the "From Code" tab on the left corner
- Copy and paste the code from https://github.com/bsileo/SmartThings_Pentair/blob/master/smartapps/bsileo/pool-controller.src/pool-controller.groovy
- Hit the create button at the bottom
- Hit the "publish/for me" button at the top right corner (in the code window)
-
Install the new Device Handlers into the Smartthings IDE (http://graph.api.smartthings.com/)
-
Pentair Pool Controller
-
Pentair Water Thermostat
-
Pentair Pool Control Switch
-
Pentair Chlorinator
For each one,
- Go to [https://graph.api.smartthings.com/ide/devices]
- Hit the "+New Device Type" at the top right corner
- Hit the "From Code" tab on the left corner
- Copy and paste the code from https://github.com/bsileo/SmartThings_Pentair/tree/master/devicetypes/bsileo/
- Hit the create button at the bottom
- Hit the "publish/for me" button at the top right corner (in the code window)
-
-
Install a new SmartApp Pool Controller and configure it:
- Go to MarketPlace, click SmartApps
- Go to My Apps and locate Pool Controller
- Allow discovery to find your PoolController node.js server, or manually configure it:
- Controller IP and Port - Set these to match the device where you have nodejs-PoolController running
- Controller MAC Address - set this to the MAC address for that device. Use all uppercase, no colins to enter it
- NOTE: Initial setup of the Pool Controller device takes longer than the hard timeout of 20 seconds in SmartThings. This will lead to an error when trying to Save from the SmartApp page. Ignore the error and keep hitting save! It will progressivly make progress creating additional child devices until it finishes. this can take 5-10 times to get through them all.
-
Manually adjust the circuit devices You will have 8 new devices created as Children to the main pool controller. You can access these in your things view and adjust them to improve the experience by changing their names as well as their icons. You cna also go to the Pol COntroler settings, enable Autoname, and hit Refresh to name them all from your PoolController. Autoname will only run once and thus you can change the labels after this if desired.
-
Use all of the devices from the pool controller in any of your other Smartapps. You will have access to all Temperature readings, the ability to turn automated relay swicthes on and off, and control the pool and spa pumps as well as set colors and modes for Intellibrite lights.