http://example.com:[port]/web2/secure/configuration/GRAY:2/state/ - getting a state for the Sensor object with id 2.

Sample of response:

<state>
    <id>alarmed</id>
</state>