<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>DEV Community: Dreht</title>
    <description>The latest articles on DEV Community by Dreht (@_b11e1ad01378eddf05ae).</description>
    <link>https://dev.to/_b11e1ad01378eddf05ae</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F4272601%2F649821c6-b687-473a-909a-4b01289c59aa.png</url>
      <title>DEV Community: Dreht</title>
      <link>https://dev.to/_b11e1ad01378eddf05ae</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/_b11e1ad01378eddf05ae"/>
    <language>en</language>
    <item>
      <title>3 Ways to Automatically Rotate Android Wallpapers from a Self-Hosted Immich Server</title>
      <dc:creator>Dreht</dc:creator>
      <pubDate>Sun, 29 Nov 2026 16:03:34 +0000</pubDate>
      <link>https://dev.to/_b11e1ad01378eddf05ae/3-ways-to-automatically-rotate-android-wallpapers-from-a-self-hosted-immich-server-4bb</link>
      <guid>https://dev.to/_b11e1ad01378eddf05ae/3-ways-to-automatically-rotate-android-wallpapers-from-a-self-hosted-immich-server-4bb</guid>
      <description>&lt;p&gt;If you self-host &lt;a href="https://immich.app/" rel="noopener noreferrer"&gt;Immich&lt;/a&gt;, you probably know this feeling: you spent hours setting up backups, machine learning, and storage, and now thousands of your best family and travel photos sit safely on a server in your closet.&lt;/p&gt;

&lt;p&gt;And you almost never see them unless you remember to open the app.&lt;/p&gt;

&lt;p&gt;When I switched from iPhone to Android, the one feature I genuinely missed was iOS Photo Shuffle on the lock screen. When my wife was pregnant with our second child and dealing with awful morning sickness, she told me that seeing random photos of our first kid rotate on her wallpaper was one of the few things that kept her smiling through the day. I wanted that same experience on Android, pulled straight from my Immich albums.&lt;/p&gt;

&lt;p&gt;The problem is that Android wallpaper automation with a self-hosted server hits three annoying snags right away:&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;
&lt;strong&gt;LAN-only servers break when you leave home&lt;/strong&gt; (and fetching full originals over cellular burns mobile data).&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Syncing a whole album to your phone&lt;/strong&gt; quickly eats gigabytes of storage.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Android Doze / battery optimization&lt;/strong&gt; loves killing background jobs after a few hours.&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;Below are the three practical ways to solve this on Android, including the exact Immich API scopes and trade-offs for each approach.&lt;/p&gt;




&lt;h2&gt;
  
  
  First: 2 minutes of prep in Immich (useful for any approach)
&lt;/h2&gt;

&lt;p&gt;Whichever method you choose, do these two things in Immich first:&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;
&lt;strong&gt;Create a dedicated wallpaper album&lt;/strong&gt; (for example, &lt;code&gt;Wallpaper&lt;/code&gt; or &lt;code&gt;Family Favorites&lt;/code&gt;). Pulling from your entire timeline sounds nice until a screenshot of a tracking number or a blurry receipt shows up on your lock screen.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Create a scoped read-only API key&lt;/strong&gt; under &lt;strong&gt;Account Settings -&amp;gt; API Keys -&amp;gt; New API Key&lt;/strong&gt; instead of using an admin key. For reading albums and downloading images, you only need:

&lt;ul&gt;
&lt;li&gt;&lt;code&gt;server.about&lt;/code&gt;&lt;/li&gt;
&lt;li&gt;&lt;code&gt;album.read&lt;/code&gt;&lt;/li&gt;
&lt;li&gt;&lt;code&gt;asset.read&lt;/code&gt;&lt;/li&gt;
&lt;li&gt;&lt;code&gt;asset.view&lt;/code&gt;&lt;/li&gt;
&lt;li&gt;&lt;code&gt;asset.download&lt;/code&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;/ol&gt;




&lt;h2&gt;
  
  
  Option 1: Tasker (or MacroDroid) + Immich REST API
&lt;/h2&gt;

