Telegram remote control and status

A Telegram bot on the ESP32 reports status on request and switches a relay with commands from your phone, with no server and no port forwarding.

Smart home Board: ESP32-C3 SuperMini Level: ●○○ ⏱ 1–2 h

⚠ Caution

Switch only low-voltage loads yourself. For mains loads use a certified isolated module in a box or call an electrician.

Control from the phone, with no server

A Telegram bot is an easy remote: the ESP32 asks Telegram for new messages, so you do not need a public IP address, port forwarding or a cloud service of your own. You send "/status" and get the readings back, or "/on" and the relay switches. It also sends alerts to you when you are away.

Doing it responsibly

Store the token in a place that is not published, and let the bot answer only to specific chat IDs, because anybody who finds the bot can message it. Do not use it for anything dangerous without confirmation: a "/open" command for a gate or a "/on" for a heater deserves a second step and a time limit. Polling every few seconds is enough, and the connection will drop sometimes, so reconnect cleanly.

  • Keep messages short, and put the time of the reading in them.
  • Telegram is a convenience, not a safety system; critical local protections must work without it.

Components

  • ESP32-C3 SuperMini
  • Relay module 1-channel 5V (opto-isolated)
  • Tactile buttons (set)
  • Dupont jumper wires (M-F, M-M)

What you need

Buy the parts kit · Estimated total: $6.00

ESP32-C3 SuperMini × 1
$2.50
Buy at AliExpress Buy at Amazon.com
Relay module 1-channel 5V (opto-isolated) × 1
$1.50
Buy at AliExpress Buy at Amazon.com
Tactile buttons (set) × 1
$0.50
Buy at AliExpress Buy at Amazon.com
Dupont jumper wires (M-F, M-M) × 1
$1.50
Buy at AliExpress Buy at Amazon.com
🇺🇦 Ukraine🌍 Other countries

Other countries: order these parts on AliExpress with the links below.

Some links are affiliate links: we may earn a commission at no extra cost to you.

Related ideas

⚠ Caution

Switch only low-voltage loads yourself. For mains loads use a certified isolated module in a box or call an electrician.

Router and Starlink watchdog

Pings the internet and power-cycles the router or ONU through a relay when the connection hangs, with a Telegram notice.

  • Board ESP32-C3 SuperMini
  • Level ●○○ Beginner
  • Build time 1 h
Pick parts / kit
⚠ Caution

Switch only low-voltage loads yourself. For mains loads use a certified isolated module in a box or call an electrician.

Gate and garage door status with remote pulse

Two reed switches report open and closed, a relay gives the opener a pulse, and a message tells you when the gate was left open.

  • Board ESP32-C3 SuperMini
  • Level ●○○ Beginner
  • Build time 1–2 h
Pick parts / kit
⚠ Caution

Switch only low-voltage loads yourself. For mains loads use a certified isolated module in a box or call an electrician.

Web / button relay switch

Switch a low-voltage load from a web page, the phone or a physical button; the base for any remote control.

  • Board ESP32 DevKit V1 (WROOM-32)
  • Level ●○○ Beginner
  • Build time 1 h
Pick parts / kit

← All module ideas →

Comments

No comments yet. Share your experience or ask a question.

Comments are moderated.