Skip to content

Ondilo Binding ​

This binding integrates Ondilo ICO pool monitoring devices with openHAB, allowing you to monitor and automate your pool environment using openHAB’s rules and UI.

Supported Things ​

  • account: Represents your Ondilo Account (authentication using OAuth2 flow)
  • ondilo: Represents an individual Ondilo ICO device

Ondilo ICO Pool as well as Spa devices are supported. Chlorine as well as salt water.

Discovery ​

Ondilo ICOs are discovered automatically after the account is authorized and online. Each Ondilo ICO will appear as a new Thing in the inbox.

Thing Configuration ​

account Thing Configuration ​

  • url: The URL of the openHAB instance. Required for the redirect during OAuth2 authentication flow (e.g. http://localhost:8080)
  • refreshInterval: Polling interval in seconds (default: 900 s)

ondilo Thing Configuration ​

  • id: The ID of an Ondilo ICO device. Set via discovery service (e.g. 12345)

Ondilo ICO takes measures every hour. Higher polling will not increase the update interval. The binding automatically adjusts the polling schedule to match the expected time of the next measure, which is typically 1 hour (plus 4 minutes buffer) after the previous measure.

The requests to the Ondilo Customer API are limited to the following per user quotas:

  • 5 requests per second
  • 30 requests per hour

Example using default interval:

  • account Thing performs 2 requests per cycle - 8 requests per hour per Ondilo Account
  • ondilo Thing performs 4 requests per cycle - 16 requests per hour per Ondilo ICO

With the default 15-minute refresh interval, one pool uses 24 requests per hour, within Ondilo's limit of 30 requests per hour per user.

Channels ​

account Channels ​

Channel IDTypeAdvancedAccessDescription
poll-updateSwitchtrueR/WPoll status update from the cloud (get latest measures, not a trigger for new measures)

Measures Channels ​

Channel IDTypeAdvancedAccessDescription
temperatureNumber:TemperaturefalseRWater temperature in the pool
temperature-trendNumber:TemperaturetrueRChange in water temperature since last measure
phNumberfalseRpH value of the pool water
ph-trendNumbertrueRChange in pH value since last measure
orpNumber:ElectricPotentialfalseROxidation-reduction potential (ORP)
orp-trendNumber:ElectricPotentialtrueRChange in ORP since last measure
saltNumber:DensityfalseRSalt concentration in the pool (salt pools only)
salt-trendNumber:DensitytrueRChange in salt concentration since last measure
tdsNumber:DimensionlessfalseRTotal dissolved solids in the pool (chlor pools only)
tds-trendNumber:DimensionlesstrueRChange in TDS since last measure
batteryNumber:DimensionlessfalseRBattery level of the device
rssiNumberfalseRSignal strength (RSSI)
value-timeDateTimetrueRTimestamp of the set of measures

Recommendations Channels ​

Channel IDTypeAdvancedAccessDescription
recommendation-idNumbertrueRUnique ID of the current recommendation
recommendation-titleStringfalseRTitle of the current recommendation
recommendation-messageStringfalseRMessage of the current recommendation
recommendation-created-atDateTimetrueRCreation time of the current recommendation
recommendation-updated-atDateTimetrueRLast update time of the current recommendation
recommendation-statusStringfalseR/WStatus of the current recommendation (waiting/ok)
sendCommand("ok") to validate current waiting recommendation
recommendation-deadlineDateTimetrueRDeadline of the current recommendation

Configuration Channels ​

Channel IDTypeAdvancedAccessDescription
temperature-lowNumber:TemperaturetrueRMinimum water temperature
temperature-highNumber:TemperaturetrueRMaximum water temperature
ph-lowNumbertrueRMinimum pH value
ph-highNumbertrueRMaximum pH value
orp-lowNumber:ElectricPotentialtrueRMinimum ORP value
orp-highNumber:ElectricPotentialtrueRMaximum ORP value
salt-lowNumber:DensitytrueRMinimum salt concentration (salt pools only)
salt-highNumber:DensitytrueRMaximum salt concentration (salt pools only)
tds-lowNumber:DimensionlesstrueRMinimum TDS value (chlor pools only)
tds-highNumber:DimensionlesstrueRMaximum TDS value (chlor pools only)

Full Example ​

Thing Demo ​

dsl
Bridge ondilo:account:ondiloAccount [ url="http://localhost:8080", refreshInterval=900 ] {
    Thing ondilo 12345 [ id=12345 ]    // 12345 is an example of the id received via discovery
}

Item Demo ​

dsl
Number:Temperature        Ondilo_Temperature  "Pool Temperature [%.1f %unit%]"  { channel="ondilo:ondilo:ondiloAccount:12345:measure#temperature" }
Number                    Ondilo_pH           "Pool pH [%.2f]"                  { channel="ondilo:ondilo:ondiloAccount:12345:measure#ph" }
Number:ElectricPotential  Ondilo_ORP          "Pool ORP [%.0f %unit%]"          { channel="ondilo:ondilo:ondiloAccount:12345:measure#orp" }
Number:Density            Ondilo_Salt         "Pool Salt [%.0f %unit%]"         { channel="ondilo:ondilo:ondiloAccount:12345:measure#salt" }
Number:Dimensionless      Ondilo_Battery      "Pool Battery [%d %%]"            { channel="ondilo:ondilo:ondiloAccount:12345:measure#battery" }
Number:Dimensionless      Ondilo_RSSI         "Pool RSSI [%d]"                  { channel="ondilo:ondilo:ondiloAccount:12345:measure#rssi" }

String                    Ondilo_RecTitle     "Recommendation Title [%s]"       { channel="ondilo:ondilo:ondiloAccount:12345:recommendation#title" }
String                    Ondilo_RecMessage   "Recommendation Message [%s]"     { channel="ondilo:ondilo:ondiloAccount:12345:recommendation#message" }
String                    Ondilo_RecStatus    "Recommendation Status [%s]"      { channel="ondilo:ondilo:ondiloAccount:12345:recommendation#status" }

Sitemap Demo ​

dsl
sitemap demo label="Ondilo ICO" {
    Frame label="Measures" {
        Text        item=Ondilo_Temperature
        Text        item=Ondilo_pH
        Text        item=Ondilo_ORP
        Text        item=Ondilo_Battery
        Text        item=Ondilo_RSSI
    }
    Frame label="Recommendations" {
        Text        item=Ondilo_RecTitle
        Text        item=Ondilo_RecMessage
        Text        item=Ondilo_RecStatus
    }
}

Troubleshooting ​

  • If authorization fails, check the openHAB log for error messages and verify your redirect URI url
  • For more details, enable TRACE logging for org.openhab.binding.ondilo

Resources ​