&lt;p&gt;If you already use Tasker and enjoy wiring things yourself, you do not need another app. You can query the Immich API directly on a schedule or Wi-Fi connected event:&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;
&lt;strong&gt;Fetch the album's asset list&lt;/strong&gt;:
&lt;/li&gt;
&lt;/ol&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;   curl -H &lt;span class="s2"&gt;"x-api-key: YOUR_SCOPED_KEY"&lt;/span&gt; \
     &lt;span class="s2"&gt;"http://YOUR_IMMICH_HOST:2283/api/albums/ALBUM_ID"&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;ol&gt;
&lt;li&gt;
&lt;strong&gt;Pick a random image asset ID&lt;/strong&gt; from the &lt;code&gt;assets&lt;/code&gt; array (filter out videos where &lt;code&gt;type != "IMAGE"&lt;/code&gt;).&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Download a screen-sized copy&lt;/strong&gt; (using &lt;code&gt;preview&lt;/code&gt; instead of &lt;code&gt;original&lt;/code&gt; avoids pulling 15MB RAW/HEIC files):
&lt;/li&gt;
&lt;/ol&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;   curl -H &lt;span class="s2"&gt;"x-api-key: YOUR_SCOPED_KEY"&lt;/span&gt; \
     &lt;span class="s2"&gt;"http://YOUR_IMMICH_HOST:2283/api/assets/ASSET_ID/thumbnail?size=preview"&lt;/span&gt; \
     -o /sdcard/Download/immich_wp.jpg
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;ol&gt;
&lt;li&gt;
&lt;strong&gt;Call Tasker's &lt;code&gt;Set Wallpaper&lt;/code&gt; action&lt;/strong&gt; pointing at that file.&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;&lt;strong&gt;Best for:&lt;/strong&gt; Tinkerers who already own Tasker and want full script control (for example, rotating only at sunrise or when charging).&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Watch out for:&lt;/strong&gt; You will need to guard the task so it only runs on your home Wi-Fi SSID (otherwise it fails outside your LAN), handle HEIC/orientation quirks on some devices, and decide whether to cache a few photos locally if you want rotation to keep working while traveling.&lt;/p&gt;




&lt;h2&gt;
  
  
  Option 2: Syncthing (or FolderSync) + a local wallpaper changer
&lt;/h2&gt;

