SmartThings Community

[RELEASE] LANnouncer with IFTTT

smartapp_voice
tts
project_voice
#53

GCN and WAN mode can help a bit, but can’t help with the SmartThings app. Reliability still doesn’t seem to be their bag.

(Robross0606) #54

I’m getting a crash in LANnouncer because my device does not support Bluetooth. Bluetooth is not listed as a requirement for the app so I’m assuming this is a bug:

07-31 14:29:48.682  3443  3443 E BluetoothAdapter: Bluetooth binder is null
07-31 14:29:48.686  3443  3443 D AndroidRuntime: Shutting down VM
07-31 14:29:48.690  3443  3443 E AndroidRuntime: FATAL EXCEPTION: main
07-31 14:29:48.690  3443  3443 E AndroidRuntime: Process: com.keybounce.lannouncer, PID: 3443
07-31 14:29:48.690  3443  3443 E AndroidRuntime: java.lang.RuntimeException: Unable to start activity ComponentInfo{com.keybounce.lannouncer/com.keybounce.LANnouncer.ServiceActivity}: java.lang.NullPointerException: Attempt to invoke virtual method 'java.lang.String android.bluetooth.BluetoothAdapter.getName()' on a null object reference
07-31 14:29:48.690  3443  3443 E AndroidRuntime:        at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2666)
07-31 14:29:48.690  3443  3443 E AndroidRuntime:        at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2727)
07-31 14:29:48.690  3443  3443 E AndroidRuntime:        at android.app.ActivityThread.-wrap12(ActivityThread.java)
07-31 14:29:48.690  3443  3443 E AndroidRuntime:        at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1478)
07-31 14:29:48.690  3443  3443 E AndroidRuntime:        at android.os.Handler.dispatchMessage(Handler.java:102)
07-31 14:29:48.690  3443  3443 E AndroidRuntime:        at android.os.Looper.loop(Looper.java:154)
07-31 14:29:48.690  3443  3443 E AndroidRuntime:        at android.app.ActivityThread.main(ActivityThread.java:6128)
07-31 14:29:48.690  3443  3443 E AndroidRuntime:        at java.lang.reflect.Method.invoke(Native Method)
07-31 14:29:48.690  3443  3443 E AndroidRuntime:        at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:889)
07-31 14:29:48.690  3443  3443 E AndroidRuntime:        at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:779)
07-31 14:29:48.690  3443  3443 E AndroidRuntime: Caused by: java.lang.NullPointerException: Attempt to invoke virtual method 'java.lang.String android.bluetooth.BluetoothAdapter.getName()' on a null object reference
07-31 14:29:48.690  3443  3443 E AndroidRuntime:        at com.keybounce.LANnouncer.Utilities.getPhoneName(Utilities.java:293)
07-31 14:29:48.690  3443  3443 E AndroidRuntime:        at com.keybounce.LANnouncer.ServiceActivity.onCreate(ServiceActivity.java:247)
07-31 14:29:48.690  3443  3443 E AndroidRuntime:        at android.app.Activity.performCreate(Activity.java:6682)
07-31 14:29:48.690  3443  3443 E AndroidRuntime:        at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1119)
07-31 14:29:48.690  3443  3443 E AndroidRuntime:        at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2619)
07-31 14:29:48.690  3443  3443 E AndroidRuntime:        ... 9 more
07-31 14:29:48.696  2166  3209 W ActivityManager:   Force finishing activity com.keybounce.lannouncer/com.keybounce.LANnouncer.ServiceActivity
#55

Hi guys, sorry if this is overly simple but I’ve never figured it out. How do I get Lannouncer to play one of the sound files? I did see on the Home-Assistant.io page that you can ‘send a command’ to play the audio file. However I can’t get to that part.

Presently I use web-core to trigger the built in sound notifications.

(Mark) #56

Hey guys, I’m stumped and could use some help. I have Lannouncer running on an android tablet. Here’s what works:

I can use a web browser to send speak and chime commands to it using the tablet’s internal IP address.
I can use WebCoRE to send an http speak command via my WAN (with port 1035 forwarded).
I can successfully ping the tablet

I verified the correct IP address and port are configured in the LANnouncer thing.

What I can’t do is get Big Talker or WebCore to work with it. When I look in the IDE, I see them both send the speak commands but I don’t get anything from Lannouncer.

Because I can access Lannouncer via my internal and external networks, I’m guessing the issue has something to do with SmartThings. I bought the tablet specifically to run Lannouncer, so any help is very much appreciated.

Android as a Speech/Alarm Device released! And Updated!
(UltraVegas) #57

Trying to add LANnouncer to mysmartapps and I am getting an error:

No signature of method: script_app_metadata_26fca99a_d6ce_4cab_8f9c_b513db38358e.metadata() is applicable for argument types: (script_app_metadata_26fca99a_d6ce_4cab_8f9c_b513db38358e$_run_closure1) values: [script_app_metadata_26fca99a_d6ce_4cab_8f9c_b513db38358e$_run_closure1@4917c938] Possible solutions: getMetadata(), getState(), setState(java.lang.Object), metaClass(groovy.lang.Closure)

