How crazymike249/ha-addons works
This Home Assistant add-on monitors configured audio streams for now-playing metadata and can publish changes to MQTT. Its workflow loads options, polls each stream, probes and decodes format-specific metadata, suppresses unchanged titles, then logs and optionally publishes updates. The implementation is concentrated in one Python file; the config file and deployment assets are present in the tree but their behavior is not established by the excerpts.
Main entry points: stream_monitor.py Metadata router
Components 18
Configuration and runtime
- Options loader
stream_monitor/stream_monitor.py - Monitor entry point
stream_monitor/stream_monitor.py - Polling loop
stream_monitor/stream_monitor.py - Poll stream
stream_monitor/stream_monitor.py
Metadata extraction
- Metadata router
stream_monitor/stream_monitor.py - MP3 metadata
stream_monitor/stream_monitor.py - AAC metadata
stream_monitor/stream_monitor.py - OGG metadata
stream_monitor/stream_monitor.py - ffprobe runner
stream_monitor/stream_monitor.py - Text decoder
stream_monitor/stream_monitor.py
Updates and integrations
- Change filter
stream_monitor/stream_monitor.py - Console logger
stream_monitor/stream_monitor.py - MQTT setup
stream_monitor/stream_monitor.py - MQTT publisher
stream_monitor/stream_monitor.py
Other components
- Home Assistant user
- Audio stream
- ffprobe
- MQTT broker
Connections 25
- Home Assistant user → Options loader: configures
- Options loader → Monitor entry point: provides options
stream_monitor/stream_monitor.py - Monitor entry point → MQTT setup: initializes
stream_monitor/stream_monitor.py - Monitor entry point → Polling loop: starts
stream_monitor/stream_monitor.py - Polling loop → Poll stream: schedules
stream_monitor/stream_monitor.py - Poll stream → Metadata router: requests metadata
stream_monitor/stream_monitor.py - Metadata router → MP3 metadata: dispatches
stream_monitor/stream_monitor.py - Metadata router → AAC metadata: dispatches
stream_monitor/stream_monitor.py - Metadata router → OGG metadata: dispatches
stream_monitor/stream_monitor.py - Metadata router → MP3 metadata: tries fallback
stream_monitor/stream_monitor.py - Metadata router → AAC metadata: tries fallback
stream_monitor/stream_monitor.py - Metadata router → OGG metadata: tries fallback
stream_monitor/stream_monitor.py - MP3 metadata → ffprobe runner: runs probes
stream_monitor/stream_monitor.py - AAC metadata → ffprobe runner: runs probe
stream_monitor/stream_monitor.py - OGG metadata → ffprobe runner: runs probe
stream_monitor/stream_monitor.py - ffprobe runner → ffprobe: executes
stream_monitor/stream_monitor.py - MP3 metadata → Text decoder: decodes tags
stream_monitor/stream_monitor.py - AAC metadata → Text decoder: decodes title
stream_monitor/stream_monitor.py - OGG metadata → Text decoder: decodes tags
stream_monitor/stream_monitor.py - Poll stream → Change filter: checks changes
stream_monitor/stream_monitor.py - Change filter → Console logger: logs title
stream_monitor/stream_monitor.py - Change filter → MQTT publisher: publishes changes
stream_monitor/stream_monitor.py - MQTT publisher → MQTT broker: publishes MQTT
stream_monitor/stream_monitor.py - MQTT setup → MQTT broker: connects
stream_monitor/stream_monitor.py - Poll stream → Audio stream: probes URL
stream_monitor/stream_monitor.py