Pool Light Automation Using Pentair 5G Color LED

Tags: #<Tag:0x00007f3f1b32c2e0> #<Tag:0x00007f3f1b33bb78>

Here is how I have automated my pool light to work with Home Assistant.

I wanted to do this because the cost of the pool light controller was both expensive and still requires one to exit the pool and walk through rocks to reach the switch…Not ideal. The solution was quite simple, actually.

I used a GE Smart Switch (12722 on/off; NO dimmer) and simply replaced the old switch.I tested operation manually, added the switch to Home Assistant via Z-Wave, and tested toggling colors manually through the GUI. “Easy Peasy.!”

Next, I had to dial in the timing of the switch to determine the best delay between selections. I did my testing on a lightbulb that was hooked up to an identical switch, since the cost is considerably less than my new pool light!

Once satisfied, it was time to program and perform a live test on the pool itself. Here is the final config:

I use one input selection for the color and another for setting the scenes, like so:

#####################################################################
### Pool Light Scene
#####################################################################
pool_scene:
  name: Pool Scene
  initial: "Select an option..."
  options:
    - "Select an option..."
    - "Cycle"
    - "Party"
    - "Romance"
    - "Caribbean"
    - "Patriotic"
    - "Sunset"
    - "Royal"

#####################################################################
### Pool Light Color
#####################################################################
pool_color:
  name: Pool Color
  initial: "Select an option..."
  options:
    - "Select an option..."
    - "Blue"
    - "Green"
    - "Red"
    - "White"
    - "Magenta"

Automation rules then tell the switch to toggle the appropriate number of times to choose the proper settings:
https://github.com/rrubin0/homeassistant-config/blob/master/automation/pool_light.yaml

Scripts are used to perform the toggling:
https://github.com/rrubin0/homeassistant-config/blob/master/scripts/pool_colors.yaml
https://github.com/rrubin0/homeassistant-config/blob/master/scripts/pool_scenes.yaml

Feel free to review my entire config, here:

Special thanks to the following for their help in config troubleshooting and simplification:
@skalavala @dale3h @torn8o

3 Likes

Thanks so much! Setting this up this weekend…

You just saved me a ton of time and energy as I was already working on doing the same thing.

Thanks again for sharing!

glad to hear, and happy to help - just in time for summer too! :smile:
Nothing significant, but my latest github shows the same config using packages.

This looks awesome…what z-wave hub are you using? I’m new to this and want to make sure I can pick up something that is configurable like this. Was eyeing the Samsung Smartthings hub but the screenshots look different than the app you’re using.

I don’t use a z-wave hub - just the Aeotec Gen5 USB stick …
FYI - my repo has been updated to use packages exclusively … additionally, i had to tweak timings on this setup due to range, but here are the updated links:

How is the light integrated with HA? I don’t see any official support. Are you just flipping the switch on and off to trigger different lights to come on? I see you have channels listed in the sequence. But not sure what they mean.

I also am confused how you are selecting colors. If the switch is only off/on…

Yes. It is an on/off switch that changes color based on the number of on/off toggles that are sent in a short period of time. This is specific to the Pentair 5G light series.
The switch is a “dumb” smart switch (aka an on/off non-dimmer) typical GE variety. It can be flaky at times but beats walking over rocks!

Is the GE cycling the transformer, I assume? I’m a bit wary that that would shorten the life of the transformer.

Great write up by the way.

Power cycling a transformer will not cause any sort of wear or damage. It’s just some coils of wire - and wire doesn’t wear out faster if it’s carrying electricity or not.

About the only way to harm a transformer is over-loading it as it will cause high temps and can short the coils due to insulation failure; and anything with the physical environment it’s contained in that could harm it (corrosion, etc).

1 Like

The pentair light is designed to use a standard on/off switch. I just replaced the standard switch with a GE switch in an outdoor housing … it’s not rated for outdoor but has survived 2 seasons and it is up to 117 F in the hot sun here…

It’s been a long time since I updated this thread and saw some activity so I thought I’d update it.

My full hass repo is here.

For the pool light project, I use:

The result is as follows:
image
I just tested my tuned code on Hass 0.95.4 and it works great.

updated thread and code if you’re interested.

Oh, I already cloned your repo. And I just updated it.

I’m jelly of your homeassistant skills. Very nice and impressive!