Hacker News new | ask | show | jobs
by Nanite 3263 days ago
For everyone wanting to do something similar, please consider not using a raspberry pi for something a simple as controlling a light/garage door and take a look at ESP8266 or ESP32 boards (which have wifi onboard), there's tons of tutorials online, and the price tag can be as low as $3.
3 comments

This was my first thought. In my case, I'm using an ESP8266 wired to a lux sensor and a motion sensor. I wrote some really basic code to poll the sensors and send the data via MQTT to my home-assistant.io container. HASS seemed like the logical choice given the disparate Z-Wave, Zigbee, Hue etc. devices in my home. The only challenge I didn't solve in the ESP8266 code is monitoring of its power supply (rechargeable AAs). I even 3D printed a decent-enough enclosure for the device. It looks kind of like a Dalek and a hockey puck had an unwanted lovechild.
Something simple? You approach seems to be simple, not mine. Can you use that system as a security alarm and send push notifications to your phone? My system can. There are different approaches, don't underestimate others different than yours.
>Can you use that system as a security alarm and send push notifications to your phone?

Yes, you can. https://github.com/witnessmenow/push-notifications-arduino-e...

The comment was pointing out that the Raspberry Pi is the wrong tool for the job.

Someone can do everything you mentioned on a cheaper, smaller device; one that’s not running an entire OS that has to be maintained.

And I would argue that if you ever want to productize something like this in volume, you might want to go with a BeagleBone Black/Green instead.

You cannot but the RaspberryPi chips, while you can very much buy all the BeagleBone Black chips and make it yourself, if necessary.