GithubHelp home page GithubHelp logo

ederjc / mpy-ha-motion-radar Goto Github PK

View Code? Open in Web Editor NEW
0.0 1.0 0.0 8 KB

A MicroPython application integrating the Infineon BGT60LTR11AiP radar motion sensor to Home Assistant using the MQTT autodiscovery feature.

Python 100.00%

mpy-ha-motion-radar's Introduction

Summary

This project uses the example of a radar motion sensor to show how to easily integrate custom sensors to a Home Assistant-based smarthome setup. This repository is part of a Hackster.io post, which can be found here.

Getting Started

Requirements

  • Microcontroller with MicroPython enablement (I use this one).
  • Custom sensor like the Infineon XENSIV™ Radar Shield2Go.
  • MicroPython IDE like Thonny IDE.
  • umqtt.simple MicroPython library on your board -> check the Hackster.io article for instructions.

secrets.py

Before this application code can be executed on your board you need to create a file secrets.py according to the format given in secrets_example.py and fill in your credentials:

ssid = 'your wifi ssid'
password = 'your wifi password'
mqtt_server = 'your mqtt broker ip address'
mqtt_user = 'your mqtt broker user name'
mqtt_password = 'your mqtt broker password'

Make sure to never commit the file with your credentials to any public repository. Upload the file secrets.py onto your MicroPython board and continue with the next step.

Running the Application Code

Now you can run the code main.py on your MicroPython device. If you are satisfied with it's behaviour you can upload main.py to your device to make it run automatically after powering up.

mpy-ha-motion-radar's People

Contributors

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