OK - just finished some more "Geekly" additions to my smart house.
TL;DR: I used a Raspberry Pi to turn my house intercom system into a "talking" endpoint...and an AirPlay speaker...for my smart house.
-----
Background Hardware
-----
My house was built about 30 years ago, with a "state of the art" intercom system. Each bedroom, the garage, and the lanai have an intercom station. The master unit sits in the kitchen. The doorbell would ring through the intercom stations, you could talk to each from different rooms, would play AM/FM radio stations to any room, etc. Well, the power supply on this went about a year ago (just a 60 Hz buzzzzz). After searching for a replacement power supply, I gave up and had to disconnect the unit. This also disconnected my doorbell.
I was not looking forward to patching large 6 x 9" holes in each bedroom, door bell, lanai, and garage...as well as the HUGE hole for the master unit. But...I stumbled on this:
https://www.intrasonictechnology.com/home-intercom-systems/retro/retro-combination-packages/
It's a "drop in" replacement for the now 30 year old broken system. They have trim plates to keep you from doing any drywall work, a door bell unit that fits into the existing hole, and it works with the existing wiring. Phew!
Got this guy, and now my doorbell works again! The intercom system works, but I cannot find the use case (it's almost easier to text). Talk to somebody at the front door...or just talk through the door...but...
I can play AM/FM to all the rooms in the house...or select rooms. It comes with a Bluetooth adapter (you plug into the Aux input) to allow you to have the house be a speaker.
-----
I bought a Raspberry Pi 3 B+ (probably WAY overkill...but they are cheap enough).
- Updated to the latest version or Raspberian
- Updated to the latest Raspberry Pi firmware (for better audio quality)
- Installed Team Viewer (want it to be headless)
- Installed VLC Media Player (for the talking smart house)
- Installed Shairport-Sync (for AirPlay functionality) (
https://pimylifeup.com/raspberry-pi-airplay-receiver/amp/)
I plugged the Raspberry Pi into the Aux Input on the House Intercom system...fired up my iPhone and BAM! Airplay to the house!
- The speakers in the intercom system are NOT EVEN CLOSE to the Sonos speakers I have (not even in the same Galaxy)...but it's cool to have this feature!
As I mentioned above, I have the ADT Pulse system linked with a SmartThings (version 2) hub. With the SmartThings hub, you install the VLC Thing custom device:
https://community.smartthings.com/t/vlc-thing-a-poor-mans-sonos-version-2-0-released-12-22-2016/5433
You link the VLC Media Player in the Raspberry Pi to the VLC Thing device and....BAM! Talking smart house!
When programming through SmartThings, you simply use the Text To Speech capability:
- Type in what you want to say
- VLC Thing sends off the works, and gets back a link to an MP3
- The MP3 is inserted into the bottom of the VLC Media Player playlist
- The VLC Media Player plays the Text To Speech
So now, when the front door is unlocked, my house says "The Front Door is Unlocked". "The Front Door is Locked" when it is locked.
When my personal iPhone joins the home network, my house says "The Lord of the Manor, King of the Castle, is arriving".
I added many more Text To Speech actions to coincide with the smart house doing things. For example:
- I made a "link" from the ADT Pulse system to the SmartThings system
- This "link" is 2 relays
--- Relay 0 off, Relay 1 off: ADT Pulse system is disarmed
--- Relay 0 off, Relay 1 on: ADT Pulse system is armed away
--- Relay 0 on, Relay 1 off: ADT Pulse system is armed stay
--- Relay 0 on, Relay 1 on: ADT Pulse system is in an active alarm state (fire, burglar, etc.)
- The house now "says" when the security system is armed or disarmed
- With SmartThings knowing that the alarm system is armed/disarmed it can do "smart" stuff like:
--- Armed Stay means I am home, so motion activated lights at low dimness level
--- Armed Away means I am not home, so send me a text notification if closet doors or the gun safe open
--- etc.
As the "coolness" of a talking house was starting to "annoy" my wife (especially when my daughter would come home at 1130 PM and the house would tell us that the front door is unlocked), I added a "night time" mode to the Smart House. Text To Speech volume drops and lights become motion sensor activated (at dimmed levels)
For reference, I am using WebCoRE (
https://www.webcore.co/) for about 80% of my SmartThings automations. WebCoRE is a "community created" programming interface for SmartThings. It's very impressive, and had been stable for me.
(For the record, my wife does love being able to tell Alexa to turn lights on/off, play music to the Sonos speakers, etc. When you are in bed and realize you left a light on in the house...you just tell Alexa to turn it off from the comfort of your own bed! The recent software updates for the Amazon Echo have improved the smart house connectivity with just about all devices...especially SmartThings).
More geekiness!