Skip to content

A simple interactive discord-bot works as home assistant takes data from sensors running on LoPy4 from Pycom.

License

Notifications You must be signed in to change notification settings

itsAiham/home_assistant

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

24 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Interactive Home Assistant based on a discord-bot and LoPy4


 

Click for the DEMO!
You may as well check the Doc!


 

Hardware you need:


IoT Thing Price (approximately) Description
LoPy4 Multipack €62.04 1x LoPy4, 1x Expansion Board, 1x LoRa/Sigfox Antenna
PIR motion sensor HC-SR501 €5 To detect the heat from humans and animals
Photoresistor €2 To detect the lightness outside
MCP9700 €1.61 To detect the temperature outside
10m Wiring €3.5 The amount of wiring is dependent on the distance between sensors
(Optional) Battery holder 3xAAA €2.5 To allow pycom working without having it connected to a computer
(Optional) Multimeter €11 To measure voltage, current and resistance.


 



 

Software you need:

Software Type Description
Visual Studio Code Open source app Code editor made by Microsoft. We use it to write our code and upload it to device.
Node.js Open source cross-platform Runtime environment that runs on the V8 engine and executes JavaScript code outside a web browser.
Updating Device Firmware Open source tool After upgrading, we can use the Pymakr Plugins to upload and run programs in our devices.
Node-red Open source development tool Programming tool for wiring hardware devices together.
Pybytes Free cloud platform a device management platform that empowers you by giving you full control over your Pycom devices. (Account required)
Datacake Limited platform for non-commercial purposes where the data is saved and resend it to node-red to be handled by the bot. (Account required)


 



 

Connecting

Connection between sensord/LoPy4


 



 

Pushing code to LoPy4

You need to push your code UPDATE only src/ folder

Node-Red

You need to create the diagram within Node-Red Space as it shown in HERE

About

A simple interactive discord-bot works as home assistant takes data from sensors running on LoPy4 from Pycom.

Topics

Resources

License

Stars

Watchers

Forks