Home Assistant custom integration for controlling OpenFAN Micro fans.
This integration lets you control your OpenFAN Micro fan via its REST API, including:
- Setting the fan speed as a percentage
- Viewing the fan’s current speed (RPM) as a separate sensor entity
Most of this code is AI generated, so ymmv
If you plan to release via HACS:
- Go to HACS → Integrations → Custom repositories → Add
- Paste the repository URL where this integration is hosted
- Select “Integration”
- Click Add
Or install manually:
-
Copy the folder:
custom_components/openfan_microinto:
config/custom_components/openfan_micro -
Restart Home Assistant.
This integration supports Config Flow UI setup from Home Assistant’s front end.
- Go to Settings → Devices & Services
- Click + Add Integration
- Search for:
OpenFAN Micro - Enter:
- Host → The IP address of your OpenFAN Micro fan
- Name → (Optional) A custom name for your fan entity
When setup is complete, this integration will create:
-
Fan Entity
- Controls the fan speed (%)
- Reports current speed percentage
-
RPM Sensor Entity
- Displays the fan’s current RPM
Both entities are grouped under the same device in Home Assistant.
This integration uses:
- Config Flow UI
- Fan platform
- Sensor platform
MIT License