This is probably a niche topic, but it came up recently when a reader asked:
“How do I change the maximum display time setting in Home Assistant?”
Fortunately, Helge was kind enough to provide an answer.
In Home Assistant, you can adjust settings like Fade Time, Matting, and Time Delay using sliders. However, the maximum value for Fade Time is capped at 400 seconds, which might not be sufficient for some users.
Here is how to change it:
Navigate to
/home/pi/venv_picframe/lib/python3.11/site-packages/picframe/interface_mqtt.py
and open the file.
Look for this section starting at line 148:
# numbers
self.__setup_number(client, "brightness", 0.0, 1.0, 0.1, "mdi:brightness-6", available_topic)
self.__setup_number(client, "time_delay", 1, 400, 1, "mdi:image-plus", available_topic)
self.__setup_number(client, "fade_time", 1, 50, 1, "mdi:image-size-select-large", available_topic)
self.__setup_number(client, "matting_images", 0.0, 1.0, 0.01, "mdi:image-frame", available_topic)
and change the second numerical value to whatever you want it to be.
Save your changes and reboot. You should now be able to set the Time Delay to your desired maximum value.
Was this article helpful?
Thank you for your support and motivation.
Related Articles
- How to automatically remove duplicate images from your Pictures folder (2024 Edition)
- Celebrate birthdays and anniversaries with auto-themed photos on your digital frame
- How to show your current picture frame photo in Home Assistant (2024 Edition)
- Why Raspberry Pi Connect is the perfect screen sharing and remote shell tool for your digital photo frame maintenance