Listen for internal events

I’d like to create an event handler for when Parameter files are reloaded. I’ve read the docs here: Advanced Usage — HABApp beta documentation, but am struggling to figure out how this works in action.

Logically it’d look something like the following, but it seems “internal topic” != “item”:
self.listen_item('HABApp.Files', self.my_callback, RequestFileLoadEvent())

You have to use the EventFilter and pass the class there. It’s no different than listening to “normal” events.
Don’t you get an error in your logs?

Out of curiosity - why? Parameters are automatically reloaded on the fly.

This topic was automatically closed 41 days after the last reply. New replies are no longer allowed.