How to display alarms in object tooltip

Welcome to the forum, Jake.
Two tips:

  • Add either the vision or perspective tag to your question so we know what we're working with.
  • See Wiki - how to post code on this forum and then hit the pencil icon below your post to format it correctly. (It's not Python so it's not as critical but it does help it stand out.) You seem to be missing the opening { too.

I'm not quite clear on the problem. What's doesn't with the code you posted?