This script monitors the status of a Tuya smart device and sends a WhatsApp message when the status changes.
- Connects to a Tuya smart device
- Monitors the device status continuously
- Sends a WhatsApp message when the device status changes
- Uses
pywhatkit
for WhatsApp messaging
- Python 3.x
tinytuya
pywhatkit
-
Clone the repository:
git clone https://github.com/yourusername/device-status-monitor.git cd device-status-monitor
-
Install the required packages:
pip install -r requirements.txt
- Update the script with your Tuya device credentials and WhatsApp configuration.
- Run the script:
python monitor_device.py
This project is licensed under the MIT License - see the LICENSE file for details.