helgeerbe / picframe

Picture frame viewer for raspi, controlled via mqtt and automatticly integrated as mqtt device in homeassistant.
MIT License
100 stars 28 forks source link

Number of images shown in Home Assistant only changes after manual intervention #264

Open sapnho opened 2 years ago

sapnho commented 2 years ago

I noticed that after adding image files to the Pictures folders on my Frame Pi, the number shown in Home Assistant only changes after I briefly change the folder selection in HA. Is this normal?

Bildschirmfoto 2022-04-24 um 06 56 09

.

helgeerbe commented 2 years ago

Hi Wolfgang, sorry for the late response. I was on vacation to get a new images for my picframe.

I guess the problem is a design weakness in picframe. Image metadata (like location, ...) and config info are published in a single mqtt message on image change. So would expect that just clicking next image would also refresh the number of selected images. That is also the reason while changing the brightness results in showing the next image.

I'm thinking about to split image meta data and config/control data in different messages. But this would also affect the home assistant integration (in minimum deleting picframe in home assistant and wait for a new discovery).

sapnho commented 2 years ago

I was on vacation to get new images for my picframe.

That's why we love picture frames! :-)

sapnho commented 2 years ago

This has been fixed with the latest release, hasn't it?