&lt;p&gt;Another solid self-hosted pattern is skipping the Immich API altogether:&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;If you use &lt;strong&gt;Immich External Libraries&lt;/strong&gt; (or export a curated folder on your NAS), sync that folder one-way to a local folder on your Android phone with &lt;strong&gt;Syncthing&lt;/strong&gt; or &lt;strong&gt;FolderSync&lt;/strong&gt; (set to Wi-Fi only).&lt;/li&gt;
&lt;li&gt;Point any offline Android wallpaper rotator (such as &lt;strong&gt;Muzei&lt;/strong&gt; or &lt;strong&gt;Wallpaper Changer&lt;/strong&gt;) at that local folder.&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;&lt;strong&gt;Best for:&lt;/strong&gt; People who already run Syncthing on their phone and maintain curated folders on their NAS.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Watch out for:&lt;/strong&gt;&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Immich albums are database-level groupings, not filesystem folders, so you cannot easily sync a virtual Immich album (or a partner's shared album) this way without extra scripts.&lt;/li&gt;
&lt;li&gt;Keeping hundreds of full-resolution photos synced permanently takes up phone storage.&lt;/li&gt;
&lt;/ul&gt;




&lt;h2&gt;
  
  
  Option 3: Use a dedicated Immich wallpaper app (e.g. ImmiChange)
&lt;/h2&gt;

&lt;p&gt;If you want virtual and shared Immich album support without maintaining Tasker scripts or mirroring gigabytes of files via Syncthing, a dedicated client is the simplest route.&lt;/p&gt;

&lt;p&gt;&lt;em&gt;(Full disclosure: after running into the Tasker and storage trade-offs above, I built an unofficial Android app for this called &lt;a href="https://play.google.com/store/apps/details?id=com.zerowebcreate.immichange" rel="noopener noreferrer"&gt;ImmiChange&lt;/a&gt;. I'm a solo dev in Japan, so read this section with that in mind.)&lt;/em&gt;&lt;/p&gt;

&lt;p&gt;The setup takes about two minutes:&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;
&lt;strong&gt;Allow unrestricted battery usage&lt;/strong&gt; during onboarding so Android Doze does not kill background rotation.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Add your home Wi-Fi SSID&lt;/strong&gt; (optional, but recommended if your Immich is LAN-only or you want zero cellular usage).&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Enter your Immich server URL&lt;/strong&gt; (private LAN URLs like &lt;code&gt;http://192.168.1.50:2283&lt;/code&gt; work too) and &lt;strong&gt;paste the scoped read-only API key&lt;/strong&gt; you created above. The key is stored encrypted on-device (&lt;code&gt;EncryptedSharedPreferences&lt;/code&gt;, AES-256-GCM) and the app talks directly to your server with no relay.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Select your wallpaper album&lt;/strong&gt;, set a cache cap (default &lt;code&gt;20MB&lt;/code&gt;), choose a trigger (&lt;strong&gt;On Screen Off&lt;/strong&gt; or a fixed interval), and tap &lt;strong&gt;Sync Now&lt;/strong&gt; once to fill the local pool.&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;From there, rotation runs off that small local cache and only refills when you are back on your home Wi-Fi, so it keeps working even while traveling or when your server is offline.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Best for:&lt;/strong&gt; Anyone who wants set-once rotation across Immich albums (or local photos on a family member's phone) without scripting or filling up phone storage.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Watch out for:&lt;/strong&gt; It is closed-source (not FOSS) and Android-only. Core rotation with one Immich album (including shared albums) or local photos is free; extras like multiple albums, swipe/gyro parallax, EXIF date stamps, widgets, and TopShot are a one-time Pro purchase.&lt;/p&gt;




&lt;h2&gt;
  
  
  Which approach should you pick?
&lt;/h2&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Approach&lt;/th&gt;
&lt;th&gt;Setup effort&lt;/th&gt;
&lt;th&gt;Works with virtual / shared Immich albums&lt;/th&gt;
&lt;th&gt;Phone storage impact&lt;/th&gt;
&lt;th&gt;Best for&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;&lt;strong&gt;Tasker + Immich API&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;Medium&lt;/td&gt;
&lt;td&gt;Yes&lt;/td&gt;
&lt;td&gt;Tiny (1 file)&lt;/td&gt;
&lt;td&gt;DIY users who already run Tasker&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;strong&gt;Syncthing + local app&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;Medium&lt;/td&gt;
&lt;td&gt;No (folder-based)&lt;/td&gt;
&lt;td&gt;High (copies whole folder)&lt;/td&gt;
&lt;td&gt;Existing Syncthing + External Library setups&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;strong&gt;Dedicated app (ImmiChange)&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;Low&lt;/td&gt;
&lt;td&gt;Yes&lt;/td&gt;
&lt;td&gt;Low (capped cache, e.g. 20MB)&lt;/td&gt;
&lt;td&gt;Set-once rotation that works offline without scripting&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;Whichever route you go, getting your photos off the server and back onto the screen you look at 50 times a day makes self-hosting Immich feel a lot more rewarding.&lt;/p&gt;

&lt;p&gt;If you want to check out ImmiChange or try the interactive parallax preview:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Google Play: &lt;a href="https://play.google.com/store/apps/details?id=com.zerowebcreate.immichange" rel="noopener noreferrer"&gt;https://play.google.com/store/apps/details?id=com.zerowebcreate.immichange&lt;/a&gt;
&lt;/li&gt;
&lt;li&gt;Overview page: &lt;a href="https://zero-webcreate.com/lp/ImmiChange.html" rel="noopener noreferrer"&gt;https://zero-webcreate.com/lp/ImmiChange.html&lt;/a&gt;
&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;If you have another clever setup (like Home Assistant notifications or a different Android workflow for Immich photos), I would love to hear how you built it in the comments.&lt;/p&gt;

</description>
      <category>immich</category>
      <category>selfhosted</category>
      <category>android</category>
      <category>homelab</category>
    </item>
  </channel>
</rss>
