Yes! Now Domoticz can make a Telegram phone calls (with Voice) thanks to the CallMeBot API. You just need to create a "Custom HTTP" Notification to execute the following HTTP GET request in order to get a Telegram Voice call and "read" your notification with different voices and in multiple languages. Yes! it will ring your phone.

URL to use: 
http://api.callmebot.com/start.php?source=domz&user=
@username&text=This is Domoticz calling to you to inform you about something that is happening at your house&lang=en-GB-Standard-B

Parameters:
user is your Telegram Username/Alias (i.e. @myusername) or you can also use your phone number including the international code. Important!: You need to authorize CallMeBot to contact you here. This is required to avoid spam.
text is the message that you want the bot to speak. You can use #MESSAGE to dinamically set the message by Domoticz. (see below the instructions). The text message has to be urlencoded.
lang is the language/voice that you want the bot to speak. You can get the list of languages here. Use the "Voice Name" (4th column) as parameter to use. Please note that only the Standard languages are supported. (Wavenet premium languages/voices  won't work with this API).

For example, calling to @myusername and speak the message in English with a Male voice:

URL: 'http://api.callmebot.com/start.php?source=domz&user=@myusername&text=This is Domoticz calling to you to inform you about something that is happening at your house&lang=en-GB-Standard-B'

For example, calling to +34 123 123 1123 and speak the message in Spanish:

URL: 'http://api.callmebot.com/start.php?source=domz&user=+34 123 123 1123&text=Este es Domoticz llamando para informar sobre algo que esta sucediendo en tu casa&lang=es-ES-Standard-A'

To do that with Domoticz is pretty easy! You can use the HTTP Domoticz Notifications service!

Setup CallMeBot as Domoticz Notifications

0) You need to authorize CallMeBot to contact you here. This is required to avoid spam.

1) Go to Setup -> Settings -> Notifications (Tab)

2) Complete the "Custom HTTP/Action" section as below:

Enabled: Turn it on (green switch)
#FIELD1: Enter the language/voice that you want the bot to speak. You can get the list of languages here. Use the "Voice Name" (4th column) as parameter to use. Please note that only the Standard languages are supported. (Wavenet premium languages/voices  won't work with this API). (Example: "en-GB-Standard-B")
#TO: Enter your Telegram username (ie. @mytelegramuser)
URL/Action: https://api.callmebot.com/start.php?lang=#FIELD1&source=domz&user=#TO&text=#MESSAGE

Screenshot (click to zoom):

3) Click the Test button (light blue button on the right) to test the new Telegram Call Notification. You should receive a call in your phone after a couple of seconds.

How to use CallMeBot Notification service

Once the new Notification service is created, you can start using it in all your automations and triggers (switches, sensors, etc.)
I recommend you to get familiar with the Domoticz Notifications mechanism.
The easiest way is to enable notifications for switches and sensors.
Example of the notification enabled for a virtual switch:
 
1) Go to your switches and click "Notifications"
Switch Notification Button
2) To create a new Notification for the Switch, Select when you want to trigger the notification (Type field) and what is the message to use (Custom message field). The bot will call you using Telegram Voice Call when the switch is triggered.
3) Select "http" as the notification system (that you configured before with the CallMeBot API)
4) Click "Add"
 
Now you should receive a call every time that the switch is turned on to inform you about it. It will ring your phone and read the "Custom Message" that you entered.

Dedicated Telegram Bot for you and your Business

You can have your own dedicated bot to make the phone calls. 

These are the benefits of having your own bot:

  • Your own Telegram Username, Bio and Picture (Logo).
  • No delays. You will have your own queue.
  • Calls can be longer than 30 seconds
  • You can call to anybody without having the recipient to go through the authentication process. (Spam is not allowed)
  • Unlimited number of calls to unlimited recipients.

The cost of a dedicated instance is $15 per month. No setup fee if paid annually.

If you are interested, please contact me at [email protected]

Thank you!

Problems?

If you have problems, like not receiving the Call on Telegram, or not receiving the WhatsApp messages,  try to test the CallMeBot API using your Web Browser:

  • Telegram Phone Calls using Web Browser: here
  • Telegram Text Messages using Web Browsers: here
  • WhatsApp Text Messages using Web Browser: here

You might get some errors on the screen that will help you to identify the problem. (Ex: Calls disabled in the Telegram Security Settings, WhatsApp not activated, etc.)

If you still have problems using the API, don’t hesitate to contact me in Telegram @callmebot_com or by email at [email protected]. Remember to Follow me on Twitter to get news about coming features, changes, invitations, etc.