#!/bin/bash

# $Id: status.bash,v 1.1 1998-04-02 01:50:01-05 dshaw Exp $
#
# This is a simple program to just print out the status of the X10 system.
# You can use it as a base for your own programs.  It isn't nearly as
# efficient as the perl versions ("status" or "status2") 

source xtend.bash

houses="a b c d e f g h i j k l m n o p"
units="1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16"

for x in $houses
do
	for y in $units
	do
		if_on $x$y echo "$x$y is on"
		if_addressed $x$y echo "$x$y is addressed"
		if_appliance $x$y echo "$x$y is an appliance]"
	done
done
