Hello, do you know any mobile application for android and iphone that can send an mqtt message when the phone receives a call?
For Android, you can probably do it using Tasker with the MQTT Publisher Plugin (or perhaps MQTT is now natively supported in Tasker, I’m not sure).
Tasker is not available for iOS. I’m not as familiar with what’s available in the way of iOS apps. It’s my impression that iOS is more ‘locked down’ than Android so there’s no iOS equivalent to Tasker. I believe the closest is Apple’s Shortcuts and it doesn’t support MQTT. I skimmed this article about Shortcuts and saw it does support URLs; it suggests you can interact with a REST interface.
FWIW, if you search for iOS and MQTT you’ll mostly find references for software development (i.e. writing your own app) as opposed to an available app (like Tasker).
I thought it would be easier to turn on a light when the phone rings
Thanks for the information, for android I’m looking at this:
https://play.google.com/store/apps/details?id=me.hammarstrom.phoneautomation&hl=en_US
Whew! App has only 6 reviews and hasn’t been updated since last March.
Let us know how well it works for you (any excessive battery drain, does it cache the MQTT message if WiFi is interrupted, does it let you customize the topic, is it reliable, etc).
FWIW, there’s a whole category dedicated to Zanzito. It garnered quite a following here and then, unfortunately, the developer lost interest in it.