Screensaver

Hey Community!

Just wanted to share a project that I am currently working on!

I have a iPad running in my kitchen with Home Assistant used to show the weather, Calendar and other goodies. I wanted my iPad to be turned on all the time for easy accessibility, but was afraid of screen burns. Therefore I turned to the good old days of screensavers.

This plugin is pretty simple. I will start the screensaver after a given idle time (no clicking/touching). The Images are from Unsplash using a given search term (defaults to nature).
To stop the screensaver simply click/touch the screen again.

For more information and installation guide, go visit the repo:

2 Likes

Nice idea. I like the concept, but I don’t really like the idea of getting the images from the cloud.
Could this be made to fetch images on a local network? Or failing that a local machine?
Also any plans to make this HACS compatible?

Using unsplash was an easy way to get this project up and running.

How are you thinking “fetch images on a local network”? you would need to make a private api for that or make a python service/plugin in hass to generate a json file

Can you add this to HACS? :slight_smile:

I totally will, when I’m done testing on my own system :slight_smile:

All I was thinking is setting a directory from a network share to randomly pull in pics from.
Failing that just pulling from a directory on the local machine.
Thanks

Great idea! But it would but nice to use local images

@gabrielmiranda and @danbutter I will try making this an option. but for now my focus is to get the script running flawlessly and as smooth as possible.

1 Like

It works wonderfully, just that the problem is that the images in the category are repeated in the loop. And don’t show all the pictures in the category.

@Abeksis that is correct. Im going to add the possibility to choose how make images to fetch, and make it an option to fetch next page if last image of the current page has been used. The reason this can be an issue is that you can run into the maximum number of api calls on your free version of Unsplash.

I like it, but I’m trying to avoid integration with too many sites.
For others like me, you could try going down the chromium extension route.
Theres an extension called Photo Screen Saver

Extension Link

that I have installed on my standalone pi kiosk mode, linked it to google photos, one dedicated hassio folder and im away. Can also display time and weather on the page.
May help you out.
R

Hey there,

I really like this plugin, works well for me!

Is there a way to use an input_select or some other variable as the query for unsplash? That way I can more easily change the category for what is being displayed rather than having to edit the UI every time?

Thanks!

Great idea. Is there a way to set it up to just produce a black screen? I don’t want to show pictures; I just want the device to sort of disappear into the wall when not in use. To quote Spinal Tap, “How much more black could this be? And the answer is none — none more black.”

This would also eliminate the concern about using Unsplash and the cloud.

if your using the mobile app on the device. you cloud remove the lock code for easy open and let the device it self go to black screen. if you want black it seems like the easiest way?

Normally, yes. In this particular situation, the tablet is mounted on a wall in portrait mode, and the power button is difficult to get to. It’s a lower-end tablet by Vankyo, and doesn’t support double-tap-to-wake. So, I can’t let the device go to black screeen, because it’s hard to wake it up. I’m looking for alternatives to get what I want.

The tablet itself uses 9.0, but doesn’t implement all of the ‘aux’ functions. And there are no easy ways to bypass the power button:

  • Swipe to wake = PWR + swipe
  • Lock code = PWR + swipe + code
  • etc.

Not expecting you to change your code; just hoping to stumble on a workaround. I’ve started using WallPanel for Android (vs Chrome), which does pretty much what I want, except the black screen doesn’t kill the backlight. So, I have a night light! :rofl: