Webpage - add auto reload

On the Webpage Card it should provide a default setting for refresh rate. The example in the card info shows a weather radar image, but without update, it’s rather useless, as outdating to quickly.

I tried to follow an example from the forum without success. Maybe PEBKAS, but I couldn’t find any solution. And think this should be a default option in the webpage card, not something for which I must work around through a local webpage that does nothing but refresh an iframe within an iframe?

Ive gone through this exact same issue and I’m working on a workaround.

So i have an input boolean that is by default off. The iframe visibility is set to only show when that input boolean’s state is off.

Then I made a script that turns that boolean on for 1 millisecond.

So whenever the script is called the iframe disappears for one millisecond and reappears, which is enough for it to refetch the page and cause a ‘refresh’, but at least for me the iframe never appears to change for the user. This refresh could be manual or automated or both.

Still working on it so not sure if ill encounter a problem but it seems promising.

1 Like

I solved this using the HACS Auto Reload integration (300 seconds). Still believe the case is valid, a refresh for the webpage integration should be added and by standard be available to switch on with a given timer.