Port your number to Google voice. Their spam blocking is great. That and/or get a Pixel. TBH I’m not exactly sure which one is blocking spam calls but I haven’t gotten one in years. I only use Google voice for texting though, so that would have to be blocking spam texts.
I think looking at openscale would be worthwhile:
https://github.com/oliexdev/openScale/wiki
Looks like it can push to mqtt? Huh, that’s new to me.
Also, if you want HA, there’s this:
https://github.com/lolouk44/hassio-addons/blob/master/mi-scale/DOCS.md
Good luck!