Using LANNouncer in SmartThings

The basic aspects of LANNouncer can be configured using standard SmartThings functionality. The Alarms, for example, work just as expected. But SmartThings as shipped is a bit light on functionality.

Add BigTalker

In addition, you will probably want to add Ray Zurbock’s Big Talker or a similar SmartApp, to make configuring speech easy. This then can connect speech to most events. (Not, unfortunately, alarm modes, but beyond that, most events.)

Additional Commands

The standard SmartThings commands are a bit light on flexibility. For example, there’s no distinction between a chime, a doorbell and an alarm. But LANdroid supports these.

To get there, use Big Talker or another speech driver to send the following strings to LANdroid:

String Purpose
@#ALARM=CHIME Sound a chime, like a store entry (Same as using the Notification.beep device capability.)
@#ALARM=DOORBELL Sound a doorbell
@#ALARM=ALARM Sound a alarm, like a missile warning
@#ALARM=SIREN Sound an old-style police siren
(Same as using the Alarm.Siren device capability.)
ALARM or FLASH command:CONTINUOUS Put alarm and strobe into repeat mode.
You must issue ALARM (or FLASH)=STOP to cancel.

e.g. ALARM=CHIME:CONTINUOUS to start,
ALARM=STOP to stop.

@#VERSION=ON Speak the version
@#FLASH=STROBE Strobes the flash for about 10 seconds
(Same as using the Alarm.Strobe capability.)
@#FLASH=LONG Turns the flash on for about 10 seconds
@#PHOTO=BACK Takes a photo from the device back camera.
(FRONT is an unimplemented option currently.)
@#PHOTO=BACK&STSHRINK=TRUE You wouldn’t use this from BigTalker, but this will return the
image in a SmartThings-friendly size.
e.g. curl
“192.168.1.xx:1035/?PHOTO=BACK&STSHRINK=TRUE&@DONE@” >
test3.jpg
would retrieve a small copy to test3.jpg
@#PHOTO=BACK&WAIT=TRUE Same as above, but for a full-sized photo
@#RETRIEVE=camera_name&WAIT=TRUE RETRIEVE grabs an image from the configured camera (see Installation.)  The WAIT and STSHRINK commands will cause it to be returned; otherwise it merely is copied to the Android device media folder and, if configured, to the Dropbox folder.
@#VIDEO=seconds_to_record Takes video with the Android camera, putting it in the media folder and optionally to Dropbox.
@#RETRIEVESEQ=camera_name Retrieves a sequence of photos from the remote camera.  This is set for 4 photos, at 3+ seconds apart, though is generally constrained by the camera login speed.
SPECIAL COMMANDS
SPEAK=@| This is the SPEAK ENVELOPE, that allows arbitrary strings
(commands) to be sent via text-to-speech.

The LANnouncer service is not limited to contacts from the SmartThings hub.  Commands can be sent directly via, e.g. curl:

  • curl “192.168.1.xx:1035/?ALARM=SIREN&@DONE@”
  • curl “192.168.1.xx:1035/?VERSION=ON&@DONE@”

The SPEAK extensions can also be sent via curl, however be aware that in some environments, curl cannot send “#”, so “|” is used for LANdroid instead, as in…

  • curl “192.168.1.20:1035/?SPEAK=@|ALARM=CHIME&@DONE@”