How milanvives/hacs-twinpool works
Project type and purpose
• This is a Home Assistant custom integration (Python “plugin”) named twinpool_sensor.
• Purpose: fetch pH, flow, and redox readings from a WiFi pool sensor (via a cloud or LAN API) and expose them as Home Assistant Sensor entities.
File structure
• custom_components/twinpool_sensor/ – all integration code lives here.
• manifest.json: integration metadata (name, version, requirements, HA core version).
• config_flow.py: handles the UI‐driven setup (email/password/domain).
• sensor.py: main logic creating Sensor entities and polling the pool API.
• const.py: API endpoints, default IO mappings, and other constants.
• strings.json & translations/: UI label definitions.
• No separate “frontend” or “backend” folders: it plugs directly into HA core.
• No build scripts; uses Python and Home Assistant’s runtime.
README for additional insights
• Uses secure login over HTTP(S) to external pool API.
• Runtime hooks into Home Assistant’s integration registry.
• Installed via HACS or manually dropped in custom_components.