A Home Assistant integration for the Open Filament Sensor — an ESP32-based filament jam detector for resin 3D printers.
All sensors are grouped as a single device in Home Assistant. No manual configuration.yaml editing required.
- Auto-discovers all OFS sensors as a named HA device
- Supports multiple OFS devices (one per printer)
- Optional camera linking for snapshot notifications (works with Elegoo Printers for Home Assistant)
- Includes automation blueprints for jam and print complete notifications
- Open HACS → Integrations → ⋮ → Custom repositories
- Add
https://github.com/StaRky33/ofs-hacsas an Integration - Install "Open Filament Sensor"
- Restart Home Assistant
Copy custom_components/open_filament_sensor/ into your HA custom_components/ folder and restart.
- Go to Settings → Integrations → Add Integration
- Search for Open Filament Sensor
- Enter your device IP (e.g.
192.168.1.25) and a friendly name (e.g.Centauri Carbon) - Optionally select a camera entity from your Elegoo integration for snapshot notifications
- Done — all sensors appear under a single device entry
Two blueprints are included but you can also directly copy the automations from the "automations" folder.
Sends a push notification with a camera snapshot when a jam is detected.
Sends a push notification with print duration and a camera snapshot when a print finishes.
| Sensor | Description | Unit |
|---|---|---|
| Printer Connected | WebSocket connection status | — |
| Is Printing | Whether a print is active | — |
| Print Status | Human-readable print status | — |
| Filament Stopped | Jam detected flag | — |
| Filament Runout | Runout detected flag | — |
| Hard Jam % | Hard jam confidence | % |
| Soft Jam % | Soft jam confidence | % |
| Grace Active | Grace period active | — |
| Grace State | Human-readable grace state | — |
| Expected Filament | Expected filament fed | mm |
| Actual Filament | Actual filament fed | mm |
| Expected Delta | Expected vs actual delta | mm |
| Current Deficit | Current filament deficit | mm |
| Progress | Print progress | % |
| Current Layer | Current print layer | — |
| Total Layers | Total print layers | — |
| Z Height | Current Z height | mm |
| Print Speed | Print speed | % |
| Expected Rate | Expected flow rate | mm/s |
| IP Address | Device IP | — |
| MAC Address | Device MAC | — |
- Home Assistant 2024.1.0 or newer
- OFS device running firmware with
/sensor_statusendpoint - HACS installed
MIT