Android as a Speech/Alarm Device released! And Updated!

Got Lannouncer working in android things, Speaker connected over aux (usb audio is disabled in android things), bluetooth pairing is painful and almost impossible from cli. Works as expected. Have all the alerts I wanted setup.
Its awesome

What are you doing with android things, haven’t seen much about it since the announcement last year. On Pi3? Thanks!

Did not have an Android phone to run Lannouncer, All I had was an rpi3, decided to run android and run lannouncer there. Android things sounded like a good idea, instead of stock android image.

Is there a way to use it in iOS.
Do I need to have a computer always on as a server for the app?

LANnouncer works only on Android running OS 5.1 (Lollipop) or better. It does require to be on 24/7 to send out audible notifications. That being said, you could always pick up a cheap little Android phone from Walmart for as little as $20. That’s what I did and it works great.

I recently run into some concern about the reliability of this app.
It seemed it is not validating the Android device’s identity before sending command, nor does it ensure the Android device is properly speaking the sentence.

That said, it maybe sending the message to another device happen to occupy the configured IP address.

Or if the Android device is powered off/app not running, the smart app still behave as if everything is ok.

I would recommend implement some type of encryption, say, RSA key pair and validate Android app return response to ensure message spoken.

Hey, @rolled54.Why, given the demonstrated reliability of the SmartThings platform (ahem ahem), are you having actual problems here?

I’m willing to take some advice, but let’s ensure it’s relevant.

  1. The app primarily expects you to run in LAN mode. So you would own your own security. Nuff said?
  2. Using GCN, well, believe it or not, Google actually does do that work. Just a guess, but Google probably knows security. Nuff said?
  3. Umm… just askin’ here, you understand, but… your device lives at your I.P. Address, in your private subnet, NAT’d by your router, hopefully. So… if you think another device is grabbing your address… again, just askin’, you understand… but are you living in a dumpster and pirating the wifi from the nearby Westin?

It is true that messages are not closed-loop. SmartThings doesn’t allow for device handlers to pop up errors cleanly anyhow, or at least did not when I wrote this, around 18 months ago. And in theory that shouldn’t be useful, because it’s useful primarily when you aren’t looking at a device. For example, my configuration, when the front door is opened, sounds a chime and grabs an image from an I.P. Camera (Amcrest), uploading it to my Dropbox. Not something terribly useful to a successful man-in-the-middle attacker.

All that said, what is your security concern on this? It is, as far as I can tell, about seven times more reliable than SmartThings (no mean feat really) and lacks much by way of sensitive private data.

Respectfully yours…
The author that gave you a free Android text-to-speech, security camera, cloud-uploading chiming strobing extension to SmartThings.

2 Likes

No offense indeed, I made a donation a while ago to show my respect in your work.

I just felt like those who rely on this application as an security system may be surprised to find out the request to sound alarm may get lost in several ways.

Yes, as SHM (Smart Home Monitor) showed, nothing in SmartHome is good enough for a mission critical security system.

1 Like

I think I have everything installed properly, but I havent been able to see any sort of output from the android phone. Thank you in advance Here is my log:

9c2ab444-d5a6-4f8c-8ea1-48c5b37b8464 8:02:20 AM: debug GET /&ALARM=STOP&FLASH=STOP&@DONE@ HTTP/1.1
Accept: /
User-Agent: Linux UPnP/1.0 SmartThings
HOST: 192.168.0.XX:XXXX

9c2ab444-d5a6-4f8c-8ea1-48c5b37b8464 8:02:20 AM: debug 040B
9c2ab444-d5a6-4f8c-8ea1-48c5b37b8464 8:02:20 AM: debug IP address entered is 192.168.0.XX and the converted hex code is XXXXXXX
9c2ab444-d5a6-4f8c-8ea1-48c5b37b8464 8:02:20 AM: info Sending command &ALARM=STOP&FLASH=STOP&@DONE@ to 192.168.0.XX:XXXX
9c2ab444-d5a6-4f8c-8ea1-48c5b37b8464 8:02:20 AM: info Command request: &ALARM=STOP&FLASH=STOP&@DONE@
9c2ab444-d5a6-4f8c-8ea1-48c5b37b8464 8:02:20 AM: debug Executing ‘off’
9c2ab444-d5a6-4f8c-8ea1-48c5b37b8464 8:02:18 AM: debug GET /&ALARM=SIREN&@DONE@ HTTP/1.1
Accept: /
User-Agent: Linux UPnP/1.0 SmartThings
HOST: 192.168.0.XX:XXXX

9c2ab444-d5a6-4f8c-8ea1-48c5b37b8464 8:02:18 AM: debug 040B
9c2ab444-d5a6-4f8c-8ea1-48c5b37b8464 8:02:18 AM: debug IP address entered is 192.168.0.XX and the converted hex code is XXXXXX
9c2ab444-d5a6-4f8c-8ea1-48c5b37b8464 8:02:18 AM: info Sending command &ALARM=SIREN&@DONE@ to 192.168.0.XX:XXXX
9c2ab444-d5a6-4f8c-8ea1-48c5b37b8464 8:02:18 AM: info Command request: &ALARM=SIREN&@DONE@
9c2ab444-d5a6-4f8c-8ea1-48c5b37b8464 8:02:17 AM: debug Executing ‘siren’

