automatically refresh the gui when there is a newer version (instead of getting the notification “A new version of the frontend is available. RELOAD”
and/or
setup a sensor that indicates when a reload is necessary - then I could trigger on that and reload the screen over mqtt (using https://github.com/thanksmister/wallpanel-android)
the use case is for my dashboards where I use semi-broken cellphones as wallpanels. it’s hard to press reload without a working touchscreen
For (2), I found an event for it so I didn’t need a sensor.
I ended up using that event as trigger for an automation that reloads my Wallpanel dashboards via MQTT.
alias: REFRESH of lovelace
description: ""
trigger:
- platform: event
event_type: lovelace_updated
condition: []
action:
- delay:
hours: 0
minutes: 0
seconds: 1
milliseconds: 0
- service: browser_mod.refresh
target:
device_id:
- e0fc9dbdf239069a238f75e5fc0026b9 #this is ID of device you wish to be updated (in UI select "devices" and find it)
- 4543a872ed8c7a3e10eb903acd4d69eb #if you want to update all devices just omit "device_id" part
- 7d84b6dc72fa633332f43fa087d5357d
data: {}
mode: single
Attention: this works for NEW browser mod (V2.xx). For V1.x it was slightly different.
As said above: this can work for ALL devices or just for some (defined with “target”).