How yostinso/wash-connect works
WASH Connect is a Home Assistant integration that configures an account and laundry location, then polls the cloud service and exposes machine and account data as Home Assistant entities. The main runtime path is config flow → integration setup → coordinator polling → sensor platforms. The API client also handles token refresh and authentication; excerpts show its HTTP behavior, but not every API method or response mapping.
Main entry points: sensor.py Sensor platform · coordinator.py Data coordinator · __init__.py Integration setup · binary_sensor.py Availability sensor
Components 13
Account setup
- Config flow
custom_components/wash_connect/config_flow.py - Integration setup
custom_components/wash_connect/__init__.py
Polling runtime
- Data coordinator
custom_components/wash_connect/coordinator.py - Data helpers
custom_components/wash_connect/helpers.py - Integration constants
custom_components/wash_connect/const.py
Cloud API
- API client
custom_components/wash_connect/api.py - WASH Connect service
- Firebase auth
Home Assistant entities
- Sensor platform
custom_components/wash_connect/sensor.py - Availability sensor
custom_components/wash_connect/binary_sensor.py - HA sensor entities
- HA binary entity
Other components
- User
Connections 16
- User → Config flow: enters credentials
custom_components/wash_connect/config_flow.py - Config flow → API client: authenticates and locates
custom_components/wash_connect/config_flow.py - API client → WASH Connect service: sends API requests
custom_components/wash_connect/api.py - API client → Firebase auth: exchanges tokens
custom_components/wash_connect/api.py - Config flow → Integration setup: creates config entry
custom_components/wash_connect/config_flow.py - Integration setup → Data coordinator: creates and refreshes
custom_components/wash_connect/__init__.py - Integration setup → Sensor platform: forwards platform setup
custom_components/wash_connect/__init__.py - Integration setup → Availability sensor: forwards platform setup
custom_components/wash_connect/__init__.py - Data coordinator → API client: fetches machine and balance data
custom_components/wash_connect/coordinator.py - Data coordinator → Data helpers: flattens machine data
custom_components/wash_connect/coordinator.py - Sensor platform → Data coordinator: reads polled data
custom_components/wash_connect/sensor.py - Sensor platform → Data helpers: formats sensor values
custom_components/wash_connect/sensor.py - Sensor platform → HA sensor entities: adds entities
custom_components/wash_connect/sensor.py - Availability sensor → Data coordinator: reads machine status
custom_components/wash_connect/binary_sensor.py - Availability sensor → HA binary entity: adds entities
custom_components/wash_connect/binary_sensor.py - Availability sensor → Sensor platform: reuses device metadata
custom_components/wash_connect/binary_sensor.py