How flip-dots/hasolixble works
Home Assistant Solix BLE discovers Anker devices, lets the user select a model, validates a Bluetooth connection, then establishes the runtime device and exposes sensor and switch entities. The README documents telemetry and controls spanning power, battery, solar, ports, display, lighting, and expansion batteries; the sampled sensor excerpt confirms many of these, while the switch excerpt shows output, display, and charger-port controls. The underlying SolixBLE library implements device communication and is external to this repository; unsampled capabilities are represented at the documented platform level.
Main entry points: __init__.py Entry setup · config_flow.py Config flow · sensor.py Sensor platform · switch.py Switch entities
Components 10
Discovery & setup
- Config flow
custom_components/solix_ble/config_flow.py - Model catalog
custom_components/solix_ble/const.py
Device runtime
- Entry setup
custom_components/solix_ble/__init__.py - SolixBLE device API
Monitoring
- Sensor platform
custom_components/solix_ble/sensor.py - Sensor entities
custom_components/solix_ble/sensor.py
Controls
- Switch platform
custom_components/solix_ble/switch.py - Switch entities
custom_components/solix_ble/switch.py
Other components
- Home Assistant user
- HA Bluetooth scanner
Connections 15
- HA Bluetooth scanner → Config flow: discovers device
README.md - Home Assistant user → Config flow: selects model
README.md - Config flow → Model catalog: uses models
custom_components/solix_ble/config_flow.py - Config flow → SolixBLE device API: validates connection
custom_components/solix_ble/config_flow.py - Config flow → Entry setup: creates entry
custom_components/solix_ble/config_flow.py - Entry setup → Model catalog: selects class
custom_components/solix_ble/__init__.py - Entry setup → SolixBLE device API: connects device
custom_components/solix_ble/__init__.py - Entry setup → Sensor platform: forwards setup
custom_components/solix_ble/__init__.py - Entry setup → Switch platform: forwards setup
custom_components/solix_ble/__init__.py - Sensor platform → Sensor entities: creates entities
custom_components/solix_ble/sensor.py - Sensor entities → SolixBLE device API: reads telemetry
custom_components/solix_ble/sensor.py - Sensor platform → Model catalog: uses status labels
custom_components/solix_ble/sensor.py - Switch platform → Switch entities: creates controls
custom_components/solix_ble/switch.py - Switch entities → SolixBLE device API: invokes device controls
custom_components/solix_ble/switch.py - Switch entities → SolixBLE device API: registers state callback
custom_components/solix_ble/switch.py