Please refer to the implementation of the battery panel. In which we get notified when the underlying states change from the module (in this case it would be AppStorage), and then update the UI in the panel object.