Remote controller for smart sauna, using Raspberry Pi and Telegram Bot Api
Fascinated by the Internet of Things and the idea of creating a smart home, I decided to combine a single-chamber computer Raspberry Pi, and the popular messenger Telegram, namely its HTTPS-requests service to the API Bot. By connecting DS18B20 digital thermometers and switching relays to control the heater to the Raspberry, I organized remote and autonomous sauna control. With many useful features: messaging, management and protection.
- Heater on/off
- Heating to the set temperature
- Hysteresis heating, with the ability to specify the width of the hysteresis
- User notification of status and threats
- Providing brief and complete information about the sensors
- Temperature and heater status data stream
Keyboard to simplify working with the bot Of course, traditional chat bots can be taught to understand human language. But sometimes you want to get some official input from the user - and this is where custom keyboards can be extremely useful. Each time your bot sends a message, it can send a special keyboard with predefined response settings. Telegram applications that receive messages will display this keyboard to the user. Pressing any button will immediately send the appropriate command. This will dramatically simplify user interaction with your bot. Here's how it's organized in my bot:
Example:- "INFO" button - we get all the information about the sensors
- "ON" button - we send a request to turn on the heater
- "OFF" button - we send a request to turn off the heater
- "COMMANDS" button - we will get a list of all available commands
- Raspberry Pi 3 Model B
- Digital thermometers DS18B20
- Heater
- Display
- Digital encoder
- Logic level converters