How dvd-dev/hilo works
Hilo is an unofficial Home Assistant integration. The main workflow is account setup and OAuth authentication, followed by integration-managed device data becoming Home Assistant climate, light, switch, and sensor entities; those entities expose controls and energy/challenge information. The README also documents configurable energy-meter generation and outdoor-weather sensing. Source excerpts show entity implementations and energy managers, but omit much of integration setup and sensor logic, so those relationships are left unverified where necessary.
Main entry points: __init__.py Integration runtime · climate.py Thermostat controls · light.py Light controls · switch.py Switch controls
Components 12
Setup and authentication
- Configuration flow
custom_components/hilo/config_flow.py - OAuth2 authentication
custom_components/hilo/oauth2.py
Integration runtime
- Integration runtime
custom_components/hilo/__init__.py - Integration settings
custom_components/hilo/const.py
Device entities
- Shared entity base
custom_components/hilo/entity.py - Thermostat controls
custom_components/hilo/climate.py - Light controls
custom_components/hilo/light.py - Switch controls
custom_components/hilo/switch.py
Energy and insights
- Sensors and challenges
custom_components/hilo/sensor.py - Energy managers
custom_components/hilo/managers.py
Other components
- Home Assistant user
- Hilo service
Connections 18
- Home Assistant user → Configuration flow: configures integration
README.md - Configuration flow → OAuth2 authentication: uses authentication
custom_components/hilo/config_flow.py - OAuth2 authentication → Hilo service: requests tokens
custom_components/hilo/oauth2.py - Integration runtime → Hilo service: connects account
- Integration runtime → Integration settings: uses settings
custom_components/hilo/__init__.py - Thermostat controls → Shared entity base: extends
custom_components/hilo/climate.py - Light controls → Shared entity base: extends
custom_components/hilo/light.py - Switch controls → Shared entity base: extends
custom_components/hilo/switch.py - Thermostat controls → Integration runtime: reads devices
custom_components/hilo/climate.py - Light controls → Integration runtime: reads devices
custom_components/hilo/light.py - Switch controls → Integration runtime: reads devices
custom_components/hilo/switch.py - Thermostat controls → Hilo service: sets temperature
- Light controls → Hilo service: sets light attributes
- Switch controls → Hilo service: sets switch state
- Sensors and challenges → Integration runtime: uses integration data
custom_components/hilo/sensor.py - Energy managers → Home Assistant user: configures energy meters
custom_components/hilo/managers.py - Energy managers → Home Assistant user: updates energy dashboard
custom_components/hilo/managers.py - Home Assistant user → Sensors and challenges: reads energy and weather
README.md