Call Me with Home Assistant, Zoom and Telegram Bot
Using Home Assistant to launch the Zoom meeting and send the meeting Url to predefined contacts via a Telegram bot.
It is a very useful and fast way to initiate a Zoom meeting with just a click of a button and share the meeting link automatically especially for the elderly people who are not used to Zoom but they still can use the tablet.
Zoom App Config
Create a Zoom App and get the JWT API Key and Secret. Please refer to the tutorial below on how you can create and generate.
Launch Zoom Meeting Automatically from Telegram Bot
In this tutorial, I will show you how you can write a code to launch the Zoom meeting automatically from Telegram Bot…
djajafer.medium.com
Navigate to App credentials to get the API Key and Secret. We will use this information in the NodeJS app later.
Select the Zoom app you have created and navigate to Feature and enable the Event subscriptions to setup a webhook.
Setup a Webhook
On the Event types, navigate to Meeting and select End Meeting and Participant/Host left meeting.
Set the Event notification endpoint URL with your Home Assistant (HA) URL. Your HA should be accessible publicly.
https://<HA_URL>/api/webhook/zoom_off
NodeJS App
Clone my code from Git, server.js.
ZoomTelegramBot/server.js at main · ferrygun/ZoomTelegramBot
Contribute to ferrygun/ZoomTelegramBot development by creating an account on GitHub.
github.com
Update the following variables.
- bottoken is the Telegram Bot token
- botid is the Telegram Bot ID
- email is the email account when you register with Zoom
- APIKey is the Zoom App JWT API Key
- APISecret is the Zoom App JWT API Secret
You can refer to my earlier tutorial how to get those values:
Launch Zoom Meeting Automatically from Telegram Bot
In this tutorial, I will show you how you can write a code to launch the Zoom meeting automatically from Telegram Bot…
djajafer.medium.com
Host and run this server.js in Termux environment on your tablet. You can also use the library forever to ensure the app is always running.
forever
A simple CLI tool for ensuring that a given script runs continuously (i.e. forever). Note that this project currently…
www.npmjs.com
Home Assistant (HA) Setup
I presumed you already have the Home Assistant running. I am using the Home Assistant with Raspberry Pi 4. The HA should be available publicly. Please refer to my tutorial on how to use DuckDNS to access HA remotely.
Home Assistant
Home Assistant keeps your data local, no need for a cloud. Home Assistant communicates with your devices locally, and…
www.home-assistant.io
Create a Switch
We will create a switch “Call me” in HA to launch the Zoom meeting automatically.
Open the configuration.yaml and insert the following line and save it. You need to update the IP address to your table’s IP address. The parameter command_on and command_off will execute the Curl command respectively.
Restart the HA
We need to restart the HA to apply the change.
Navigate to Configuration > Server Controls and click Check Configuration. If there is no error click Restart under Server Management.
WebHook Automation
Navigate to Configuration > Automations and click Add Automation.
Select Start with an Empty Automation.
Give a name Webhook and enable it.
Under Triggers, select Trigger type Webhook and Webhook ID zoom_off.
Under Conditions, just leave it as it is.
Under Actions, select Action Type Call service, Service is switch.turn_off and select Zoom Switch as a target.
Save the configuration.
Create a “Zoom” Lovelace
Navigate to Configuration > Lovelace Dashboards and click Add Dashboard.
Create a new one called Zoom and enable Show in sidebar.
Click Add Card and select Picture Entity.
Set the Entity to switch.zoom and Tap Action to Toggle. The other parameters you can set as you wish.
That’s all that we need to do. And I hope it is useful for you.
Ten articles before and after
Build and Deploy a Telegram bot in 5 minutes – Telegram 中文版
Домашняя бухгалтерия в telegram. Теги. – Telegram 中文版
How to Bulk Invite Members in your Telegram Group or Channel – Telegram 中文版
Python and Telegram bot, how to collaborate them to make processes simplified? – Telegram 中文版
Building a Covid-19 Fact-Check Tele Bot Using Machine Learning – Telegram 中文版
¡La adaptación masiva de las finanzas descentralizadas ya ha ocurrido! – Telegram 中文版
How I keep track of my Expenses as a Software Engineer – Telegram 中文版