Flux Guide ← All widgets
Configuration

Media Sources

The media widget's browser spans every source you've connected: Home Assistant media, your Plex servers, and SMB network storage (NAS). You pick something to play from one place — where it ends up depends on the source.

Open the browser from a media widget and you get a tab for each source — Music, Home, Plex, and NAS. Plex and NAS are set up once in Settings → Media; after that they appear in the browser ready to play.

Home Assistant media

The Home tab browses Home Assistant's own media tree — the same media_source browser the Home Assistant app shows. Flux starts at the root and lets you tap into folders; playable items show a play button.

Two ways to reach a NAS A share mounted into Home Assistant shows up under Home and plays on your speakers. The same files reached directly over SMB show up under NAS and play on this device. Same files, different path, different destination.

Plex

Plex uses the documented plex.tv sign-in — no account password is ever entered in Flux. Set it up in Settings → Media → Plex:

  1. Tap Sign in to Plex. Flux requests a short 4-character code from plex.tv.
  2. Enter that code at plex.tv/link (or tap Authorize in Plex, which opens Plex with the code already filled in). Flux polls until you authorize, then stores only the access token in your Keychain.
  3. Flux discovers the servers on your account. Pick one (Flux prefers a local connection when available).
  4. Browse the server's libraries — Music, Movies, TV — down through artists, albums, shows, and seasons to individual tracks, movies, and episodes.
  5. Tap a playable item to play it. Flux builds a direct stream URL (your token appended) and hands it to the widget's speakers.
Where Plex playback goes From a media widget's browser, Plex plays on the widget's selected speakers — Flux passes the stream URL to media_player.play_media (content type music for audio, video for movies/episodes/shows/seasons). The standalone browser in Settings plays Plex in a built-in player on this device.

NAS (SMB)

Flux talks to SMB file servers directly. Set one up in Settings → Media → Network Storage:

  1. Discover servers on your network. Flux browses Bonjour for SMB, AFP, and NFS file-sharing services and lists what it finds. Tap one to pre-fill its address.
  2. Or add manually: enter the host or IP, the SMB port (default 445), the share/volume name, and a username and password. (Leave the credentials empty for a guest / public share.)
  3. The password is stored in your Keychain, synced across your devices — never in plain settings. Only the non-secret connection info is saved.
  4. Browse: pick a saved server, then a share, then drill through folders. Flux marks audio and video files as playable.
  5. Tap a media file to play it.
SMB only for browsing Discovery finds SMB, AFP, and NFS boxes, but Flux reads files over SMB. Use the SMB share for browsing and playback.

Where it plays

The destination depends on the source — this is the part worth remembering:

SourcePlays onHow
Home Assistant mediaThe widget's selected speakersmedia_player.play_media with the media's content id.
PlexThe widget's selected speakersPlex stream URL → media_player.play_media.
NAS (SMB)This deviceFlux downloads the file to a temp location and plays it locally (AVPlayer). A speaker can't read SMB.

Notes