TE
TechEcho
Home24h TopNewestBestAskShowJobs
GitHubTwitter
Home

TechEcho

A tech news platform built with Next.js, providing global tech news and discussions.

GitHubTwitter

Home

HomeNewestBestAskShowJobs

Resources

HackerNews APIOriginal HackerNewsNext.js

© 2025 TechEcho. All rights reserved.

Raspberry Pi 3 based home automation with Node.js and React Native

349 pointsby sconxuover 8 years ago

15 comments

pjungwirover 8 years ago
This looks like a lot of fun! Using a RaspPi is really attractive to me because you can make everything interoperate, and nothing depends on some company&#x27;s servers.<p>I&#x27;ve done two Pi projects now that I keep meaning to blog about. One was a sprinkler control system. My old system was dying, and not very flexible, so I decided to run everything off a Pi. The tricky part was driving 13 sprinkler lines with 24V AC current. I bought a 16-relay board and eventually got it wired up. For someone with little electronics experience, there was a lot to learn. [1] is an attempt before I realized I had to use the relays. Eventually I got it working and used it all summer. With cron, I can schedule things however I want!<p>The second is a security camera for a vacation rental home, and is not quite done yet. The hardware side was not challenging at all, but I still need to work out how to copy the images up to S3 or a Linode. I&#x27;m using MotionEyeOS and it doesn&#x27;t seem to know how to do that itself. One of the big reasons I went with a Pi is I didn&#x27;t want to pay or rely on someone else&#x27;s servers. Also I wanted to avoid the security problems that have been in the news lately. I don&#x27;t want inbound traffic to my LAN; I&#x27;d rather push the video somewhere else.<p>It took me a long time to figure out worthwhile uses for a Pi. A friend of mine loves using these things for media servers and CI servers and whatnot, but to me it&#x27;s only satisfying if it&#x27;s something where you actually <i>need</i> the miniature scale. Also a Pi really hits the sweet spot for me in terms of hardware-vs-software. I&#x27;m sure I could have done the first project with an Arduino, but using ssh, cron, and python was really nice.<p>[1] <a href="http:&#x2F;&#x2F;raspberrypi.stackexchange.com&#x2F;questions&#x2F;50435&#x2F;driving-24vac-sprinkler-solenoids-through-uln2003a" rel="nofollow">http:&#x2F;&#x2F;raspberrypi.stackexchange.com&#x2F;questions&#x2F;50435&#x2F;driving...</a>
评论 #13495614 未加载
评论 #13493811 未加载
评论 #13493212 未加载
评论 #13495430 未加载
评论 #13500981 未加载
评论 #13493731 未加载
评论 #13498047 未加载
redsummerover 8 years ago
I managed to get bilingual voice activation (Alexa and Siri&#x2F;HomeKit - maybe Google Home in future) working with Home Assistant, homebridge, pi-mote, raspberry pi 3 and four energenie sockets. (In the US I guess you could use etekcity sockets)<p><a href="https:&#x2F;&#x2F;home-assistant.io" rel="nofollow">https:&#x2F;&#x2F;home-assistant.io</a><p><a href="https:&#x2F;&#x2F;github.com&#x2F;nfarina&#x2F;homebridge" rel="nofollow">https:&#x2F;&#x2F;github.com&#x2F;nfarina&#x2F;homebridge</a><p><a href="https:&#x2F;&#x2F;energenie4u.co.uk&#x2F;catalogue&#x2F;product&#x2F;ENER314" rel="nofollow">https:&#x2F;&#x2F;energenie4u.co.uk&#x2F;catalogue&#x2F;product&#x2F;ENER314</a><p><a href="https:&#x2F;&#x2F;energenie4u.co.uk&#x2F;catalogue&#x2F;product&#x2F;ENER002-4" rel="nofollow">https:&#x2F;&#x2F;energenie4u.co.uk&#x2F;catalogue&#x2F;product&#x2F;ENER002-4</a><p>I wouldn&#x27;t call it simple to set up, but it was cheap - about £70 (not including Alexa device, which could even be the same pi - <a href="https:&#x2F;&#x2F;github.com&#x2F;alexa&#x2F;alexa-avs-sample-app&#x2F;wiki&#x2F;Raspberry-Pi" rel="nofollow">https:&#x2F;&#x2F;github.com&#x2F;alexa&#x2F;alexa-avs-sample-app&#x2F;wiki&#x2F;Raspberry...</a> )
评论 #13493391 未加载
评论 #13493678 未加载
评论 #13492537 未加载
评论 #13498074 未加载
评论 #13497252 未加载
linker3000over 8 years ago
There&#x27;s some really useful stuff going on there - nice write-up.<p>Anyone getting into this field should take a look at Peter Scargill&#x27;s Tech Blog - he has published details and code for a home control system centered around a Pi using MQTT with a range of modules (mostly ESP8266). The most interesting recent stuff is on control, monitoring and dashboard design for phone and Web apps - his work on the dials and gauges is very good.<p>Pete also takes a regular look at other non-Pi platforms from an IoT control perspective.<p><a href="http:&#x2F;&#x2F;tech.scargill.net&#x2F;" rel="nofollow">http:&#x2F;&#x2F;tech.scargill.net&#x2F;</a>
deepsyxover 8 years ago
Hello and thanks for the post! I&#x27;m the author of this repo. I would be happy to answer any questions :) Also any feedback&#x2F;ideas are greatly appreciated!
评论 #13494181 未加载
评论 #13492658 未加载
评论 #13498050 未加载
dnadlerover 8 years ago
Cool! I&#x27;m doing something similar, but more from the data-analysis side of things for my condo&#x27;s efficiency.<p>I&#x27;ve been trying to keep a blog of my progress, if anyone is interested, though please forgive the poor grammar &#x2F; stream-of-consciousness in the posts... I&#x27;ve been writing quickly to get caught up.<p><a href="https:&#x2F;&#x2F;dan-nadler.github.io&#x2F;" rel="nofollow">https:&#x2F;&#x2F;dan-nadler.github.io&#x2F;</a>
评论 #13495904 未加载
评论 #13493459 未加载
teteover 8 years ago
Hope that doesn&#x27;t sound bad, it&#x27;s not meant to be, but am I the only one who doesn&#x27;t see a lot of &quot;automation&quot; there?<p>Looks more like monitoring and control, on which you could of course build automation, but I personally am also not sure where to head on that one.<p>Nevertheless: Cool project! :)
Freestyler_3over 8 years ago
Ok, Here is what I have been thinking of:<p>a PI, many sensors and controls. the pi to do the things the pi always does. the sensors to sense room temp. in each room. And this is the hardest one, flow control per radiator.<p>I want that I can set room temp schedules, and can go off schedule using the app (manual intervention) When the current temp in any room is below the set temp for that room the heater system turns on The rooms that are already above their set temp have the radiators turned down.<p>Why? Because I don&#x27;t like to waste heat to a room I don&#x27;t enter 90% of the day. And when my living room has reached the target temp there is always a room that is either still stone cold or feels like sauna.<p>The hardest part about this is the controllable radiator valves, the rest already exists.
评论 #13496172 未加载
评论 #13497240 未加载
评论 #13495858 未加载
geomarkover 8 years ago
Nice project. Mine isn&#x27;t quite so ambitious (yet). I just need to monitor water pumps. Does anyone have a suggestion for a water flow sensor? I need to detect if there is water present at the pump input. So far the only thing I&#x27;ve been able to get my hands on is a water flow meter [1]. But it&#x27;s overkill because I don&#x27;t need to measure flow rate, only presence of water.<p>[1] <a href="https:&#x2F;&#x2F;www.aliexpress.com&#x2F;item&#x2F;Black-G1-Inch-Water-Flow-Hall-Effect-Sensor-Switch-Flow-Meter-Counter-1-60L-min-Waterproof&#x2F;32674346412.html" rel="nofollow">https:&#x2F;&#x2F;www.aliexpress.com&#x2F;item&#x2F;Black-G1-Inch-Water-Flow-Hal...</a>
评论 #13500252 未加载
评论 #13497276 未加载
评论 #13498070 未加载
ryfmover 8 years ago
Cool, working on a similar project, but having a different stack<p>1. Z-wave switches&#x2F;outlets&#x2F;locks - all lamps, receptacles and locks controlled by Vera Edge; 2. DSC alarm system - door&#x2F;flood sensors, integrated with Vera; 3. Nest cameras - not integrated; 4. Nest thermostat - integrated with Vera and Alexa;<p>Currently trying to integrate Vera and Alexa to have fully voice- controlled home.
评论 #13496566 未加载
评论 #13500743 未加载
deepsyover 8 years ago
I just added a video! <a href="https:&#x2F;&#x2F;youtu.be&#x2F;wh0OoLUTeM8" rel="nofollow">https:&#x2F;&#x2F;youtu.be&#x2F;wh0OoLUTeM8</a>
wiradikusumaover 8 years ago
anyone know good but cheap WiFi&#x2F;Bluetooth-enabled adapter(?) for lightbulbs? e.g. so I can use any machine (not just Pi) that supports WiFi&#x2F;Bluetooth to control (at least on&#x2F;off) the bulb.<p>so: wall --&gt; adapter --&gt; lightbulb
评论 #13492889 未加载
z3t4over 8 years ago
any ideas how to run cables ? im currently using radio but it can be noisy with many units.
评论 #13495936 未加载
nialv7over 8 years ago
Why is everyone trying to write everything in JS nowadays...?
评论 #13493707 未加载
aarondfover 8 years ago
FYI: This was submitted two other times in the past 19 hours, making this the third.<p><a href="https:&#x2F;&#x2F;news.ycombinator.com&#x2F;item?id=13491012" rel="nofollow">https:&#x2F;&#x2F;news.ycombinator.com&#x2F;item?id=13491012</a> <a href="https:&#x2F;&#x2F;news.ycombinator.com&#x2F;item?id=13485444" rel="nofollow">https:&#x2F;&#x2F;news.ycombinator.com&#x2F;item?id=13485444</a>
评论 #13492682 未加载
评论 #13492125 未加载
brian_hermanover 8 years ago
RRRRR GGGGG BBBBBB this is awesome!