Any thoughts?

#58

LANnouncer is a Device Handler so paste your code there. You will then use smart apps like BigTalker to create notifications when things happen.

1 Like
(UltraVegas) #59

Thank you. I ended up figuring out what I was doing wrong not long after I posted and then got tied up and wasn’t able to get back on here… Thats what happens when you stare at computer screens all day…

(Brian ) #60

Big thanks to @rhoffer! This solved my problem when I tried to set up Bigtalker to send announcements, LANnouncer did not show up as a device…turns out I had the defaults set to Music Player and Not Speech Synthesis…after changing that - bang - it works!!

I set up BigTalker originally with VLC things to test it - but realized I didn’t want to tie up a big piece of hardware, so I bought a cheap Android tablet to use with LANnouncer. Set up and installed everything correctly, could test LANnouncer successfully using the app and curl from my computer, but couldn’t get it to show up as a device for Bigtalker.

I scoured these forums until I found your post! Thanks again!

(John Hires) #61

I have lannouncer up and running on my android tablet and integrated into my account and when I press the alarm button my device sounds the alarm, but my issue is while trying to integrate lannouncer in big talker it is not showing up as a text to speech device. does anyone know where I may be going wrong or what I need to do to get it to show up as a text to speech device.

(Brian ) #62

@hires06 See my previous post…should solve your problem. Good luck!

1 Like
#63

FYI: You can have Big Talker installed twice under Automation / SmartApps.

One version for your normal speakers (Bose, Sonos, etc.), and one version for your Speech Synthesis devices (LANNouncer). Just add a second version from the Marketplace with the other option for device type checked/unchecked.

(Brian ) #64

Thanks - I may try that. I’m trying to replace an old ADT system in a house I bought and liked the voice notices/chimes that were configured. I bought a crappy Android tablet to run LANnouncer and it’s about 75% effective (issues are mostly related to the tablet disconnecting from WiFi periodically). I set up VLC Things to work with VLC in a Mac, and that works about 2/3 of the time.

Today my multipurpose sensor lost connection from the Hub. So far in about 2 days of testing I’m not getting very reliable results!

My issues are with the ST devices and Android hardware - The Bigtalker and LANnouncer apps are great though!

#65

I’m Android as well and have a few ST Multisensors and Motion sensors. For me, Android has been reliable (including gps and presence) and I haven’t had issues with my ST devices purchased last year. There have been complaints from those that have recently purchased (newer versions perhaps) and they seem to be having a lot issues including dropping (I have never had one drop). Can’t find the thread as it wasn’t specific to ST. Just do a search around the ST multi sensors. They we’re recommending alternatives. There’s actually several threads out there. The one I was referring to was over the last week or so.

Here’s one for you:

(Shang) #66

There is no LANAnnouncer for ios. Is there anything for ios?

#67

No, LANnouncer is only available for Android 5.1 or better devices. Android devices are pretty cheap these days. A nice one is Amazon’s Fire HD8. On sale, they can drop down to $50-$60

(John Hires) #68

Thanks that worked.

(Buddy) #69

Thanks so much for this useful app, Tony! Along with BigTalker, I’m currently using it for door open/close alerts, and with SHM as an alarm. It’s been working so well on my android tablet (Nexus 7 2013) that I decided to get another cheap tablet to use with it (Amazon Fire 7).

I have it working on both, but I’ve noticed that the fire 7 is several seconds slower to respond, particularily when there hasn’t been a command in a while. I’ve disabled all the sleep and wifi options and such, but nothing seems to make them respond the same. LANnoucer running in the foreground or background doesn’t seem to make any difference. Any ideas on why this might be?

#70

Hi, I have a Fire 8 and a Fire 7 both running Lannouncer, and the 7 is usually behind. It’s old, they still sell them but there’s a reason they go on sale for $30, they just have old tech inside. You could have something else going on, but if it’s just a bit slow I’d say it’s likely related to the old tech (but a $30 tablet to run ActionTiles and Lannouncer is a great way to improve your house!!)

(Buddy) #71

Yeah, its just slower. I guess that’s what you get with a $30 tablet hahah! Thanks for your input!

(Charles) #72

I come in desperation, looking for some debugging help. I’m a long-time LANnouncer user with it running on several devices. I changed my main phone and can’t hear anything - test voice or the chime.

Device is Android 7.1.1 with a static ip, using WAN mode
Commands from ST show in the LANnouncer app status
Curl tests also show in the app
"Notify" command flashes its notice successfully
Fail: Siren, Speak, Strobe, Tone (but they show in the app)
Audio volumes are all up and not “silenced” in LANnouncer settings
Other app TTS commands are heard fine

I’ve looked everywhere I know to check. I’d be grateful for any ideas.