by acidburnNSA · 6y ago · 0 comments
With covid I've been able to pipe my meetings to snapcast from the web browser (listen only) which is great for restroom breaks and snacks in long unengaging meetings.
I rigged up a AC sniffer circuit and wifi microcontroller to my dumb doorbell which snapcasts a recording of a doorbell chime throughout the house when it's pressed so I can hear it when music is playing.
Snapcast can also stream to a phone, so I can Bluetooth into the hot tub speakers and have it on the whole house audio too.
Open source home automation with home assistant and this tech is really fun if you want to get into it as a hobby. Certainly requires work, but that's fun for me.
I also have it all integrated into a home-brew weather station and an indoor air quality sensor system with co2 and pm levels so I can get alerts to open windows or turn on fans if co2 gets too high. I also get raindrop noises when it starts raining so I go close the windows. Fun times.
Of course there's a security system involved too which arms at night and when the family's WiFi all disconnects. It disarms automatically based on WiFi auth and an openwrt script, so it's totally autonomous. Works very well.
Working on a tensorflow based automation now to have the front door camera detect packages and send email alerts. Does not work at all, yet.
All local, all self-hosted, with a bridged MQTT server on a VPS for communicating with my location tracker and my mom's house (I get alerts if she's on vacation and the furnace dies or basement floods or there's a break in or whatever). I vpn in to my router to control things when out. But if internet dies at home, everything local still works great.
Mopidy also connects to Spotify, of course.
There's a ready-made Home Assistant component but I wrote up a guide on how to read the data from a Linux terminal on your laptop: https://unop.uk/xiaomi-mijia-bluetooth-temperature-and-humid...
I also have Volatile Organic Compounds / equivalent carbon dioxide (Sensirion SGP30) and Particulate Matter (Plantower PMS5003) sensors soldered up to a Raspberry Pi Zero W over I2C/UART for logging. It lasts quite a while on a USB battery so you can take it out and about. An ESP8266/ESP8285 would last longer but it's easy to log with a python script and the SD card gives you loads of storage. I haven't written this up yet but will if anyone is interested?
Overall have had a really good experience with it. My only complaint is that it's not multi-threaded, so if you have a process that blocks (e.g. the dallas 1-wire library for reading temp sensors) then you'll stall the flows. Most of those issues have simple workarounds though.
What do you use for monitoring this? I've been looking for something decent here for a while now.
[1] https://www.winsen-sensor.com/d/files/infrared-gas-sensor/mh...
[2] https://www.seeedstudio.com/Grove-Laser-PM2-5-Sensor-HM3301....
But because I'm not using a voltage regulator, since that would mean losing the very nice onboard voltage monitor, it's been really hard to find some CO2/PM2.5 sensors that can work from ~5V to ~3.4V.
> Working voltage 4.5 V ~ 5.5V DC
> Operating Voltage 3.3V / 5V
Guess I need to keep looking, but thanks for linking the specific models!
In another room I have my home workstation/server/NAS hooked to nice speakers via a $10 mini Kinter MA170 amp that I thought for sure would sound like crap but honestly is pretty darn good.