10 ms·
Raspberry Pi 3 based home automation with Node.js and React Native
- brian_herman 10y agoRRRRR GGGGG BBBBBB this is awesome!
- dvh 10y agoI'm gonna repost comment made by niftich half year ago because it's spot on: Internet of Things isn't about people hooking up jailbroken Kindles to one-way mirrors to show the weather. It's not about Ardunios and Raspberry Pis being used to collect some data, move some servos, and make a blog post about it. It's about big money to be made by introducing new monetization channels in places there were none before.
- maxerickson 10y agoWhat does that have to do with the link?
- pjc50 10y agoThe phrase "IoT" when used by techies refers to things like the link. The phrase "IoT" in a business content refers to things like Amazon Dash; the purpose is not related to helping the user in ways other than monetisation.
- deleted 10y ago[deleted]
- maxerickson 10y agoI understand that. The link doesn't present itself as being internet of things. (It's even about leaving the internet out of connected devices)
- 0xfeba 10y agoEh, IoT just means devices not typically considered (having) a computer are now computers (though they likely had embedded systems in them for ages now), and more importantly--they are connected to the internet. That it's being used for monetization (fridge ordering more milk, dash buttons, etc.) is just a symptom. And further: "The S in IoT stands for security" [1]. [1] - https://twitter.com/shelajev/status/796685986365325312 https://twitter.com/shelajev/status/796685986365325312
- mrgreenfur 10y agoDo you have any examples?
- mturmon 10y agoThe mirror rig is at: https://medium.com/@maxbraun/my-bathroom-mirror-is-smarter-than-yours-94b21c6671ba#.nmxk64bev https://medium.com/@maxbraun/my-bathroom-mirror-is-smarter-t...
- Raphmedia 10y agoBig corporations are not responsible enough to do IOT. We all know what would happen. Tracking, analytics and ads.
- 0xfeba 10y agoSo a bunch of small and medium companies with zero accountability are pushing out Baby Cameras, DVRs, etc. by the thousands that are all drafted into the next botnet shortly after purchase by their blissfully unaware owners.
- notfreeyet 10y agoImagine if you were a spy agency...why wouldn't you sell networked devices on Amazon? I would setup a number of companies to sell networked devices of all kinds at cost just to get my backdoors inside as many networks as possible. Which is why we should all have our "IoT" devices behind an IoT device we trust. Haha.
- MrGrundel 10y agowoah dude, fight the power, let's see if we can fit that on a cafepress shirt with a Che-style Stallman silhouette
- redsummer 10y agoI managed to get bilingual voice activation (Alexa and Siri/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) https://home-assistant.io https://home-assistant.io https://github.com/nfarina/homebridge https://github.com/nfarina/homebridge https://energenie4u.co.uk/catalogue/product/ENER314 https://energenie4u.co.uk/catalogue/product/ENER314 https://energenie4u.co.uk/catalogue/product/ENER002-4 https://energenie4u.co.uk/catalogue/product/ENER002-4 I wouldn't call it simple to set up, but it was cheap - about £70 (not including Alexa device, which could even be the same pi - https://github.com/alexa/alexa-avs-sample-app/wiki/Raspberry-Pi https://github.com/alexa/alexa-avs-sample-app/wiki/Raspberry... )
- fit2rule 10y agoWhy not distribute the image as a one-off rPi bootable?
- SEJeff 10y agoThat exists as one (of many) installation options: https://home-assistant.io/getting-started/installation-raspberry-pi-image/ https://home-assistant.io/getting-started/installation-raspb...
- silasb 10y agoI'm pretty much doing the exact same. Home Assistant Custom TX board to transmit to the Etekcity sockets https://www.amazon.com/Etekcity-Wireless-Electrical-Household-Appliances/dp/B00DQELHBS https://www.amazon.com/Etekcity-Wireless-Electrical-Househol... Using Alexa to control those outlets via Home Assistant Emulated Hue component. Then I have a couple groups defined in Home Assistant for my living room lights, so I can say "Alexa, turn off living room lights" and it'll turn off my three outlets. I can also do "Alexa, turn off living room light one" to just turn off a particular light. One thing that I've noticed with Alexa and Home Assistant is that I have an outlet labeled "Xmas Light" and I can either say "Alexa, turn on Xmas Light" or "Alexa, turn on Christmas tree light" and it seems to discern between the two. Overall I love this combo and is working pretty dang good. Next goal is to use PIR sensors so when I go to the basement it'll automatically turn on the basement lights.
- aarondf 10y agoFYI: This was submitted two other times in the past 19 hours, making this the third. https://news.ycombinator.com/item?id=13491012 https://news.ycombinator.com/item?id=13491012 https://news.ycombinator.com/item?id=13485444 https://news.ycombinator.com/item?id=13485444
- lolptdr 10y agoBut these go to 11.
- dang 10y agoA small number of reposts are ok if an article hasn't had significant attention yet: https://news.ycombinator.com/newsfaq.html https://news.ycombinator.com/newsfaq.html. This helps give good submissions more than one chance at getting on the front page. Otherwise it's too much of a lottery. It's too bad that the author's Show HN wasn't the one that made it, but at least the project is getting attention now.
- deepsyx 10y agoHello and thanks for the post! I'm the author of this repo. I would be happy to answer any questions :) Also any feedback/ideas are greatly appreciated!
- chrisabrams 10y agoWhat type of AC / Heating does your home have? Are those two knobs in the photo the central climate control?
- deepsy 10y agoHello. I have a Panasonic AC, that I'm controlling via IR LED Diode (see schematics in repo), here is the actual picture of the AC: http://imgur.com/lXHxvWt http://imgur.com/lXHxvWt. I'm also using similar heater: http://gazifikaciya-otoplenie.uslugi.catalog.bg/images/product/big/27722_48490.jpg http://gazifikaciya-otoplenie.uslugi.catalog.bg/images/produ..., which I'm controlling via Servo (thermostat) and a central on/off relay. Going to add a video later tonight :)
- wil421 10y agoIn your pics I saw what looked like a servo turning your dial. Is that what you mean? It's a great solution. Most houses in the US have central heating/cooling so the IR remote isn't an option. Although I have seen that style before. What I want to do is integrate it directly with the system. Here's an example of a Honeywell connector similar to mine. http://diyhousehelp.com/how-to/honeywell-4-and-5-wire-thermostat-wiring-instructions http://diyhousehelp.com/how-to/honeywell-4-and-5-wire-thermo...
- deepsy 10y agoYes, that's what I meant. Unfortunately, I did not want to disassemble the unit as it would void the warranty.
- paulbennett 10y ago
- wiradikusuma 10y agoanyone know good but cheap WiFi/Bluetooth-enabled adapter(?) for lightbulbs? e.g. so I can use any machine (not just Pi) that supports WiFi/Bluetooth to control (at least on/off) the bulb. so: wall --> adapter --> lightbulb
- luma 10y agoThe Sonoff is a $5 WiFi relay with an embedded ESP8266 that is programmable via Arduino (and several other dev platforms), allowing you to control the relay via HTTP/REST/MQTT/etc. https://www.itead.cc/sonoff-wifi-wireless-switch.html https://www.itead.cc/sonoff-wifi-wireless-switch.html
- gm-conspiracy 10y agoWhat about something like that for dimmable lamps, bulbs (triac instead of relay)?
- pjungwir 10y agoThis 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's servers. I'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! 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'm using MotionEyeOS and it doesn't seem to know how to do that itself. One of the big reasons I went with a Pi is I didn't want to pay or rely on someone else's servers. Also I wanted to avoid the security problems that have been in the news lately. I don't want inbound traffic to my LAN; I'd rather push the video somewhere else. 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's only satisfying if it's something where you actually need the miniature scale. Also a Pi really hits the sweet spot for me in terms of hardware-vs-software. I'm sure I could have done the first project with an Arduino, but using ssh, cron, and python was really nice. [1] http://raspberrypi.stackexchange.com/questions/50435/driving-24vac-sprinkler-solenoids-through-uln2003a http://raspberrypi.stackexchange.com/questions/50435/driving...
- bisby 10y agoHaving a pi cluster "feels" more like a datacenter with many servers. Using kubernetes to coordinate it all is pretty fun when you actually have several "servers" to coordinate across. That to me was the satisfying part. Not that I NEEDED miniature scale, but that the miniature scale felt like a valid downsizing of real scale.
- Already__Taken 10y agoI've been tempted to do something like this, what are you doing about shared storage?
- dnadler 10y agoCool! I'm doing something similar, but more from the data-analysis side of things for my condo's efficiency. I've been trying to keep a blog of my progress, if anyone is interested, though please forgive the poor grammar / stream-of-consciousness in the posts... I've been writing quickly to get caught up. https://dan-nadler.github.io/ https://dan-nadler.github.io/
- silasb 10y agoNice little blog you have. I'll be doing some similar. Couple things that I'll likely do different is push to InflexDB host in my homelab and using Pandas to help me analysis data. Keep up the good work, it's inspiring.
- dnadler 10y agoThanks! I'm using pandas as well, though haven't got too far into the quantitative analysis just yet. I hadn't heard of InfluxDB before, looks interesting.
- deepsy 10y agoLooks interesting, bookmarked it for later reading :) I noticed that you have sensor in all parts of the house from the images. I wonder how did you solve the wiring issue? I mean I'm looking for a cheap way to connect all sensors, but avoid putting wires everywhere.
- dnadler 10y agoYeah, that's a problem I'm still working on solving. Initially, I had planned to wire through the basement, but getting through the floor turned out to be a littler more difficult than I had hoped. At the moment, the wires are run under carpet and behind furniture. I just ordered another Pi (and am looking at cheaper boards) to set up another 'base station' to reduce the amount of wires I need to get full coverage.
- nialv7 10y agoWhy is everyone trying to write everything in JS nowadays...?
- z3t4 10y agoany ideas how to run cables ? im currently using radio but it can be noisy with many units.
- deepsy 10y agoThis is one of my main issues as well! At this point the whole hardware is located close to each other, so the cable management is fine, but I would like to put sensors in other parts of my flat. One of my thoughts is to use UTP/FTP cable, as it has 8 wires and it's pretty thin (and not that ugly).
- ryfm 10y agoCool, working on a similar project, but having a different stack 1. Z-wave switches/outlets/locks - all lamps, receptacles and locks controlled by Vera Edge; 2. DSC alarm system - door/flood sensors, integrated with Vera; 3. Nest cameras - not integrated; 4. Nest thermostat - integrated with Vera and Alexa; Currently trying to integrate Vera and Alexa to have fully voice- controlled home.
- linker3000 10y agoThere's some really useful stuff going on there - nice write-up. Anyone getting into this field should take a look at Peter Scargill'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. Pete also takes a regular look at other non-Pi platforms from an IoT control perspective. http://tech.scargill.net/ http://tech.scargill.net/
- Freestyler_3 10y agoOk, Here is what I have been thinking of: 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. 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. Why? Because I don't like to waste heat to a room I don'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. The hardest part about this is the controllable radiator valves, the rest already exists.
- deepsy 10y agoActually, this is on top on my to-do list. I've been thinking about it for some time. Currently I'm planning to do it via motor and a reductor with ~1:1000 rate. The other issue is to find a cheap way to connect all radiators without putting cables everywhere. I'm open for suggestions :)
- Freestyler_3 10y agoData can go over the air, the power either has to be battery or cable. The other commenter has a link to a product that works on battery. (though that has the temp sensor inside the device, which I don't consider reliable, being so close to the heat source) It would be an amazing project when redoing a house, as at that point I could just run a special circuit. So yeah check out that link, for your convenience copied here: http://www.vesternet.com/smart-home/technologies/z-wave/heating-cooling/radiator-valves http://www.vesternet.com/smart-home/technologies/z-wave/heat...
- bloaf 10y agoI have a lot of similar ideas. The one constant problem I keep running into is the amount of work it would be to get power to all those devices. I'd absolutely love if it were possible to power + network all the devices via PoE, but those adapters are so expensive. If anyone knows of a good Pi-like board that runs off PoE out of the box, let me know.
- geomark 10y agoNice project. Mine isn'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've been able to get my hands on is a water flow meter [1]. But it's overkill because I don't need to measure flow rate, only presence of water. [1] https://www.aliexpress.com/item/Black-G1-Inch-Water-Flow-Hall-Effect-Sensor-Switch-Flow-Meter-Counter-1-60L-min-Waterproof/32674346412.html https://www.aliexpress.com/item/Black-G1-Inch-Water-Flow-Hal...
- Herodotus38 10y agoCould you use something to measure resistance? Like two wires, so when immersed resistance drops?
- geomark 10y agoI'm sure that would work, at least initially. I'm concerned about reliability. My water has very high levels of calcium carbonate which quickly scales up everything. I think the electrodes wouldn't last long. A nonintrusive solution would be great. I've seen nonintrusive water flow sensors that use ultrasound to detect the flow of water. They are industrial devices and their price makes them unsuitable for my use.
- JohnHenrySDM 10y agoThere are cheaper optical water level sensors in the aquarium trade that might work for you. Check out the Tunze Osmolator as an example. It could easily be connected to a GPIO on the pi.
- geomark 10y agoThat's a very interesting idea. Thanks for the suggestion. It is still invasive since I have to cut the intake pipe and insert a section with the sensor installed in it. But it is more flexible since I can install it in any size pipe. And for my use case of a 1 inch input pipe it can be cheaper than my current solution. For example https://www.aliexpress.com/item/15mA-5V-Optical-Infrared-Water-Liquid-Level-Sensor-Liquid-Water-Level-Control-Switch-Favorable-Level-Sensors/32752456624.html https://www.aliexpress.com/item/15mA-5V-Optical-Infrared-Wat... Although, I wonder if scaling (as in hard water scale) is still going to be an issue.
- deepsy 10y agoI just added a video! https://youtu.be/wh0OoLUTeM8 https://youtu.be/wh0OoLUTeM8
- tete 10y agoHope that doesn't sound bad, it's not meant to be, but am I the only one who doesn't see a lot of "automation" there? 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. Nevertheless: Cool project! :)