Pentair Pool Light Color Control

I’m using the Pentair integration. Unfortunately, the way the integration works is that I have to call a service with a reference to set the color of the lights, of which there are dozens of modes. I can turn the lights on and off using a light entity, but I cannot set the color mode via the light entity.

I really like the light entities in HA. I can turn the lights on and off, and a variety of colors all from a single card, which I think is quite elegant. I’m trying to figure out how to create something that’s as close as possible for my pool lights.

Do you guys have an suggestions on the how to go about this? I’ve created an automation that I can call from a button to turn the lights on and set the color mode, but I’d rather not create 3 dozen buttons, one for each color mode. I also don’t know how to turn off the lights with a single card using this method. Any suggestions are appreciated!

Use this. Should be easy since you have color working in automations

1 Like

I’ve been working on trying to get this set up. I’m to the point where I want to start defining effects, but I keep getting an error.


  - platform: template
    lights:
      pentair_lights:
        friendly_name: Pool Lights
        value_template: "{{ states('light.pool_lights')}}"
#        effect_list_template:  "{{ state_attr('screenlogic.set_color_mode')}}"
        turn_on: 
          service: light.turn_on
          entity_id: light.pool_lights
        turn_off: 
          service: light.turn_off
          entity_id: light.pool_lights
        set_effect:
          - service: screenlogic.set_color_mode
            data:
              color_mode: color_swim

Error

Invalid config for [light.template]: some but not all values in the same group of inclusion 'effect' @ data['lights']['pentair_lights'][<effect>]. Got None. (See ?, line ?).

Templates are hard so cant help much with this. I pretty much have to use trial and error and a lot of googling to get them going

Hi !!!, how do you control the light ? I have the color sync controler and i Wonder how can i turn on and off the lights. !

@jsotelo You have to call a service called

screnlogic.set_color_mode

I then created a template light so that whenever I turn on the light entity it calls the service and sets the mode to color_swim, which is what I want every time it turns on.

  - platform: template
    lights:
      pentair_lights:
        friendly_name: Pool Lights
        value_template: "{{ states('light.pool_lights')}}"
        turn_on: 
          - alias: "Color Swim"
            service: screenlogic.set_color_mode
            data:
              color_mode: color_swim
            target: 
              device_id: 5f3822b93d2f4c0d3ddef83d22838361
        turn_off: 
          service: light.turn_off
          entity_id: light.pool_lights