Skip to content
/ emu-tg-bot Public

Small Telegram bot with Tuya door sensor monitoring for EMU

Notifications You must be signed in to change notification settings

vcb/emu-tg-bot

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

emu-tg-bot

Tiny Telegram bot for monitoring an Airam/Tuya door sensor status.

Features

The tuya_util provides a simple script for monitoring an Airam/Tuya door sensor status. It listens for UDP broadcasts from the sensor and makes a local request to the sensor. UDP is used as a trigger for the request since the device is powered off most of the time.

You'll need the device's local encryption key for this, which is easiest to get from the Tuya Cloud API. Note that reinitializing the device will change the key.

Usage

  • /door - Check the status of the door sensor

Installation

  1. Clone the repository
  2. Install the requirements pip install -r requirements.txt
  3. Create a .env file with the following content:
DEVICE_IP=<your_device_ip>
DEVICE_ID=<your_device_id>
DEVICE_KEY=<your_device_secret>
TG_KEY=<your_telegram_bot_key>
  1. Run the bot python bot.py

About

Small Telegram bot with Tuya door sensor monitoring for EMU

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages