rsnodgrass / hass-poolmath

Pool Math for Home Assistant
Other
30 stars 9 forks source link
hacktoberfest hacs home-automation homeassistant pool swimming-pool

Pool Math for Home Assistant

release_badge release_date hacs_badge License

Buy Me A Coffee Donate

Creates sensors for pools being managed with Trouble Free Pools's Pool Math apps including Pool Math iOS and Pool Math Android. From the Trouble Free Pool website:

Supported Pool Math Values

Note: this requires a Trouble Free Pool Pool Math Premium subscription to access your pool or spa's data from the Pool Math cloud service.

Support

Community Support

Installation

Make sure Home Assistant Community Store (HACS) is installed, then add the repository: rsnodgrass/hass-poolmath

Configuration

Under Settings of the Pool Math iOS or Android application, find the Sharing section. Turn this on, which allows anyone with access to the unique URL to be able to view data about your pool. Your pool's URL will be displayed, use that in the YAML configuration for the poolmath sensor.

sensor:
  - platform: poolmath
    url: https://api.poolmathapp.com/share/7WPG8yL.json

NOTE: This updates the state from PoolMath every 2 minutes to keep from overwhelming their service, as the majority of Pool Math users update their data manual after testing rather than automated. The check interval can be changed in yaml config by adding a 'scan_interval' for the sensor.

Example Lovelace UI

entities:
  - entity: sensor.pool_fc
    name: Free Chlorine
  - entity: sensor.pool_ph
    name: pH
  - entity: sensor.pool_ta
    name: Total Alkalinity
  - entity: sensor.pool_cya
    name: CYA
  - entity: sensor.pool_ch
    name: Hardness
type: entities
title: Pool
show_header_toggle: false

Lovelace Example

Another single line Lovelace example using multiple-entity-row:

entities:
  - entity: sensor.pool_ph
    type: 'custom:multiple-entity-row'
    name: Pool
    state_header: pH
    secondary_info: last-changed
    entities:
      - entity: sensor.pool_fc
        name: FC
      - entity: sensor.pool_cc
        name: CC
      - entity: sensor.pool_ta
        name: TA
  - entity: sensor.hot_tub_ph
    type: 'custom:multiple-entity-row'
    name: Hot Tub
    state_header: pH
    secondary_info: last-changed
    entities:
      - entity: sensor.hot_tub_fc
        name: FC
      - entity: sensor.hot_tub_cc
        name: CC
      - entity: sensor.hot_tub_ta
        name: TA
type: entities

Lovelace Example

Feature Requests

poolmath:
  sources:
    - url: https://api.poolmathapp.com/share/AbC123.json
      name: "Swimming Pool"
    - url: https://api.poolmathapp.com/share/7WPG8yL.json
      name: "Spa"

See Also