public JSONObject getCarpetModeState() throws CommandExecutionException {
        JSONArray ret = sendToArray("get_carpet_mode");
        if (ret == null) return null;
        return ret.optJSONObject(0);
    }
public JSONObject getCarpetModeState ( ) throws CommandExecutionException { JSONArray ret = sendToArray ( "get_carpet_mode" ) ; if ( ret == null ) return null ; return ret . optJSONObject ( 0 ) ; }
Get the current carpet cleaning settings.
@return The current carpet cleaning settings.
@throws CommandExecutionException When there has been a error during the communication or the response was invalid.