Skip to content

platofan23/python_tuya_doorsensor

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 

Repository files navigation

python_tuya_doorsensor

Description of the project

This programm is a python workarround for a Tuya Door Sensor with the help of pushover!
The Sensor.py constantly pings the door sensor. If it is awake and the ping is successful, it starts the Notify.py!
Notify.py than sends a notification to pushover via pushover api

Project status

The project itself is complete and ready for use. I am open for improvments.

Requirements

Requirements for running the webui are: - python (3.x.x)
- pip (v3) or any other packetmanager
- pythonping
- pushover
- pushover account with a valid api token
- pushover app on the smartphone

Installation

1. Download and Install Python.
For windows go to (https://www.python.org/downloads/)
For linux use sudo apt-get install python3.x
2. Download and install pip-packetmanager
3. Install pythonping
For Windows py -3 -m pip install pythonping
For Linux pip3 install pythonping
4. Install pushover
For Windows py -3 -m pip install pushover
For Linux pip3 install pushover
5. Make an pushover account and generate your apitoken and copy your account id
6. Insert your values in the Notify.py and also insert the ip of the motion sensor in the Sensor.py
7. Now run the Sensor.py - File
For Windows py -3 Sensor.py
For Linux python3 Sensor.py
8. Install and login in the pushover app.

Additional notes:

- The tuya motion sensor needs to be connected to your homenetwork via the app
- afterwards you can block the internet connection of the sensor via your router
- In Sensor.py the ip needs to be inserted! In Notify.py the api-token for the set application needs to be inserted aswell the account id.
- This can be done here https://pushover.net

Releases

No releases published

Packages

No packages published

Languages