Giter VIP home page Giter VIP logo

python_tuya_doorsensor's Introduction

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

python_tuya_doorsensor's People

Contributors

platofan23 avatar

Stargazers

 avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.