Showing custom state from onboar software in Mission Planner

Hi, I’m new to AP. We have some pre-existing software that uses MAVROS to consume copter stats for its operation. But I also want the software to be able to report some state in a way that it becomes visible in Mission Planner’s screen. Example: some custom on/off indicator

Where do I start?
Thanks

Have you looked into lua scripting? It’s quiet easy to write a script that does this. If you use GCS:send_named_float(“data”, some_data), your data can be viewed in the tuning page and if you wish to log it into the dataflash file, you can use the logger.write() function.

https://ardupilot.org/copter/docs/common-lua-scripts.html