Skip to content

Commit

Permalink
feat: support more chlorinators
Browse files Browse the repository at this point in the history
  • Loading branch information
cryptk committed Jan 15, 2025
1 parent 4de1c38 commit 315b21a
Show file tree
Hide file tree
Showing 5 changed files with 10 additions and 6 deletions.
2 changes: 0 additions & 2 deletions custom_components/omnilogic_local/const.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,6 @@

from pyomnilogic_local.omnitypes import OmniType

# from homeassistant.backports.enum import StrEnum

DOMAIN: Final[str] = "omnilogic_local"
KEY_COORDINATOR: Final[str] = "coordinator"
DEFAULT_SCAN_INTERVAL: Final[int] = 10
Expand Down
4 changes: 2 additions & 2 deletions custom_components/omnilogic_local/manifest.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,9 @@
"issue_tracker": "https://github.com/cryptk/haomnilogic-local/issues",
"loggers": ["pyomnilogic_local"],
"requirements": [
"python_omnilogic_local==0.18.0"
"python_omnilogic_local==0.19.0"
],
"ssdp": [],
"version": "0.7.11",
"version": "0.7.12",
"zeroconf": []
}
3 changes: 3 additions & 0 deletions custom_components/omnilogic_local/number.py
Original file line number Diff line number Diff line change
Expand Up @@ -92,6 +92,9 @@ async def async_setup_entry(hass: HomeAssistant, entry: ConfigEntry, async_add_e
"Chlorinator ORP control is not supported yet, "
"please raise an issue: https://github.com/cryptk/haomnilogic-local/issues"
)
case ChlorinatorDispenserType.LIQUID:
# Working in issue #116 on this support
pass
case _:
_LOGGER.warning(
"Your system has an unsupported chlorinator, please raise an issue: https://github.com/cryptk/haomnilogic-local/issues"
Expand Down
5 changes: 4 additions & 1 deletion custom_components/omnilogic_local/sensor.py
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ async def async_setup_entry(hass: HomeAssistant, entry: ConfigEntry, async_add_e
# As far as I can tell, "external input" sensors are not exposed in the telemetry,
# they are only used for things like equipment interlocks
pass
case CSADType.ACID:
case CSADType.ACID | CSADType.CO2:
_LOGGER.debug(
"Configuring sensor for CSAD ACID with ID: %s, Name: %s",
sensor.msp_config.system_id,
Expand Down Expand Up @@ -131,6 +131,9 @@ async def async_setup_entry(hass: HomeAssistant, entry: ConfigEntry, async_add_e
entities.append(
OmniLogicChlorinatorSaltLevelSensorEntity(coordinator=coordinator, context=system_id, sensor_type="instant")
)
case ChlorinatorDispenserType.LIQUID:
# It looks like there are no liquid sensors exposed in the telemetry
pass
case _:
_LOGGER.warning(
"Your system has an unsupported chlorinator, please raise an issue: https://github.com/cryptk/haomnilogic-local/issues"
Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[project]
name = "haomnilogic-local"
version = "0.7.11"
version = "0.7.12"
description = "A Home Assistant integration for Hayward OmniLogic/OmniHub pool controllers using the local UDP api"
readme = "README.md"
authors = [
Expand Down

0 comments on commit 315b21a

Please sign in to comment.