4 ms·
I use Snapcast and mopidy on a home server with the iris front end. It integrates with home assistant so you can have automations play sounds in all or some roo
by acidburnNSA 6y ago
I use Snapcast and mopidy on a home server with the iris front end. It integrates with home assistant so you can have automations play sounds in all or some rooms.
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.
https://mopidy.com/ext/iris/ https://mopidy.com/ext/iris/
https://www.home-assistant.io/ https://www.home-assistant.io/
- jcims 6y agoHave you done any tinkering with node-red yet? It’s pretty handy for tying stuff like that together and runs nicely on a pi (incl mqtt integration for esp/arduino/sonoff integration)
- acidburnNSA 6y agoI have not. I do it all in yaml still, which I feel like I like. I've seen some pics of node-red graphs and it looks pretty slick though.
- jcims 6y agoIt's super slick. Runs pretty good in docker on the Pi if you just want to tinker without making a mess. I'm using it to do process control for a small fractional distillation apparatus. It's doing temp monitoring, production monitoring (by weight) and using a PID loop to manage heat input. Takes a minute to figure out how it works but once you get used to the message format you can stack on functionality extremely quickly. With MQTT adding functionality from other devices is super easy too. 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.
- emilburzo 6y ago> indoor air quality sensor system with co2 and pm levels What do you use for monitoring this? I've been looking for something decent here for a while now.
- acidburnNSA 6y agoI use a Esp8266 microcontroller reading a MH-Z14A NDIR CO2 sensor [1] and a Laser PM2.5 HM3301 from grove [2]. Pretty easy to code up in C. Once tge sensors data is read, the esp sends the it over the MQTT protocol on wifi to home assistant which puts them in SQL db and does plots and stuff. [1] https://www.winsen-sensor.com/d/files/infrared-gas-sensor/mh-z14a_co2-manual-v1_01.pdf https://www.winsen-sensor.com/d/files/infrared-gas-sensor/mh... [2] https://www.seeedstudio.com/Grove-Laser-PM2-5-Sensor-HM3301.html https://www.seeedstudio.com/Grove-Laser-PM2-5-Sensor-HM3301....
- ngcc_hk 6y agoInteresting as another proj
- emilburzo 6y agoMy DIY sensors[1] (temp/humidity) are running on attiny84 and 3xAAA batteries, which I really like as they last for about a year (sending updates every ~1 minute and then sleeping). 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! [1] https://ambient.emilburzo.com/#overview https://ambient.emilburzo.com/#overview
- sleavey 6y agoCan you tell us more about your home brew weather station? That sounds cool.
- acidburnNSA 6y agoSure. Here's a write-up on it: https://partofthething.com/thoughts/weather-and-air-quality-monitoring-station-with-esp8266-and-home-assistant/ https://partofthething.com/thoughts/weather-and-air-quality-...
- milofeynman 6y agoWhat do you use for amps for the speakers?
- acidburnNSA 6y agoIn one room I use a regular large stereo amp. I have a IR led taped to it to turn it on and off via LIRC because it uses 100 watts on standby and I can't stomach running it all night. It gets audio via snapcast through a raspberry pi 3. 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.
- jsingleton 6y agoI made a similar setup with Home Assistant running on a low power Raspberry Pi 3A+ connected to a Xiaomi Mijia Bluetooth Low Energy temperature and humidity sensor (model code LYWSDCGQ). It takes a single AAA battery and it's lasted almost a year on one. 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-humidity-monitor-review/ 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?
- BenGosub 6y agoare SnapCast and Mopidy complementary or supplementary?
- acidburnNSA 6y agoComplementary. Mopidy supplies the music data from Spotify or your library. Snapcast sends it around the house to different networked stereos.