How to restore lvgl widget values on reset / power cycle?

Hi.
I have a number of lvgl widgets (switches, spinbox, select etc). most of these are linked to the equivalent esphome objects.
If I restart or power cycle the device, I can restore the esphome objects’ values using “restore_value: true”, but how can I restore the lvgl widgets’ values to their pre-restart values (currently I can only get them to display their default values) ?
thanks

You’ll need to provide an example of what you’re trying to achieve. The on_state action of an entity will generally be called when a value is restored, so if that’s what you’re using to sync the values it should just work.

Thanks for the reply - managed to get it working using global variables to store the values and restoring them using on_boot: