I wanted to be able to sense if the door was closed before I attempted to open an already open door?
Here is what I found for the Insteon API, looks like get relay status and get sensor status are available?
Send a command to an I/O Link device
Use the following members in the command object when sending a command:
Name Type Description
device_id number Required: Used to identify the device to be controlled.
command string Required: Text command to be sent to the device. Please see table below for a list a valid commands for i/o link devices.Valid I/O Linc Commands
Command String Description
on Turns on load.
off Turns off load.
get_relay_status Gets the current status of the relay part of the device. Level:100 = On, 0 = Off. Note this does not factor in any configuration options to flip what is sent when the sensor is closed.
get_sensor_status Gets the current status of the sensor of the device. Level:100 = On, 0 = Off. Note this does not factor in any configuration options to flip what is sent when the sensor is closed.