gickowtf / pixoo-homeassistant

Home Assistant Integration for Divoom Pixoo 64
MIT License
112 stars 12 forks source link

page Refresh #75

Closed TheVanDoom closed 3 months ago

TheVanDoom commented 3 months ago

Is there a way to trigger a page refresh without switching to the next page? I currently use your integration to display data from my PV power plant. Since it changes quite frequently, I would like to refresh every 5 seconds, but still switch to the next page after i.e. 15 seconds or so. Right now I just duplicated the page :-)

Mrredstone5230 commented 3 months ago

That is such a good suggestion ! I was thinking of adding a "updateOnEntityUpdate" tag for pages, but I thought it was way too specific. But I think that maybe adding an "update_current_page" service would be quite smart! It could be called by automations built by users that could be more complex then that simple tag. Will try later today..

(Currently, there is no way of doing what you want, but if I add that service, I think it could work quite well!)