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)
Comments
No comments yet. Share your experience or ask a question.