Live data from Hacker News

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

github.com

81–90 of 98 posts

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

#81
post #27

Earlier quoted context omitted.

The relay is controlling the main voltage input and it's similar to http://i.ebayimg.com/00/s/NTAwWDUwMA==/z/ZS0AAOSwr81UNgc9/$_... . The relay's function is to act like a central switch. I have also a servo attached to the thermostat and it's only role is to spin the thermostat controller. The servo is similar to http://www.conrad.com/medias/global/ce/2000_2999/2000/2060/2...

You could also look at SSRs, which tend to be easily controllable with logic level outputs on a microcontroller.

Solid State Relays (SSR) do work great. Internally they use an LED to close the switch rather than the mechanical coil mechanism used in the classic click relays; these are totally silent.

I am using one to turn on/off the mains power of a 12VDC transformer. The nice thing about an SSR with an input range of 3–30V (a common type) is that you can drive it directly (and safely!) from a Raspberry Pi GPIO pin (3.3V).

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

#82
Hope 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! :)

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

#83
post #23

anyone 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

The 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

What about something like that for dimmable lamps, bulbs (triac instead of relay)?

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

#84
post #55

Ok, 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…

Actually, 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 :)

Data 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/heat...

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

#85
post #59

Ok, 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…

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

Yeah you always need some cables if you don't want to change batteries all the time, and wifi is convenient but its better to use wired.

I think there are 2 options,

1 you run everything on the network.

2 you use PI's io to directly control/sense.

The power either comes from pi, poe or a separate adapter (either at pi running with other wires or near radiator)

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

#86
post #20

Earlier quoted context omitted.

What type of AC / Heating does your home have? Are those two knobs in the photo the central climate control?

Hello. 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 . I'm also using similar heater: 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 :)

How did you attach the servo? I have almost the same heater and was wondering if go with 7-8-9 or servo, but I haven't work with servos before, so do you have any pages that could help with those?

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

#87
post #29
post #22

Earlier quoted context omitted.

In 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-thermo...

Yes, that's what I meant. Unfortunately, I did not want to disassemble the unit as it would void the warranty.

I'm a bit confused here; looking at the video and pics of your water heater/boiler, the knob the servo is turning looks like it sets the temperature the boiler heats the water to for the central heating loop. This is generally not the thermostat, and once set to a value you are happy with shouldn't need to be adjusted.

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

#88
post #36

I 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://github.com/nfarina/homebridge https://energenie4u.co.uk/catalogue/product/ENER314 https://energenie4u.co.uk/catalogue/product/ENER002-4 I would…

I literally clicked into the comments here to mention how awesome Home Assistant is at things exactly like this. Glad to see I am not the only happy user / occasional contributor!

Home Assistant has a staggeringly large base of contributors. I think that's in part because there are a ton of individual use cases that spark a contribution, but I think it also speaks to how well Paulus handles contributions.

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

#89
post #63

Nice 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-Inc…

If you don't care about precision (and depending on what your pipes are made out of), you could make a DIY version of that sensor (that you could wrap around the pipe, rather than having to cut it to put it inline).

https://www.youtube.com/watch?v=TR0baWuB6v4

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

#90
post #41

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'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 curren…

I too replaced my dying PoS Rainbird irrigation controller with a raspberry pi and a relay board. > With cron, I can schedule things however I want! Wait, are you not using sprinklers_pi[1]? I highly recommend it. I have more home pi/arduino/IoT projects coming up, but I am thinking it's going to be a lot of work integrating them. I'd like one home app/page that integrates them all. 1. https://github.com/rszimm/sprin…

If it is only for irrigation of anything not grass, why not use off the grid system like blumats (http://blumat.com/en/)? You only need to provide it with a water source.
Post reply on HN