Detecting Pool Chlorinator Dropouts using Power signal patterns

The Backstory: How Power Trends Caught a Hardware Failure

My Zodiac TRi-XO saltwater chlorinator recently threw a “Check Power Supply” fault. After swapping in a spare unit and opening up the original, I found burnt-out wiring on the internal 12V cooling fan. This may not be the root cause, but it highlighted that I need to monitor the cell.

Looking back through my Home Assistant Shelly Pro 1PM power history (which monitors the GPO feeding the chlorinator and variable-speed pump), I realised the power trace had captured the failure progression days before the unit finally gave up:

  1. Healthy Duty Cycles vs. Faults: Normally, the TRi-XO uses clean, regular square-wave duty cycles (e.g. ~7.5 mins ON, ~2.5 mins OFF at 75% output) on top of the pump’s steady baseline load.
  2. Complete Cutouts (flatline periods): Power to the cell dropped completely, leaving just the steady baseline wattage of the pump.
  3. Erratic Short-Cycling: The cell repeatedly pulsing on for 1–2 minutes and tripping off again.

I built a 3-sensor setup in Home Assistant to isolate the chlorinator’s wattage from the variable-speed pump and alert immediately if the cell drops out or starts short-cycling.


How It Works: The 3-Sensor Setup

The Shelly Pro 1PM measures the combined wattage of the pool pump and chlorinator together, however, each pump speed has a predictable baseline wattage:

  • Pump OFF (Standby): < 25W
  • Speed 1 (Eco): ~130W pump baseline (+ ~125W–209W cell = ~255W–339W)
  • Speed 2 (Medium): ~265W pump baseline (+ ~125W–209W cell = ~390W–474W)
  • Speed 3 (High): ~815W pump baseline (+ ~185W–209W cell = ~1,000W–1,024W)

By subtracting the active speed’s baseline from total power, the cell’s real-time wattage can be separately tracked without needing separate CT clamps or smart plugs.

Sensor 1: Chlorinator Cell Power (Template Sensor)

This sensor detects which speed band the pump is running in and subtracts that speed’s baseline wattage to isolate the chlorinator cell’s draw. (Note: This is set for Chlorinator LRG cell, adjust the first threshold from 380 to 260 if using a MED cell that draws ~125W).

Click to view templates.yaml — Chlorinator Cell Power
- sensor:
    - name: "Chlorinator Cell Power"
      unique_id: chlorinator_cell_power
      unit_of_measurement: "W"
      device_class: power
      state: >
        {% set total = states('sensor.pool_switch_power') | float(0) %}
        {% if total < 25 %}
          0
        {% elif total < 380 %}
          {# Speed 1 (~130W baseline) #}
          {{ [0, (total - 130)] | max | round(0) }}
        {% elif total < 600 %}
          {# Speed 2 (~265W baseline) #}
          {{ [0, (total - 265)] | max | round(0) }}
        {% else %}
          {# Speed 3 (~815W baseline) #}
          {{ [0, (total - 815)] | max | round(0) }}
        {% endif %}

Sensor 2: Chlorinator Cell Power 30m Average (Statistics)

Because the chlorinator normally cycles ON and OFF every few minutes to regulate output percentage (and pauses briefly during polarity reversals), a raw 0W reading isn’t necessarily a fault. A 30-minute rolling mean sensor smooths out normal duty cycles while catching prolonged dropouts and erratic short-cycling.

Click to view configuration.yaml — 30m Statistics Sensor
sensor:
  - platform: statistics
    name: "Chlorinator Cell Power 30m Average"
    unique_id: chlorinator_cell_power_30m_average
    entity_id: sensor.chlorinator_cell_power
    state_characteristic: mean
    max_age:
      minutes: 30

Sensor 3: Chlorinator Cell Status (Multi-State Template Sensor)

This combines the raw cell power, state duration, and 30-minute rolling average into four clear states: off, normal, short_cycling, and dropout.

Click to view templates.yaml — Chlorinator Cell Status
- sensor:
    - name: "Chlorinator Cell Status"
      unique_id: chlorinator_cell_status
      icon: >
        {% if is_state('sensor.chlorinator_cell_status', 'dropout') %}
          mdi:alert-octagon
        {% elif is_state('sensor.chlorinator_cell_status', 'short_cycling') %}
          mdi:alert
        {% elif is_state('sensor.chlorinator_cell_status', 'normal') %}
          mdi:check-circle
        {% else %}
          mdi:power-standby
        {% endif %}
      state: >
        {% set pump_on = states('sensor.pool_switch_power') | float(0) > 25 %}
        {% set cell_w = states('sensor.chlorinator_cell_power') | float(0) %}
        {% set avg_30m = states('sensor.chlorinator_cell_power_30m_average') | float(100) %}
        {% set mins_in_state = (now() - states.sensor.chlorinator_cell_power.last_changed).total_seconds() / 60 %}

        {% if not pump_on %}
          off
        {% elif (cell_w < 25) and (mins_in_state >= 30) %}
          dropout
        {% elif (cell_w > 40) and (avg_30m < 40) %}
          short_cycling
        {% else %}
          normal
        {% endif %}

Push Notification Automation

Triggers a mobile notification whenever Chlorinator Cell Status enters dropout or short_cycling:

Click to view Alert Automation YAML
alias: "Alert: Pool Chlorinator Fault"
description: "Notifies when the TRi-XO cell drops out or begins short-cycling"
triggers:
  - trigger: state
    entity_id: sensor.chlorinator_cell_status
    to:
      - "dropout"
      - "short_cycling"
    for:
      minutes: 5
actions:
  - action: notify.mobile_app_your_phone
    data:
      title: "⚠️ Pool Chlorinator {{ states('sensor.chlorinator_cell_status') | replace('_', ' ') | title }}"
      message: >
        Pool pump is running ({{ states('sensor.pool_switch_power') }}W), but the chlorinator cell is in 
        {{ states('sensor.chlorinator_cell_status') | replace('_', ' ') }} state 
        (30m avg: {{ states('sensor.chlorinator_cell_power_30m_average') }}W). Check cell, salt, or cooling fan.
mode: single