https://github.com/michael-sulyak/crazy-bear
RPi + Telegram = Home Automation
https://github.com/michael-sulyak/crazy-bear
home-automation raspberry-pi telegram-bot
Last synced: 4 months ago
JSON representation
RPi + Telegram = Home Automation
- Host: GitHub
- URL: https://github.com/michael-sulyak/crazy-bear
- Owner: michael-sulyak
- License: mit
- Created: 2020-07-28T11:25:37.000Z (almost 6 years ago)
- Default Branch: master
- Last Pushed: 2025-05-14T18:34:26.000Z (about 1 year ago)
- Last Synced: 2025-05-14T19:40:58.617Z (about 1 year ago)
- Topics: home-automation, raspberry-pi, telegram-bot
- Language: Python
- Homepage:
- Size: 3.76 MB
- Stars: 0
- Watchers: 0
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# CrazyBear — Home Automation in Telegram
> [!NOTE]
> This project is not a general solution. This is just an implementation for specific purposes (my purposes 🙂).
> Some things were implemented quite simply so as not to complicate support.
> I hope the code will be helpful to you.
## Preview

## Components
1. **Raspberry Pi 4**
2. **Arduino Nano V3.0 ATmega328P** (is connected via USB to the **Raspberry Pi**)
1. **AM2302 DHT22**
2. **HC-SR501**
3. **Logitech C270 HD** (is connected via USB to the **Raspberry Pi**)
4. **CC2531** (is connected via USB to the **Raspberry Pi**)
## Setup
1. Create `prod.env` file in `./envs`. See `project/config/default.py`.
2. Copy the code to a **Raspberry Pi** (or somewhere else).
3. Build and run:
```bash
docker-compose build
docker-compose up -d
```
4. If you want to use **Arduino** then you need to upload `arduino_core`. Libs:
```bash
arduino-cli lib install RF24 "DHT sensor library" ArduinoJson
```
5. Set **ZigBee Dongle** (if you use **CC2531**)
1. Connect **CC2531**
1. Install **WiringPi**
```bash
git clone https://github.com/WiringPi/WiringPi.git
git checkout 5de0d8f5739ccc00ab761639a7e8d3d1696a480a
cd WiringPi
./build
```
(https://github.com/jmichault/flash_cc2531/issues/18)
2. [https://kvvhost.ru/2019/05/29/zigbee2mqtt-cc2531-raspberry-pi/](https://kvvhost.ru/2019/05/29/zigbee2mqtt-cc2531-raspberry-pi/)
2. Add devices.