Hi Tony. Bought you a martini yesterday, 5/28. I know it’s a holiday weekend. Was wondering how long is the wait to be added to your list of premium users. Thanks.

Hi, Tom. If you restart LANNouncer with GCN or WAN enabled, you should see it now. Thanks

Sorry Tony, I’m a tenderfoot here. I have no idea what is GCN or WAN and how I would enable it.
Thanks Tony.
Tom

Also a longtime and appreciative LANnouncer user. Going way back, in my mind, I thought premium features were something you planned, but never really implemented. I’ve yearned to contribute, premium features or not, but didn’t think it was possible. Please advise.

When you start LANNouncer, the log (scroll down from the U.I.) will say if it’s recognizing you as a Premium.

Premium serves several purposes:

  1. It provides very inexpensive appreciation for the work I’ve done. Thank you.
  2. It unlocks the ability to select and script 5 different audio files instead of just 1. These are the audio files you can play on an event, e.g. using a song to wake up to, or a sound effect when the door opens.
  3. GCN (Google Cloud) and WAN events are not throttled. Non-premium members have to wait three minutes between events.

There are some other enhancements that I can’t recall offhand, and some in-process, such as motion detection.

Mostly I think of Premium as you saying “Thank you.”

To turn it “on” after registering, if it’s not listed… The sixth line of the U.I. is “GCM”. Ensure that you aren’t set to “No IFTTT Support”. That mode disables any outside connections.

Got it. Thanks.
What Network Speakers might you recommend that I explore?
Would also like to push mp3’s files and other voice clips through my 5 Echo
and 2 Google Home modules. Is this possible? How so? Looking forward to
getting to use your App.
Thanks again.

NOTE: Sent post-haste from the palm of my hand.
Please excuse typos and creative auto-corrections.

this is some amazing work. Thanks for this. I find that this works well for a few hours and then stops working. The wifi seems connected ok. Bluetooth is fine. Volume is fine when it works. The IP is static and is shown on the router as static… I am unable to figure out why it stops working after a bit. It seems that big talker is sending out the text. But I am not seeing the command in lannanouncer logs. If it registers on the log it seems the announcement is sent out fine. If I shut down evertyhing and restart it seems to work again. I am wondering if its the android tablet? It is a cheap RCA tablet i bought.

The break in the link seems between sending out the text in big talker and/or the lannouncer device and the tablet recieving the text (i go into the device and send out a chime or version and it sends it to the device for a bit and then stops doing it after a while)…as in the lannouncer doesnt seem to have recieved the text
Wondering if you have come accross this issue

Thanks so much!!

Hey Suresh, It’s not going to be that the tablet is too cheap. The first step is to determine if the problem is SmartHome sending or the tablet receiving. I’ve got instructions on the webpage at http://www.keybounce.com/lannouncer/trouble-shooting/

Basically, …

  1. Using ping, ensure the tablet is still online
  2. Using either a browser or curl, see if you can get the chime (e.g. curl “192.168.1.xx:1035/?ALARM=CHIME&@DONE@”
  3. If those work, the problem is BigTalker
  4. If they fail, check Android settings as in the bottom of http://www.keybounce.com/lannouncer/trouble-shooting/after-weeks-lannouncer-stops/, make certain Wi-Fi is set to not sleep as in http://www.keybounce.com/lannouncer/trouble-shooting/several-hours-lannouncer-stops/, and turn off Battery Optimization for the app if it’s on. (Roughly Android Settings - Apps - Settings, but it varies by Android.)

Hi there, thanks so much for the reply.
I am still troubleshooting this. It seems that your point #4 is all setup the way it should be. Also I dont think its 3, because I am unable to use the lannouncer device to chime or send a version to the android device.
Both lanouncer and bigtalker logs in ST on the phone and on the ide show that the command was sent out.

That leaves only the android device and the hub i believe.
For some reason I can send a ping via my computer to the android but using the ping app for my iphone i cannot ping the android??? So there is something wierd here. I think is the android. But I dont have curl and I am not really a coding/unix guy so I dont know how to send a text via the browser to the android so as to eliminate smartthings as the culprit. Doing that will eliminate the hub i believe.

What exactly needs to be typed into the broswer? Typing “192.168. …DONE@” without the quotes returns that the site cannot be reached. Does this mean its the android?

Thankd for all your helpful suggestions and support!

@NWTony

Thank you for your excellent work, I really like it.

I wonder if it would be possible to induce a pause between sentences read by TTS?

I tested and adding triple dots … but it didn’t work.

If it matters at all, it’s WebCoRE that is sending my speak commands thru LAN.

Thanks, that would really help me.