Giter VIP home page Giter VIP logo

rf_rpi_python_light_switch's Introduction

RF_RPI_Python_Light_Switch

RF control code to switch Tinytuya smart lights.

This is my first published project smashed together. You can recycle a bunch of old RF 433/315MHz (ref1) to use with my RPI to control smart lights (lg1) with (rfmod1).

I created a few diffrent versions it the attempt to do what i wanted but could not figur out how to make it work.

I wanted to make it reduce the brightness of the bulbs from a long press but I couldnt get It to work as I wanted. It would dim the lights and then turn them off.

so insted I made it turn the lights on and off. It also listen for a specific button press that selects the dimmer function then waits for one of the buttons defined to lights to be pressed then dims that light.

Apologies if this is a little hard to read I dont know how to embed links on here.

The Two Files Marked (Finnal) are my working coppies. Feel free to improve on it :-)

Things needed:-

(rfmod1) https://pypi.org/project/rpi-rf/ https://github.com/milaq/rpi-rf

(lg1) https://www.amazon.co.uk/gp/product/B08BRCMXRN/ref=ox_sc_act_title_3?smid=A2PBGKQKFNUGZL&psc=1

https://pypi.org/project/tinytuya/

ref (ref1) (https://www.amazon.co.uk/gp/product/B08WWRX871/ref=ox_sc_act_title_2?smid=A3Q9UOBR54VJ36&psc=1)

rf_rpi_python_light_switch's People

Contributors

electrik-rich546456 avatar

Stargazers

 avatar  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.