Get the state of a general purpose input.
Parameter
An object with the following keys:
| Key | Type | Description |
|---|
| name | string | Name of input. |
| state | boolean | State to wait for. |
| timeout | number | Optional timeout in seconds. |
Return value
True if the state was found, or false if timed out.