Sounds like you would need to connect a network sniffer into its inputs and somehow figure out how to make it figure out what responses are needed on what ports just to make a "shutup pi" type system that catches smart appliances attempts to phone home and blocks them.
https://github.com/alufers/mitmproxy2swagger ("A tool for automatically converting mitmproxy captures to OpenAPI 3.0 specifications. This means that you can automatically reverse-engineer REST APIs by just running the apps and capturing the traffic.")
https://news.ycombinator.com/item?id=42572662 - January 2025 (71 comments)
https://news.ycombinator.com/item?id=31354130 - May 2022 (85 comments)