HOW TO: Enable/Disable Squeezebox Alarms In A Scene

Here’s a way to enable and disable SqueezeBox alarms in a Scene.

First, install the updated Squeezebox plug-in found in this forum:
http://forum.micasaverde.com/index.php/topic,10108.msg108238.html#msg108238

Once installed and working you can use the “Advanced” tab page in Vera’s “Create Scene” editor to assign “Commands” to a Squeezebox Player. Do this by selecting the player in the list and Adding it, then selecting “command” from the list of available actions. You will need to enter a squeezebox CLI command (see below). You don’t need to enter the PlayerId for these commands since the plug-in will do it for you.

(You can find all Squeezebox CLI commands under on your Squeezebox Media Server by clicking the link at the bottom of the main page: Help > Technical Information > Command Line Interface )

ALL ALARMS:

To Enable All Alarms for a player enter this command:
alarm enableall

To Disable All Alarms for a player enter this command:
alarm disableall

The above will enable and disable the checkbox that controlls all alarms. It will leave the individual alarm settings alone.

INDIVIDUAL ALARMS:

The tricky part of modifying a single alarm is the “alarm” command requires an . The is an internal number assigned by the squeezebox server to each defined alarm. The first thing you must do is lookup the alarm ids, which can be found buried in HTML in the server setup pages. This is explained below.

In these example you will replace the id numbers with your own.

Example of Disabling an alarm:
alarm update id:0d977d6e enabled:0

Example of Enabling an alarm:
alarm update id:3c5589a6 enabled:1

You can find your existing alarm ids using the following method:

Bring up your Squeezebox Media server up in a web browser. On my system it is on a computer with an IP of 192.168.1.11 and uses port 9002, so I type in the following in the web browser’s address:
192.168.1.11:9002

Now display just the HTML page for the alarm tab by appending “/settings/player/alarm.html” to the ip:port :
192.168.1.11:9002/settings/player/alarm.html

You should see the Alarms setup page. Select the Squeezebox Player you want to modify alarms for in the dropdown list. You should see all alarms listed for the selected player.

Now use the “Page Source” menu item for your web browser to review the HTML code for this page (or save the page and open it in a text editor). You will find the alarm ids used as suffixes for variables in the HTML code. Find the text “alarm_id_” and write down just the Hex code suffix following it for each alarm. Use these ids in the CLI alarm commands shown above to change settings for individual alarms.

HTML Example:

The alarmid to use is: 3c5589a6

The enable command is:
alarm update id:3c5589a6 enabled:1